NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page [resolved] PHP help needed

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 03-07-2007, 02:15 PM THREAD STARTER               #1 (permalink)
NamePros Member
 
Joeydabomb's Avatar
Join Date: Oct 2004
Location: Wales
Posts: 90
Joeydabomb is an unknown quantity at this point
 



PHP help needed


Is it possible to find a users ip if they use a proxy?

Say the sign up on a site using proxies to avoid ip bans... would you be able to find there real ip and ban them?
Joeydabomb is offline  
Old 03-07-2007, 06:45 PM   #2 (permalink)
NamePros Expert
 
Peter's Avatar
Join Date: Nov 2003
Location: Scotland
Posts: 5,069
Peter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond repute
 


Child Abuse Save The Children Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
if the person is using a proxy then it is possible to check their ip using $_SERVER['HTTP_X_FORWARDED_FOR']. This only contains an ip if a proxy is used.

However anonymous proxies for example do not use the necessary header so $_SERVER['HTTP_X_FORWARDED_FOR'] would not contain anything and unfortunately there is no other way of checking using php.
Peter is offline  
Old 03-07-2007, 07:45 PM   #3 (permalink)
 
BillyConnite's Avatar
Join Date: Jul 2005
Location: Coffs H, Australia
Posts: 3,456
BillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond reputeBillyConnite has a reputation beyond repute
 


Wildlife Parkinson's Disease Parkinson's Disease
Originally Posted by filth@flexiwebhost
if the person is using a proxy then it is possible to check their ip using $_SERVER['HTTP_X_FORWARDED_FOR']. This only contains an ip if a proxy is used.
????: NamePros.com http://www.namepros.com/programming/302324-resolved-php-help-needed.html

However anonymous proxies for example do not use the necessary header so $_SERVER['HTTP_X_FORWARDED_FOR'] would not contain anything and unfortunately there is no other way of checking using php.
What Peter said .

However It is possible to ban the proxy itself. If you notice a large amount of traffic running to or from one IP, this could be a proxy being used by multiple people to view your site.
BillyConnite is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 09:19 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger