Re: changing the global variables (_SERVER[HTTP_USER_AGENT])

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, October 3, 2006 12:43 pm, Balaji A wrote:
> Hi,
> in php.ini I have changed the register_global to "On".
>
> Is it possible to change the global variable _SERVER[HTTP_USER_AGENT]?
>
> Thanks in advance..

Errrr.

You're not making sense...

You want my browser to LIE to your server about what browser it is?
Opera will let you do that.

You want to not believe I'm not using the browser I say I'm using, by
changing the string it sends you to identify itself?
Just ignore what I send.

You are trying to masquerede as some other browser, but don't want to
let us know because you think it's some big Security thing, or you're
scraping things you think somebody cares about or...?
I hesitate to help you, but the bottom line is that there are *dozens*
of tools to web scrape and masquerede as any browser you want, so even
if you're as, errrr, naive, as this post indicates, you're going to
find them within a week.


None of this has ANYTHING to do with register_globals, so you clearly
are not understanding the User-agent: header, or register_globals, or
both.  Probably both, to be honest...

re-read the register_globals page on php.net

And for the User-agent, Opera, wget, Firefox with LiveHTTPHeaders, and
dozens of other tools let you alter that.

But ain't no way you can make *MY* browser not send you the User-agent
it wants to send.  It's *MY* browser, on *MY* computer, thank you very
much.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux