obey robots.txt
May 22 2013 23:49:09
Navigation
View standard Themes
Switch to:
Forum Threads
Newest Threads
Fix for pointer in j...
BBcode overview page
Trio panel with late...
Insert an advertisem...
Install PHP-Fusion, ...
Hottest Threads
Fix for pointer i... [0]
BBcode overview page [0]
Latest Articles
No Articles available
Facebook Like
Portfolio
BetterClimate.Net
Classifieds.Start-Pages
Daily-Breaking-News.Com
PHP-Fusion.Asia
PHP-Fusion.Cn
PHP-Fusion.Fr
PHP-Fusion.in
PHP-Fusion.Org
WebHostingTrouble.Com
WebMasterTrouble.Com
View Thread
 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!<br />\n"); }
  5. //// block proxies. Mod by Wanabo
  6. if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { die ("Sorry, no registration possible through a proxy!<br />\n"); }
  7. //// end proxy mod.
  8.  
  9. $errors = array();
  10.  
Parsed in 0.051 seconds, using GeSHi 1.0.8.10

.
 
Jump to Forum:
Users Online
Guests Online: 1

Members Online: 0

Total Members: 20
Newest Member: Craig
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Last Seen Users
Fusioneer03:00:20
Shoutbox
You must login to post a message.

No messages have been posted.
Member Poll
PHP-Fusion, I might try it.

Yes
Member Poll: PHP-Fusion, I might try it. Yes 100% [3 Votes]
100% [3 Votes]

No
Member Poll: PHP-Fusion, I might try it. No 0% [0 Votes]
0% [0 Votes]

Maybe
Member Poll: PHP-Fusion, I might try it. Maybe 0% [0 Votes]
0% [0 Votes]

Votes: 3
You must login to vote.
Started: 20.10.11
82,336 unique visits