obey-robots.txt
View Thread
Keep spammers and bots out.
 Print Thread
Protect register.php against proxy registrations
Fusioneer
Spammers and bots like to hide behind a proxy to avoid their real ip address to be blocked.
You can however block proxy registrations to avoid a lot of spam.

Open register.php and add mod between if (iMEMBER) ... and $errors = ...
Download source  GeSHi: PHP
  1. if (iMEMBER || !$settings['enable_registration']) { redirect("index.php"); }
  2.  
  3. // protection against anonymous proxy. Mod by Wanabo
  4. if (empty($_SERVER['REMOTE_ADDR'])) { die ("Sorry, no registration possible through an anonymous proxy!\n"); }
  5. //// block proxies. Mod by Wanabo
  6. if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { die ("Sorry, no registration possible through a proxy!\n"); }
  7. //// end proxy mod.
  8.  
  9. $errors = array();
  10.  
Parsed in 0.021 seconds, using GeSHi 1.0.8.10

Warning about ParkingCrew.com! Case: ParkingCrew.com acquires NameDrive.com but earnings are not transferred despite assurances and promises. Inquiries about this are ignored! It's just a con compagny. Don't do business with them!
 
Jump to Forum
New Thread Post Reply
Use BBcode or HTML to refer to; 'Protect register.php against proxy registrations'
BBcode:
HTML:
Simular threads
Subject Discussion Forum         Last Post
Register.php prevent certain countries to register Modifications to protect your website : 1 25-09-2012