Link to home
Create AccountLog in
Avatar of hankknight
hankknightFlag for Canada

asked on

I want to block all visitors from country X

Hello,

I have experianced a number of attacks all from a specific country.

I would like to completely block access to all users from that country.

I realize that this is not fool proof because people from that country could still use a proxy.

I also realize that people in that country that are not hackers would not be able to access my web site but for the time being I still want to put this in place.

I use Linux / Cpanel / Apache.  I have iptables installed.

Is there any way I can block all access to people from the problem country?

Thanks!

Avatar of EntityPacket
EntityPacket
Flag of United States of America image

Why don't you just block the subnets your having attacks from?
Avatar of hankknight

ASKER

How do I do that?
What kind of a firewall do you have?  This is important.
ASKER CERTIFIED SOLUTION
Avatar of EntityPacket
EntityPacket
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Right on redcelltech.  That's why I was asking what kind of firewall, the config should be fairly simple once we have that information.