IP blocking in htacess
-
I’m trying to block my entire country except my own IP address. What would the code look like for this? Here’s what I’m using and it’s not working. I’m locking myself out of my block. Any ideas?
<Limit GET POST>
order allow,deny
# Country: AFGHANISTAN
# ISO Code: AFdeny from 103.5.196.0/23
deny from 103.7.104.0/22
deny from 103.23.36.0/22
deny from 103.23.247.0/24
deny from 103.28.132.0/22
deny from 103.247.198.0/24
deny from 111.125.152.0/21
deny from 111.223.244.0/22
deny from 117.55.192.0/20
deny from 117.104.224.0/21
allow from my IP
allow from all
</Limit>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘IP blocking in htacess’ is closed to new replies.