Current location: Hot Scripts Forums » Other Discussions » Web Servers » IP Baning PROBLEM


IP Baning PROBLEM

Reply
  #1 (permalink)  
Old 04-05-08, 05:23 PM
Mafia.3 Mafia.3 is offline
Disabled
 
Join Date: Feb 2008
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation IP Baning PROBLEM

Hi There

Please anyone can tell me how i can Ban The users that using Proxy Servers to access my website ?
i have banned them by adding their IP in Banned IP list ,
But i see they are using Proxy Servers to access my site..
So how i can ban the proxy servers too ?

Please any help ???


Thanks
Reply With Quote
  #2 (permalink)  
Old 04-05-08, 09:54 PM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
Quote:
Originally Posted by Mafia.3 View Post
So how i can ban the proxy servers too ?
That's gonna be hard, because there are lots and lots of proxy servers out there and they come and go all the time. Essentially it's a large set of constantly moving targets. IP banning may not be a practical way for you to control access to the site.

Maybe there's another way to do it.....what kind of site is it, and what's the basic reason for banning them?
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Reply With Quote
  #3 (permalink)  
Old 04-05-08, 10:19 PM
curbview.com's Avatar
curbview.com curbview.com is offline
Junior Code Guru
 
Join Date: May 2006
Posts: 555
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Mafia.3 View Post
Hi There
So how i can ban the proxy servers too ?
You can block the *special* headers that 99% of proxies use to view/visit your site.
__________________
Whatever you decide, you should make sure best security methods are used and practiced. Should you really need more help, PM me.
Reply With Quote
  #4 (permalink)  
Old 04-06-08, 03:12 PM
Mafia.3 Mafia.3 is offline
Disabled
 
Join Date: Feb 2008
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up Fixed

Hello guys

Thanks , i have fixed this prob by adding this code in all the page :

PHP Code:

if(isset($_SERVER['HTTP_X_FORWARDED_FOR']) || ($_SERVER['HTTP_USER_AGENT']=='') || ($_SERVER['HTTP_VIA']!='')){
        die(
"Don't use Proxy server please");
}

$proxy_headers = array(   
    
'HTTP_VIA',   
    
'HTTP_X_FORWARDED_FOR',   
    
'HTTP_FORWARDED_FOR',   
    
'HTTP_X_FORWARDED',   
    
'HTTP_FORWARDED',   
    
'HTTP_CLIENT_IP',   
    
'HTTP_FORWARDED_FOR_IP',   
    
'VIA',   
    
'X_FORWARDED_FOR',   
    
'FORWARDED_FOR',   
    
'X_FORWARDED',   
    
'FORWARDED',   
    
'CLIENT_IP',   
    
'FORWARDED_FOR_IP',   
    
'HTTP_PROXY_CONNECTION'   
        
);
foreach(
$proxy_headers as $x){
    if (isset(
$_SERVER[$x])) die("You are using a proxy!");

and i have tested it by more than 30 proxy servers , it 100% work

Thanks For the comments

Last edited by Nico; 04-06-08 at 04:47 PM. Reason: [php] wrappers.
Reply With Quote
  #5 (permalink)  
Old 04-06-08, 06:05 PM
curbview.com's Avatar
curbview.com curbview.com is offline
Junior Code Guru
 
Join Date: May 2006
Posts: 555
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Mafia.3 View Post
and i have tested it by more than 30 proxy servers , it 100% work

Thanks For the comments
So I take it that you understood what I ment about *Special Headers*


Glad to help!
__________________
Whatever you decide, you should make sure best security methods are used and practiced. Should you really need more help, PM me.
Reply With Quote
  #6 (permalink)  
Old 04-07-08, 12:47 PM
SolidSamurai SolidSamurai is offline
Newbie Coder
 
Join Date: Apr 2008
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Damn, if that's all it takes then the entire proxy business would prolly be through the ground. As in dead as it were.
Reply With Quote
  #7 (permalink)  
Old 04-07-08, 12:54 PM
curbview.com's Avatar
curbview.com curbview.com is offline
Junior Code Guru
 
Join Date: May 2006
Posts: 555
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by SolidSamurai View Post
Damn, if that's all it takes then the entire proxy business would prolly be through the ground. As in dead as it were.
Should I set up a demo for your amusement? Get a list of proxies for disposal and I will gladly send you the link to a demo. Understanding how proxies work helps to understand how to prevent them...
__________________
Whatever you decide, you should make sure best security methods are used and practiced. Should you really need more help, PM me.
Reply With Quote
  #8 (permalink)  
Old 04-09-08, 07:51 AM
Mafia.3 Mafia.3 is offline
Disabled
 
Join Date: Feb 2008
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by curbview.com View Post
Should I set up a demo for your amusement? Get a list of proxies for disposal and I will gladly send you the link to a demo. Understanding how proxies work helps to understand how to prevent them...
ok set it... and let me know

Thank you
Reply With Quote
Reply

Bookmarks


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

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tier 1 SAVVIS Network! DOUBLE RAM & DRIVES! FREE CP! FULLY MANAGED with Cpanel! mxhub General Advertisements 0 12-25-07 10:32 PM
IP extraction jumbo1 PHP 10 08-17-06 06:24 AM
Ip Address Question? purpleman The Lounge 2 07-12-06 05:59 PM
Send.Pl script problem BobbyC Perl 1 05-15-04 01:00 PM
My IP and connection problem Birlen Traffic Exchange 0 05-02-04 09:17 PM


All times are GMT -5. The time now is 01:26 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.