How to ban a Country IP?

Stationery-Direct

Free Member
Jul 12, 2005
1,304
123
Anybody got any ideas? I have been receiving lots of spam posts from people in India and Pakistan. We are a UK based forum only so don't want members from over overseas, especially ones that spam.

I know this isn't a fool proof solution but it may help, how do I ban country IP addresses in vbulletin? How do I find out what they are etc?

Many thanks for any help.
 
Hi,
The normal way to do this on a website is to use the "deny" function in your .htaccess file
You can look at various help pages on google by doing a search on (for example) "htaccess deny ip"
However it sounds as though you're looking for a way via vbulletin. Is there a forum (there must be?) for vBulletin users and administrators. If so, do a search there (again on htaccess ip deny) to see what the best way to do it is. Most forum software have a specific way to do this which avoids the need to directly edit the .htaccess file yourself.
 
Upvote 0
Thanks for the reply, I don't think I have asked the right question, I know how to ban an IP in vbulletin, what I want to know if possible is do Countries have specific IP addresses? For example do all in India start with 123.

If this is the case then I can ban all IP's starting with 123, where would I find that out, any ideas?
 
Upvote 0
If you are running a local mail server ( Windows 2003/2008 SBS for instance) you can block certain IP addresses from sending into your mail server. If you don't have your own local mail server then its probably a good idea to speak to your ISP see if they can apply some server side spam filtering for you. The beauty of it is that it cuts out the spam before it even touches your machine..

M
 
Upvote 0
.htaccess file:

<Limit POST>
order allow,deny
deny from 58.14.0.0/15
deny from 58.16.0.0/16
deny from 58.17.0.0/17
deny from 58.17.128.0/17

etc. etc.


I have a list of all of China and a big chunk of Russia and India if you want it.
 
Upvote 0

Latest Articles