2 ms·
> be faked Be careful: The purpose of the agent string is to tell the server how to treat the client. That is, different Web browsers do different things with
by graycat 13y ago
> be faked
Be careful: The purpose of the agent string
is to tell the server how to treat the client.
That is, different Web browsers do different
things with the same HTML, JS, CSS, etc. So,
the agent string tells the Web site how the
browser wants to be treated.
In my little program to get Web pages, I just
tell the Web server how I want my program
treated -- like a certain Mozilla browser.
This is not "faking" anything. It would do
no good to tell the Web server that I
wrote my own Web browser because the Web
server would know nothing about my browser
and, thus, have no way to respond to it in
any special way. So, I just tell the
Web server to treat me like Mozilla.
Faking is not really the point.
We've got evil on the brain here.
I wrote my own Web browser. So what?
- pdonis 13y agoFaking is not really the point. No, but giving reasonably accurate information about what kind of user agent is being used is. If you write your own browser, yes, you're probably better off telling a website that it's, say, Firefox than telling it it's "Joe's Really Cool Browser v1.0". But if you're writing a program whose purpose is not to display pages to the user, but to do something else, your program shouldn't be telling web servers that it's a program whose purpose is to display pages to the user.