Previous Thread
Next Thread
Print Thread
Hop To
Any thought of using geoIP here? #231934 12/09/2009 12:27 PM
Joined: Oct 2006
Posts: 37
BradHa Offline OP
newbie
OP Offline
newbie
Joined: Oct 2006
Posts: 37
I have been getting spammed fairly consistently from someone in India.

For my site, there is really no reason for me to allow anyone from India to post on it since it is more of a local thing anyhow.

I would like to ban the entire country from accessing the forums.

If I could find an existing list that covers all IP ranges for India, I would use that but the really nice thing would be if the forums supported the geoIP protocals.

Any ideas on how to accomplish my goal?

Re: Any thought of using geoIP here? [Re: BradHa] #231935 12/09/2009 12:31 PM
Joined: Jun 2006
Posts: 9,243
Rick Offline
Former Developer
Offline
Former Developer
Joined: Jun 2006
Posts: 9,243
For now, the easiest thing to do would probably be to use http://www.countryipblocks.net

On the right side you can choose a country and get a list of IP blocks for that country.

Re: Any thought of using geoIP here? [Re: Rick] #231937 12/09/2009 12:39 PM
Joined: May 2008
Posts: 735
Bad Frog Offline
old hand
Offline
old hand
Joined: May 2008
Posts: 735
get the IP blocks and add them to your .htaccess, they won't be able to access any of your site.

I had to do that for a while, I had most of mainland china banned at one point.



"No matter where you go, there you are."
"If you can't do something smart, Do something right"
"There are three kinds of people in the world, those who can count, and those who can't"
Re: Any thought of using geoIP here? [Re: Bad Frog] #231938 12/09/2009 1:22 PM
Joined: Oct 2006
Posts: 37
BradHa Offline OP
newbie
OP Offline
newbie
Joined: Oct 2006
Posts: 37
how do you add them to your .httaccess file.

I know the file, but how do you code the block.

Plus, the code comes back as: 58.146.96.0/19

Can the ban list handle that slash at the end of the IP number?

Which format should I select?

Re: Any thought of using geoIP here? [Re: BradHa] #231940 12/09/2009 2:45 PM
Joined: Dec 2006
Posts: 1,236
ScriptKeeper Offline
veteran
Offline
veteran
Joined: Dec 2006
Posts: 1,236
Originally Posted by BradHa
how do you add them to your .httaccess file.

Like this:

Code
order allow,deny
deny from 144.29
deny from 64.92.199
deny from 219.142.50.253
allow from all


Forum Search
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Followed List v7.7.2 Question
by Ruben - 11/12/2019 12:22 PM
UBB Dev
by JAISP - 11/03/2019 11:01 AM
Exceeded Number of attachments
by rbrtgrmn - 11/02/2019 9:57 PM
Forum New User Registration
by kf6zpl - 10/25/2019 10:45 AM
Having issue with redirects to UBB classic URLs
by amciotola - 10/16/2019 12:11 AM
Who's Online Now
4 registered members (Gizmo, Ruben, isaac, JAISP), 93 guests, and 436 spiders.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Amusing Terain Scenics
Amusing Terain Scenics
by isaac, August 19
Sky places
Sky places
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20191023)