Forum Moderators: phranque

Message Too Old, No Replies

How do I change my User Agent

I want to be able to identify certain machines in the log

         

decstar

9:19 am on Jun 10, 2003 (gmt 0)

10+ Year Member



Does anybody know how I would go about changing the way the useragent variable passed by IE6 to apache etc. You have all probably noticed that each ISP seems to modify the name of the useragent in the version that they distribute to their customers.

I want to be able to change it so that I can isolate the number of visits to my sites by people in my office.

Decstar

dmorison

9:22 am on Jun 10, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

It's a registry hack. Search for "internet explorer user-agent registry" for details. Plenty of "how-to" sites.

mat

9:47 am on Jun 10, 2003 (gmt 0)

10+ Year Member



A local proxy such as the excellent Proxomitron will enable you to change this to your every whim.

Richie

10:10 am on Jun 10, 2003 (gmt 0)

10+ Year Member



Start > Run > Type regedit

Then

HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Windows > CurrentVersion > Internet Settings > User Agent > Post Platform

Create a new string value and call it whatever you want to be in your User Agent info. But leave the data blank. Then close and re-open IE to take effect.

So if you made a new string called Bob, your user agent would look like: Mozilla/4.0 (Compatible; MSIE 6.0; Win 98; Bob).

Hope that helps.

[edited by: Richie at 10:11 am (utc) on June 10, 2003]

chris_f

10:10 am on Jun 10, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Tutorial: h*ttp://www.winguides.com/registry/display.php/799/

ATOB
Chris

Giacomo

10:48 am on Jun 10, 2003 (gmt 0)

10+ Year Member Top Contributors Of The Month



Alternatively, install Mozilla and edit your prefs.js file as explained here:

[granneman.com...]

[mozilla.org...]

grahamstewart

11:00 am on Jun 10, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I want to be able to change it so that I can isolate the number of visits to my sites by people in my office.

Wouldn't it be easier to do by looking for IP addresses that belong to your office network, rather than by changing everyones User Agent string?

Glacai

12:15 pm on Jun 10, 2003 (gmt 0)

10+ Year Member



Norton's allows you to change it per site, don't know about other firewalls.

StanBo

12:44 pm on Jun 10, 2003 (gmt 0)

10+ Year Member



Better not to mess with useragents and sort them out by cookies - not a big deal to obtain the list of cookies for all the office workers.

Netizen

12:48 pm on Jun 10, 2003 (gmt 0)

10+ Year Member



I agree with grahamstewart - use the IP address for this.