homepage Welcome to WebmasterWorld Guest from 54.225.1.70
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
detecting if surfer is using proxy
rhodopsin




msg:1480617
 2:59 pm on Nov 10, 2004 (gmt 0)

I wish to put a javascript on my site that will redirect users if they are using a proxy.

Information, transmitted by a client to a server is available (accessible) for a server as environment variables. How do I get hold of these environmental variables in javascript?

I want to redirect surfers for when their environmental variable

HTTP_VIA = not empty

What is the above line in javascript?

I think this strategy will be good for redirecting users using a proxy as HTTP_VIA not being empty indicates the surfer using a proxy. Although of course it will not work for elite proxies - proxues that can hide that a proxy is even being used - where HTTP_VIA IS empty. Below, I have put a bit of info about the different proxy types for your interest.

P.S does anyone know what percentage of web surfers use a proxy? What percentage of these use a transparent proxy and what percentage an anonymous proxy?

1) Transparent Proxies They do not hide information about your IP address:
REMOTE_ADDR = proxy IP
HTTP_VIA = proxy IP
HTTP_X_FORWARDED_FOR = your IP

2) Anonymous Proxies

a) simple anonymous proxies - these do not hide that a proxy is being used. They replace your IP with their own
REMOTE_ADDR = proxy IP
HTTP_VIA = proxy IP
HTTP_X_FORWARDED_FOR = proxy IP

b) distorting proxies - these do not hide that a proxy is being used. They replace your IP with another (arbitary, random) IP
REMOTE_ADDR = proxy IP
HTTP_VIA = proxy IP
HTTP_X_FORWARDED_FOR = random IP address

c) High Anonymity Proxies (Elite proxies)
REMOTE_ADDR = proxy IP
HTTP_VIA = not determined
HTTP_X_FORWARDED_FOR = not determined

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved