Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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

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

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

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

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.

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

![]() |
![]() |
![]() |

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