The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
IPDeny: Country Block List Details »» | |||||||||||||||||||||||||||
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. Download Now
Show Your Support
|
2 благодарности(ей) от: | ||
gargamello, Max Taxable |
Comments |
#12
|
|||
|
|||
How often do you plan to update this list of IP addresses? Because you ARE going to need to do this - often.
Here's a better solution: https://vborg.vbsupport.ru/showthread.php?t=205044 |
#13
|
||||
|
||||
Quote:
Just another solution, whether it is better is up to each individual. Mine is usable across ANY website on ANY platform and is NOT dependent on anything other then the ability to use a .htaccess file. |
#14
|
||||
|
||||
Smashin....:up:
|
#15
|
||||
|
||||
will try this out.
anybody else find the avatars in the first two posts kinda hilarious / ironic? Jesus... looking right, green death looking left... lulz edit: Just a tip: If generating a .htaccess deny block is the goal, perhaps it might be easier to use this tool: http://ipinfodb.com/ip_country_block_htaccess.php If, like me, you need to block just about everybody BUT Europe and the Americas, it's easier than editing and removing a bunch of ampersands, even if you use find/replace in selections in your favorite text editor, since you'll be doing quite a bit of selecting, paging down, etc. Plus you'll end up with a much smaller file to parse. I don't know what the overhead is for a bunch of comments in a .htaccess file. Another tip would be to put this into your Apache config file if possible to avoid it being loaded/parsed with each and every server request. I know not everyone has access to this on shared server accounts. |
#16
|
||||
|
||||
Quote:
Again this is a stand alone .htaccess file. The site you point to utilizes access to their server(s)
I use EditPad Pro as it easily adds or removes prefixes to lines. |
#17
|
||||
|
||||
my link simply points to a script which generates the deny block for an .htaccess file. You generate your .htaccess and copy and paste it into your .htaccess appropriately.
there is no linking to another server, or reliance upon anyone else. it is in YOUR .htaccess. It's just a tool to generate the info that you are providing. I found it simpler in my case, so I was just sharing it in case it helped anyone else. Thanks again for the idea for this, cheers! |
#18
|
|||
|
|||
Hostboard, your htaccess file is massive. Will is work on vb 5.0.5?
Would that code be copy pasted in the .htaccess file in the root folder of VB5.0.5 below the following last default entry: </IfModule> ? Will an htaccess that large slow down the website for users? |
#19
|
|||
|
|||
Quote:
|
#20
|
||||
|
||||
Quote:
|
#21
|
|||
|
|||
Thanks Hostboard, I will experiment with that once I go live with the forum. I am on a linux server. How often would it be suggested to update that list?
Question, it looks like the list is a list of ip addresses within each country to block. Is there a way to block the entire country? Or is there a way to only allow USA visitors in the htaccess file? FYI, theWordPress plugin "IQ-Block-Country" uses a GeoIP.dat file. I am wondering if that is a list of IP addresses like in your file, but I was unable to open it with MS Office, Visual Studio, DreamWeaver and other programs. Do you know of any free programs to view a .dat file with? (I was unable to upload it with this post). Thanks again so much! |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|