Advertisement:

Navigation

SMF Mod Site

Mod Name:
Proxy Blocker
Created By:
simmaster
Type:
New Feature
First Created:
December 20, 2009, 05:52:24 PM
Last Modified:
December 27, 2009, 01:31:17 PM
Latest Version:
1.1.4
Compatible With:
2.0 RC2, 1.1.11
Total Downloads:
3472

Download this mod

ProxyBlocker_1.1.4.zip (5kB) [3213]
Manual Install Instructions for SMF


Below are some preview images of what the mod looks like when being used

Description:

Proxy Blocker Mod by simmaster07

Compatibility:
SMF 1.1
SMF 2.0

Configuration:
SMF 1.1: Features and Options
SMF 2.0: Configuration > Modification Settings

Killswitch:
If you are blocked from your own forum, add

Code: [Select]
$kill_proxyblocker = true;somewhere into your Settings.php file.

The Proxy Blocker mod allows you to disable users on proxies from registering or viewing the entire forum altogether. This helps prevent banned users from trying to re-register, or spambots from trying to use proxies to attack, with the disadvantages of blocking school/corporate connections that use proxies, cell phones and primitive browsers.

Tested on proxies:
* HideMyAss
* ProxEasy
* The-Cloak
* Proxify
* WinkProxy

Tested on browsers:
* Google Chrome
* Mozilla Firefox 3.5
* Microsoft Internet Explorer 8

Changelog
Code: [Select]
[+] - Added feature
[-] - Removed feature
[*] - Bugfix
[%] - Security patch/new blocked proxy

v1.0
[+] Created mod from core code

v1.0.1
[*] Removed brackets { } to make code more consistent with SMF style
[*] Removed one condition that caused regular clients to be killed off

v1.1
[%] Blocks Tor exit nodes
[+] Now 1.1 compatible
[*] Caching hostname into variable
[*] Prevent run-on language strings by placing new language strings on a new line
[+] Added language strings:
     [++] Spanish (PARTIAL)
     [++] Spanish-UTF8 (PARTIAL)
     [++] English-UTF8
     [++] English_GB
     [++] English_GB-UTF8
[+] Block the entire forum
[+] Setting control

v1.1.1
[*] Condense file edits
[*] Complete Spanish translations (thanks to DrHouse and qtime!)

v1.1.2
[*] Code edits suggested by Arantor for performance

v1.1.3
[*] Stops flooding the error logs in 2.0

v1.1.4
[*] modSetting variables are now checked with empty()
[+] Kill switch in Settings.php file in case you get blocked
[+] Redirect to settings on installation
[+] Include a readme

Translations:
  • English
  • English-UTF8
  • English-GB
  • English-GB-UTF8
  • Spanish-ES
  • Spanish-ES-UTF8

Please translate:
Code: [Select]
$txt['on_proxy'] = 'Sorry, but the administrator has blocked registration from proxies. Other causes of this error include using an intranet (school connections), registering on a cell phone, or using a browser that does not support compression or does not accept encoding.';
$txt['proxyblock_reg'] = 'Block registration if using proxy';
$txt['proxyblock_index'] = 'Block forum if using proxy';

Planned Features:
  • Attempt to reveal actual IP (best guess) (Planned for 1.2)
  • List captured proxies (Planned for 1.2)
  • May convert to all-purpose unwanted member blocker (proxies, spam databases, hackers, etc.)

Special Thanks to:
  • Arantor - for practically being my mentor in making this mod
  • qtime - for Spanish translation
  • DrHouse - for Spanish translation

This mod makes no template edits and should work on all SMF 1.1/2.0 forums on any themes that aren't modded excessively.