Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel(tm)
Author Message
FuZZyLoGic
Hangin' Around



Joined: Aug 02, 2004
Posts: 36

PostPosted: Tue Aug 10, 2004 8:49 pm Reply with quote

I got this via the feedback module from one of my users.

'what dumbarse installed that proxy checker, i have to use a proxy to view this page now because it detects my invisible isp proxy but not anon proxies!!!!'

I am thinking this to mean that it does not successfully block the proxies that I would want to block? Hmmm
 
View user's profile Send private message Visit poster's website
BobMarion
Former Admin in Good Standing



Joined: Oct 30, 2002
Posts: 1037
Location: RedNeck Land (known as Kentucky)

PostPosted: Tue Aug 10, 2004 9:35 pm Reply with quote

What dumbarse would be me Smile It does not stop all proxies is true. It is a "Mild" proxy blocker. If I had put in a "Strict" proxy blocker most sites would lose a large portion of their traffic. However, I will work on 2.0.2 with a "Mild"/"Strict" proxy blocker setting.

_________________
Bob Marion
Codito Ergo Sum
http://www.nukescripts.net 
View user's profile Send private message Send e-mail Visit poster's website
BobMarion







PostPosted: Tue Aug 10, 2004 9:47 pm Reply with quote

Okay, dug out the RC's and pulled all three proxy blockers out. Pick the level you want and replace the proxy blocker in includes/sentinel.php:

Lite:
Code:
// Proxy Blocker

$proxy1 = get_client_ip();
$proxy2 = get_x_forwarded();
if($ab_config['proxy_switch'] == 1 AND ($proxy1 != "none" OR $proxy2 != "none")) {
    $display_page = abget_template($ab_config['proxy_reason']);
    $display_page .= "<hr noshade>\n<div align='right'>"._AB_NUKESENTINEL." ".$ab_config['version_number']." "._AB_BYNSN."</div>\n";
  die($proxy_reason);
}



Mild (in 2.0.1):
Code:
// Proxy Blocker

if($ab_config['proxy_switch'] == 1) {
  $proxy0 = get_ip();
  $proxy1 = get_client_ip();
  $proxy2 = get_x_forwarded();
  $proxy_host = @getHostByAddr($proxy0);
  if($proxy1 != "none" OR $proxy2 != "none" OR stristr($proxy_host,"proxy")) {
    $display_page = abget_template($ab_config['proxy_reason']);
    $display_page .= "<hr noshade>\n<div align='right'>"._AB_NUKESENTINEL." ".$ab_config['version_number']." "._AB_BYNSN."</div>\n";
    die($display_page);
  }
}



Strong:
Code:
// Proxy Blocker

$proxy0 = get_ip();
$proxy1 = get_client_ip();
$proxy2 = get_x_forwarded();
$proxy_host = @getHostByAddr($proxy0);
if($ab_config['proxy_switch'] == 1 AND ($proxy1 != "none" OR $proxy2 != "none" OR stristr($proxy_host,"proxy") OR $proxy0 == $proxy_host)) {
    $display_page = abget_template($ab_config['proxy_reason']);
    $display_page .= "<hr noshade>\n<div align='right'>"._AB_NUKESENTINEL." ".$ab_config['version_number']." "._AB_BYNSN."</div>\n";
  die($proxy_reason);
}
 
FuZZyLoGic







PostPosted: Tue Aug 10, 2004 10:52 pm Reply with quote

hehe thanks for the info Bob maybe i shall really piss him off and implent the strong one ;P

Honestly though while its nice to have this feature if I need it, it may be unecessary for my current position (a new site just starting with minimal traffic) but may come in handy down the road with ban evasion and the like.

Thanks again for your prompt response and all your efforts on the sentinel project.

Cheers,
FuZZy Very Happy
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel(tm)

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©