Welcome to WebmasterWorld Guest from 54.224.30.39

Forum Moderators: phranque

Message Too Old, No Replies

Trying to deny access from an IP block

     
7:43 pm on Feb 9, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 19, 2003
posts:63
votes: 0


Hi,

Im trying to prevent an IP block from gaining access to a server. The block is from something like: 123.0.0.0 - 123.255.255.255

Ive done it individually via .htaccess as such:

<Limit GET POST>
order allow,deny
deny from 123.111.111.11
deny from 123.111.111.12
deny from 123.111.111.13
allow from all
</Limit>

is there an easy way to deny access to the whole group?

thanks!

4:31 am on Feb 10, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Sept 1, 2002
posts:774
votes: 0


deny from 123.111.111.0/24
4:35 am on Feb 10, 2004 (gmt 0)

Administrator from CA 

WebmasterWorld Administrator bakedjake is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Apr 8, 2003
posts:3878
votes: 57


123.0.0.0 - 123.255.255.255

deny from 123

2:05 pm on Feb 10, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 19, 2003
posts:63
votes: 0


Thanks to both of you.
2:15 pm on Feb 10, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Sept 19, 2003
posts:42
votes: 0


You can take it as far down as you want of course:

as in

123.111.111
123.111
123

For example.