how to disable a country visits

sebans

Active Member
Nov 13, 2003
34
0
156
I'm having a lot of problems from visitors coming from nigeria and romania and I would like to disable those 2 countries

Any idea on how to do it?

thanks in advance

sebans
 

JBapt

Active Member
Feb 5, 2004
41
0
156
Porto - Portugal
LOOOOL

Hurray for freedom!!!!

This can be done with iptables checking ip's. But hey... c'mon... just learn to cope with it or sometime you wont allow anyone!
 

matt621

Well-Known Member
Jun 25, 2003
175
0
166
I'd like to deny this block 219.236.0.0 - 219.237.255.255 using Iptables.

Is there a shorthand to blocking this range or do I have to do each line manually?

thanks.
 

matt621

Well-Known Member
Jun 25, 2003
175
0
166
that easy eh? :eek:

can you explain how that works? (Just so I know for future reference.)

thank you.
 

linux-image

Well-Known Member
Jun 8, 2004
1,191
1
168
India
cPanel Access Level
Root Administrator
255.255.0.0 ==> 11111111.11111111.00000000.00000000

thatz 16 bit empty at the last so its: 219.236.0.0/16

use this same concept and it will sure help.