Welcome to WebmasterWorld Guest from 50.17.79.100

Forum Moderators: incrediBILL

Message Too Old, No Replies

.htaccess again

ban by ip block

     

BoneHeadicus

5:24 pm on Jan 6, 2001 (gmt 0)

10+ Year Member



I was wanting make sure I get the right format....we already know..

>To ban an IP add to your .htaccess file:
deny from xxx.xxx.xxx.xxx

where xxx.xxx.xxx.xxx is a full or partial IP address.
Can I do this by range?
ie 100.100.100.100-200.200.200.200

BoneHeadicus

4:58 am on Jan 8, 2001 (gmt 0)

10+ Year Member



Gee, BoneHeadicus...that's a fine question.
Perhaps one of the fine professional webmaster types will join in and answer this plaguing situation you have.

Hang in there...help is on the way.

BoneHeadicus

5:02 am on Jan 8, 2001 (gmt 0)

10+ Year Member



Bless you my son.
I am overwhelmed by your concern and understanding in the futility of my seemingly endless plight with these h4x0r aggressors.

Oooh whoa is me.

littleman

9:15 am on Jan 8, 2001 (gmt 0)

WebmasterWorld Senior Member littleman is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Gee, looks like this one slipped by. Take a look at

[webmasterworld.com ].

BoneHeadicus

5:10 pm on Jan 8, 2001 (gmt 0)

10+ Year Member



Thanks littleman.
Can I do it by range as Air suggests in the .ht file?

BoneHeadicus

5:49 pm on Jan 20, 2001 (gmt 0)

10+ Year Member



>>where xxx.xxx.xxx.xxx is a full or partial IP address.
Can I do this by range?
ie 100.100.100.100-200.200.200.200

Does anyone know if I can do this by a range?

Air

7:14 pm on Jan 20, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



ranges are not supported but partial ip addresses are, i.e. 111.222.333. would block everything coming from 111.222.333.???

Marn

12:11 am on Jan 23, 2001 (gmt 0)



111.222.333.???

I'd like to know if it would block a range as well.

I do know that the octet, 333, is non-existent in an IP address.

It think it will not go above either 254 or 255?

I believe I have only seen IPs range:
0-254

Wait until the (IPv6 ) 6 octet string IP addresses are rolled out, or are they already?

Air

3:59 am on Jan 23, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>I do know that the octet, 333, is non-existent in an IP address.

Yes you are right, it was just an example ... :)

Brett_Tabke

11:00 am on Jan 23, 2001 (gmt 0)

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



Back to the original q. Not much to it really. If your server is setup to resolve domain names, you can even mix and match:

deny from 211.201.01.14 funstuff.ca 191.226.120.12

Just use a space between thye ip's/names.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month