PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
BobMarion
Former Admin in Good Standing


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

PostPosted: Thu Jul 29, 2004 8:39 am Reply with quote Back to top

When coding the Proxy Blocker I made it mild since I didn't have that list of proxies to test it with. Anyway follow the instructions below to increase it's effectiveness.

Open includes/sentinel.php and find:
Code:
// Proxy Blocker
$proxy1 = get_client_ip();
$proxy2 = get_x_forwarded();
if($ab_config['allow_proxy'] == 1 AND ($proxy1 != "none" OR $proxy2 != "none")) {
  $proxy_reason = stripslashes($ab_config['proxy_reason']);
  die($proxy_reason);
}


Now replace that with:
Code:
// Proxy Blocker
$proxy0 = get_ip();
$proxy1 = get_client_ip();
$proxy2 = get_x_forwarded();
$proxy_host = @getHostByAddr($proxy0);
if($ab_config['allow_proxy'] == 1 AND ($proxy1 != "none" OR $proxy2 != "none" OR stristr($proxy_host,"proxy") OR $proxy0 == $proxy_host)) {
  $proxy_reason = stripslashes($ab_config['proxy_reason']);
  die($proxy_reason);
}


This is a much stiffer proxy check and should catch most but not everyone since it's hard to catch everything.
View user's profile Send private message Send e-mail Visit poster's website
Muffin
Client


Joined: Apr 10, 2004
Posts: 649
Location: UK

PostPosted: Fri Jul 30, 2004 5:51 am Reply with quote Back to top

I've had to turn this option off on my site, it wouldnt let any of my regulars on. I guess we must all use proxies.

Is there any way we can allow some and not others?
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum