vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Administrative and Maintenance Tools - IPDeny: Country Block List (https://vborg.vbsupport.ru/showthread.php?t=292742)

Hostboard 12-06-2012 11:00 PM

IPDeny: Country Block List
 
1 Attachment(s)
There have always been a lot of requests on how to block certain countries from accessing sites due to SPAMMERS, and while there are various modifications here to help weed these wonderful individuals out, they are not fool proof and or cause too many false positives for some.

Another method is to utilize blocking of IP addresses. Unfortunately vBulletin does not support IP prefixes thus you have to either use wild cards or enter each and every IP address you want to block.

So we are left with utilizing .htaccess files as ultimately this might be the most secure way to block these individuals as they will never reach your site. You can even provide them with a custom message if you so desire as well. Of course this also can be circumvented with the use of open Proxy servers but at least we are making them jump through some hoops and possibly making them go find an easier target.

I have taken the zone files from regional IP space providers and listed them into a singular .htaccess file listing each country individually. By default nothing is blocked. All you need to do is to un-remark any country or singular IP address block. Typically what I do is when a spammer registers I look at the IP address then lock out that block trying not to limit the entire country.

This will work with ANY web site that is running an Apache web server or that can utilize a .htaccess file.

Zone files are typically 99.5% accurate and rarely change. I have made every attempt to be careful in compiling this into a single file. However I am human and do make mistakes so I take no responsibility if there is a bad entry or two in there.

7/12/2012
Initial release

2/5/2014
File updated with Gargamello's fixes to my typos.

ForceHSS 12-07-2012 11:09 AM

Something like this has already been made
https://vborg.vbsupport.ru/showthread.php?t=291851

Hostboard 12-07-2012 12:31 PM

Quote:

Originally Posted by ForceHSS (Post 2389067)
Something like this has already been made
https://vborg.vbsupport.ru/showthread.php?t=291851

His was the reason i did this as I see a few issues...

False positives with modifications like this for some.
It talks back to his servers for the country block list.

Quote:

Originally Posted by koneil (Post 2388124)
Yes it does talk back to the server. Our IP lists on the server are alway up to date even with current changes.

  • If his servers go down, this part of the modification will not work.
  • If he decides to close shop this part of the modification will not work.
  • If he decides not to offer the service, this part of the modification will not work.
  • For those on limited bandwidth, it is using their quota up (even minimally)
  • Potential slowdowns with retrieving the information, whether it be many connections to his server or a few too many hops between you and them, or even 1 hop experiencing high latency.
Mine is a 100% in house solution, that is not relying on someone else to provide the information.

tarzan22 12-07-2012 12:56 PM

Hello

Which countries are possible block?

regards

Max Taxable 12-07-2012 01:06 PM

Quote:

Typically what I do is when a spammer registers I look at the IP address then lock out that block trying not to limit the entire country.
You can stop most all of the autospam registrations with this:

https://vborg.vbsupport.ru/showthread.php?t=289463

Hostboard 12-07-2012 01:12 PM

Quote:

Originally Posted by tarzan22 (Post 2389078)
Hello

Which countries are possible block?

regards

Any or all of them.

Hostboard 12-07-2012 01:19 PM

Quote:

Originally Posted by Max Taxable (Post 2389081)
You can stop most all of the autospam registrations with this:

https://vborg.vbsupport.ru/showthread.php?t=289463

Again, this only deals with auto spam bots (which is good) but not fool proof or can cause false posatives.

I know there are "other solutions" as I mentioned it in my description...

Quote:

There have always been a lot of requests on how to block certain countries from accessing sites due to SPAMMERS, and while there are various modifications here to help weed these wonderful individuals out, they are not fool proof and or cause too many false positives for some.
Mine is a different solution for those that want it.

Max Taxable 12-07-2012 01:19 PM

Can't unzip the file, get the error message "No files to extract."

Max Taxable 12-07-2012 01:21 PM

Quote:

Originally Posted by Hostboard (Post 2389088)
Again, this only deals with auto spam bots (which is good) but not fool proof or can cause false posatives.

Thus far after a year of real-world testing, it's done neither. It's never missed a spam bot nor interfered with any human.

Yes of course it addresses automated spam, but that's also the bulk of forum spam. We all should have many arrows in our anti-spam quivers.

Hostboard 12-07-2012 01:25 PM

Quote:

Originally Posted by Max Taxable (Post 2389089)
Can't unzip the file, get the error message "No files to extract."

I have re-uploaded using WinZip (prior was WinRar) Please try again...


All times are GMT. The time now is 02:22 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02114 seconds
  • Memory Usage 1,743KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete