hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : detecting proxy hits
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

detecting proxy hits

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 03-19-2005, 01:51 PM
Jim999 Jim999 is offline
Junior Guru Wannabe
 
Join Date: Jan 2003
Posts: 67
*

detecting proxy hits


hi all

I'm building a traffic trading script and I want to be able to detect proxy hits.

googling for info on how to do this I found:
http://www.stayinvisible.com/index.p...ymity_of_proxy

so I wrote a script looking for those headers the proxy sends (giving up on the elite proxies):
PHP Code:

if(
    (
$_SERVER["HTTP_X_FORWARDED_FOR"] != "" && $_SERVER["HTTP_X_FORWARDED_FOR"] != "unknown") ||
    (
$_SERVER["HTTP_X_FORWARDED"] != "" && $_SERVER["HTTP_X_FORWARDED"] != "unknown") ||
    (
$_SERVER["HTTP_VIA"] != "" && $_SERVER["HTTP_VIA"] != "unknown") ||
    (
$_SERVER["HTTP_CLIENT_IP"] != "" && $_SERVER["HTTP_CLIENT_IP"] != "unknown")
    )
$proxy=true; } 
hope I didn't miss or mixed up anything in the above code.

the problem is, i've heard a lot of AOL users use proxy, so do earthlink and more...and I don't want to ignore those hits, How do I detect them?

Reply With Quote


Sponsored Links
  #2  
Old 03-19-2005, 06:45 PM
folsom folsom is offline
WHT Addict
 
Join Date: Oct 2004
Posts: 104
Just check for via. That is the only header that a lot of proxy servers send. There will be a lot of proxy servers that send nothing other than client headers and there will be others that even strip some of those.

Reply With Quote
  #3  
Old 03-20-2005, 12:08 PM
Jim999 Jim999 is offline
Junior Guru Wannabe
 
Join Date: Jan 2003
Posts: 67
i did'nt explain myself clearly

I would like to detect an anonymous proxy hit in order block them.

BUT I don't have a problem with transparent proxies and i don't want to do anything once I detect a transparent proxy hit.

what i'm looking for is a way to distinguish a trasparent proxy hit from an anonymous proxy hit

Reply With Quote
Sponsored Links
  #4  
Old 03-21-2005, 05:01 AM
m-b m-b is offline
Junior Guru
 
Join Date: May 2003
Location: Bayreuth, Bavaria, Germany
Posts: 175
> I would like to detect an anonymous proxy hit in order block them.

They wouldn't be "anonymous", if they'd send any HTTP-Headers that would identify them ...
Their hits should look like those of hosts that are directly connected to the internet.

But there my be some traps:
* a page view may create hits from multiple ips (scrambling network), e.g. like proxys from aol
* You could explore those networks through own scripts, and block end-points
* reverse names of end-points may match regular expressions


Michael

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Neo Telecoms Acquires 35 Percent Stake in French Provider Hits Datacenter Web Hosting News 2013-05-27 10:57:38
NGINX 1.2.0 Update of Web Server Improves HTTP Proxy Support Web Hosting News 2012-04-24 16:47:23
Could Growing Resin Web Server Exert a Web Hosting Influence? Web Hosting News 2012-02-28 17:12:13
InterNetX Launches Server Administration Software Web Hosting News 2011-12-22 22:06:48
Web Host SpexHost Launches New Reseller Hosting Plans Web Hosting News 2011-08-19 15:35:58


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?