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

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

way to change HTTP_USER_AGENT

Reply to Message Icon

Name: pjr
Date: August 19, 2006 at 16:33:13 Pacific
OS: win xp pro
CPU/Ram: 1gb
Product: 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



Sponsored Link
Ads by Google

Response Number 1
Name: pjr
Date: August 19, 2006 at 22:39:16 Pacific
Reply:

doesn anyone have know??


0

Response Number 2
Name: Laler
Date: August 20, 2006 at 10:39:02 Pacific
Reply:

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


0

Response Number 3
Name: Laler
Date: August 20, 2006 at 10:46:39 Pacific
Reply:

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


0

Response Number 4
Name: pjr
Date: August 20, 2006 at 11:35:19 Pacific
Reply:

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


0

Response Number 5
Name: Laler
Date: August 21, 2006 at 09:14:29 Pacific
Reply:

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.


---


0

Related Posts

See More



Response Number 6
Name: pjr
Date: August 22, 2006 at 16:22:40 Pacific
Reply:

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


0

Response Number 7
Name: pjr
Date: August 22, 2006 at 16:34:33 Pacific
Reply:

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


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: way to change HTTP_USER_AGENT

onmouseover to change font www.computing.net/answers/webdevel/onmouseover-to-change-font/2018.html

Best way to redirect www.computing.net/answers/webdevel/best-way-to-redirect/3346.html

unable to change text color in swf www.computing.net/answers/webdevel/unable-to-change-text-color-in-swf-/3403.html