Computing.Net > Forums > Web Development > way to change HTTP_USER_AGENT

way to change HTTP_USER_AGENT

Reply to Message Icon

Original Message
Name: pjr
Date: August 19, 2006 at 16:33:13 Pacific
Subject: way to change HTTP_USER_AGENT
OS: win xp pro
CPU/Ram: 1gb
Model/Manufacturer: dell inspiron
Comment:

is there a way to change the HTTP_USER_AGENT within firefox? when i log myself on my website.. its says what version of windows/firefox im using... is there a way to change it? to write a custom message? there has got to be a way.. anyone?
that.. and im looking at how to log private IP addresses as well as public.. they are logged in my emails sent to me.. i can view the headers and i will be given the public, and private IP address of the sender.. how can i log that on my website as well!?

thanks everyone!

pj


Report Offensive Message For Removal

Response Number 1
Name: pjr
Date: August 19, 2006 at 22:39:16 Pacific
Subject: way to change HTTP_USER_AGENT
Reply: (edit)

doesn anyone have know??


Report Offensive Follow Up For Removal

Response Number 2
Name: Laler
Date: August 20, 2006 at 10:39:02 Pacific
Subject: way to change HTTP_USER_AGENT
Reply: (edit)

I don't really understand the question. Do you want to make your Firefox to send custom user agent info? That can be done of course but will require some hacks on Firefox which I don't know how :D You can look in firefox developer forums or similar.

As for the private IP determination, in PHP, $_SERVER['HTTP_X_FORWARDED_FOR'] will give you all IP other than the $_SERVER['REMOTE_ADDR'], if available, and if the proxy is a transparent proxy. If it's a high anonymity proxy, then there's no way you can get the real (or private) address.

---
Fubar


Report Offensive Follow Up For Removal

Response Number 3
Name: Laler
Date: August 20, 2006 at 10:46:39 Pacific
Subject: way to change HTTP_USER_AGENT
Reply: (edit)

actually a search on google will show you the way to change user agent info on firefox :-)

type:

about:config

in firefox' address bar, there you can change things out. I havent tried, but there're some settings you can change when using "agent" as filter.

---
Fubar


Report Offensive Follow Up For Removal

Response Number 4
Name: pjr
Date: August 20, 2006 at 11:35:19 Pacific
Subject: way to change HTTP_USER_AGENT
Reply: (edit)

no luck yet regarding the user agent.. and no go either with the http_x_forwarded_for
although ive just tested with my IP.. no proxies that i know of.. so strange....
i have $privatepjrey = $ENV{'HTTP_X_FORWARDED_FOR'};

the others are working fine...

hmm
pj


Report Offensive Follow Up For Removal

Response Number 5
Name: Laler
Date: August 21, 2006 at 09:14:29 Pacific
Subject: way to change HTTP_USER_AGENT
Reply: (edit)

Wait... I got curious and tried to change it. It works: http://img.photobucket.com/albums/v29/Laler/about-config.png

I only change the value of general.useragent.extra.firefox. I believe we can change other values as well.

About the http_x_forwarded_for, it'll show IPs behind transparent proxies.

If you don't use proxies, although you're in a LAN -- especially a Windows LAN with (ICS), then your PC's (private) IP will not be shown in the http_x_forwarded_for.


---


Report Offensive Follow Up For Removal


Response Number 6
Name: pjr
Date: August 22, 2006 at 16:22:40 Pacific
Subject: way to change HTTP_USER_AGENT
Reply: (edit)

i dont want to see behind proxies as much as i want to see private network ip's ( 192.168.1.X for example)

thanks!
pj


Report Offensive Follow Up For Removal

Response Number 7
Name: pjr
Date: August 22, 2006 at 16:34:33 Pacific
Subject: way to change HTTP_USER_AGENT
Reply: (edit)

is there any way to get the windows LAN to show?


Report Offensive Follow Up For Removal






Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: way to change HTTP_USER_AGENT

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software