Welcome to WebmasterWorld Guest from 107.22.61.174

Forum Moderators: incrediBILL

Message Too Old, No Replies

.htaccess again

ban by ip block

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

Preferred Member

10+ Year Member

joined:Nov 25, 2000
posts:541
votes: 0


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

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

Preferred Member

10+ Year Member

joined:Nov 25, 2000
posts:541
votes: 0


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.

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

Preferred Member

10+ Year Member

joined:Nov 25, 2000
posts:541
votes: 0


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.

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

Senior Member

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

joined:June 17, 2000
posts:2924
votes: 0


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

[webmasterworld.com ].

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

Preferred Member

10+ Year Member

joined:Nov 25, 2000
posts:541
votes: 0


Thanks littleman.
Can I do it by range as Air suggests in the .ht file?
5:49 pm on Jan 20, 2001 (gmt 0)

Preferred Member

10+ Year Member

joined:Nov 25, 2000
posts:541
votes: 0


>>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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 10, 2000
posts:1253
votes: 0


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)

Inactive Member
Account Expired

 
 


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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 10, 2000
posts:1253
votes: 0


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

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

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

Administrator from US 

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

joined:Sept 21, 1999
posts:38071
votes: 16


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.