View Thread
All MODs and their Supported Threads goes here in this Section.
[MOD]Prevent certain countries to register
|
|
Wanabo |
Posted on 11-02-2011 03:16
|
Super Admin Posts: 30 Joined: 27/12/2010 |
If you have a website aimed at only 1 country and receive a lot of spammers from other countries then you can prevent them registering with this mod. Or just block unwanted countries. In this example I use XX for the country codes so I cannot offend any countries by listing them here. Replace XX for the desired country to block. Open register.php and find around line 86 Code Download source
Insert directly below this code. Code Download source
Improvements of this code is welcome. |
|
|
Ankur |
Posted on 12-02-2011 19:04
|
Super Admin Posts: 29 Joined: 25/12/2010 |
Thanks for this Good MOD Wanabo.... Also, you can Block them through the .htaccess if you want to Block particular IPs or IP Range from a particular Country !!! Be What you want to be...
|
|
|
Wanabo |
Posted on 06-03-2011 03:05
|
Super Admin Posts: 30 Joined: 27/12/2010 |
But in htaccess, you prevent them from viewing your site as well. Besides ip ranges change now and then, wipmania.com keeps them updated for you. |
|
|
Ankur |
Posted on 09-03-2011 17:41
|
Super Admin Posts: 29 Joined: 25/12/2010 |
Quote Wanabo wrote: But in htaccess, you prevent them from viewing your site as well. Agree... Be What you want to be...
|
|
Jump to Forum |
Use BBcode or HTML to refer to; '[MOD]Prevent certain countries to register'
BBcode: | |
HTML: |