Restrict foreign countries from accessing website?

For system help, all hardware / software topics NOTE: use Coders Corner for all coders topics.

Moderators: Krom, Grendel

Post Reply
User avatar
Top Wop
DBB Master
DBB Master
Posts: 5104
Joined: Wed Mar 01, 2000 3:01 am
Location: Far from you.
Contact:

Restrict foreign countries from accessing website?

Post by Top Wop »

I got hacked 2 times in one week with my website. Since its a simple clan website and we never had interest in playing people from other countires (READ: LAG!) the thought came to my mind as I populated my IP Deny list to make my website US-accessible only. I know you will say \"yea, but what about script kiddies in the US?\" Well, i've really only had problems on foreign IP's.

How can I do this?
User avatar
Xamindar
DBB Admiral
DBB Admiral
Posts: 1498
Joined: Sun Jun 06, 2004 2:44 am
Location: California
Contact:

Re: Restrict foreign countries from accessing website?

Post by Xamindar »

Top Wop wrote:i've really only had problems on foreign IP's.

How can I do this?
umm, ban all foreign ips?
User avatar
Mobius
DBB_Master
DBB_Master
Posts: 7940
Joined: Sun Jun 03, 2001 2:01 am
Location: Christchurch, New Zealand
Contact:

Post by Mobius »

Or simply not bother, as you probably have all of 100KB a month in foreigh traffic. :P
User avatar
Top Wop
DBB Master
DBB Master
Posts: 5104
Joined: Wed Mar 01, 2000 3:01 am
Location: Far from you.
Contact:

Re: Restrict foreign countries from accessing website?

Post by Top Wop »

Xamindar wrote:
Top Wop wrote:i've really only had problems on foreign IP's.

How can I do this?
umm, ban all foreign ips?
How can I find out which ones are those? I want to enter in the ranges.
User avatar
Top Wop
DBB Master
DBB Master
Posts: 5104
Joined: Wed Mar 01, 2000 3:01 am
Location: Far from you.
Contact:

Post by Top Wop »

Any ideas? :?:
User avatar
Krom
DBB Database Master
DBB Database Master
Posts: 16138
Joined: Sun Nov 29, 1998 3:01 am
Location: Camping the energy center. BTW, did you know you can have up to 100 characters in this location box?
Contact:

Post by Krom »

You might have some luck if you use slow reverse DNS lookups and filter the top level domains. Like the .ca, .jp, etc. Though honestly that concept is very impractical.
Post Reply