Help banning a range of IP"s
Help banning a range of IP"s
am 26.07.2007 18:49:21 von tool
I need to ban a range of IP addresses from a website entirely and have
been told I can do this with a .htaccess file.
I'm not very knowledgable about this subject - can someone walk me
through what to put in the file - say I wanted to ban 127.0.0.0-128.0.0.0
(yes I know what those are - its an example)
how would I do that? And should the file reside in the web root?
thanks
Tooley
Re: Help banning a range of IP"s
am 26.07.2007 19:46:02 von dvader
> I need to ban a range of IP addresses from a website entirely and have
> been told I can do this with a .htaccess file.
> I'm not very knowledgable about this subject - can someone walk me
> through what to put in the file - say I wanted to ban 127.0.0.0-128.0.0.0
> (yes I know what those are - its an example)
> how would I do that? And should the file reside in the web root?
I don't know how to block a range, point A to point B, but you can block a
subnet. In the example you give, this .htaccess file will block all from
127.0.0.0 - 127.255.255.255:
order allow,deny
deny from 127.0.0.0/8
allow from all
In this case, you could also do it by just writing a partial IP:
deny from 127.
but I don't know if that would work for a subnet that is not a multiple of 8
bits.
If you really want to block that final 128.0.0.0, you can add a second "deny"
line for that address, only.
--
Crash
Re: Help banning a range of IP"s
am 26.07.2007 23:52:50 von unknown
Post removed (X-No-Archive: yes)
Re: Help banning a range of IP"s
am 27.07.2007 00:24:14 von esf
127.0.0.0/8 127.0.0.0-127.255.255.255
128.0.0.0/32 128.0.0.0-128.0.0.0
--
Web Hosting Guide
http://www.phwinfo.com
Re: Help banning a range of IP"s
am 28.07.2007 20:08:18 von tool
In article , cold@hearted.orb
says...
Thank you both for yor replies - but I dont have the time or desire to
become an expert or to trawl through reams of documentation - If I did I
wouldnt need to ask here.
I've been told this is a simple task ...
Can someone just tell me what file to create - what to put in it where to
put the file and anything else that might have an imp-act.
thanks
Tooley
Re: Help banning a range of IP"s
am 28.07.2007 20:59:11 von melsonr
In article ,
tool@at.at.com writes:
> In article , cold@hearted.orb
> says...
>
>
> Thank you both for yor replies - but I dont have the time or desire to
I think you've just poisoned the well here. Why should anybody want
to help you when you clearly don't want to help yourself?
> become an expert or to trawl through reams of documentation - If I did I
> wouldnt need to ask here.
>
> I've been told this is a simple task ...
>
> Can someone just tell me what file to create - what to put in it where to
> put the file and anything else that might have an imp-act.
So you want somebody else to do the heavy lifting so you can just
slide on by? I suggest you start RTFM, 'cause I don't think
anybody here's going to lift a finger for you.
>
> thanks
>
> Tooley
Bob Melson
--
Robert G. Melson | Rio Grande MicroSolutions | El Paso, Texas
-----
"People unfit for freedom---who cannot do much with it---are
hungry for power." ---Eric Hoffer
Re: Help banning a range of IP"s
am 28.07.2007 21:08:28 von dvader
> Can someone just tell me what file to create - what to put in it where to
> put the file and anything else that might have an imp-act.
Gee, I thought I did.
--
Crash
Re: Help banning a range of IP"s
am 28.07.2007 22:22:32 von tool
In article <3mMqi.11826$tj6.4311@newsread4.news.pas.earthlink.net>,
melsonr@aragorn.rgmhome.net says...
> In article ,
> tool@at.at.com writes:
> > In article , cold@hearted.orb
> > says...
> >
> >
> > Thank you both for yor replies - but I dont have the time or desire to
> I think you've just poisoned the well here. Why should anybody want
> to help you when you clearly don't want to help yourself?
Because this is a newsgroup and that is what newsgroups are for.
They are not for self rightous idiots like you to spout off in.
> > become an expert or to trawl through reams of documentation - If I did I
> > wouldnt need to ask here.
> >
> > I've been told this is a simple task ...
> >
> > Can someone just tell me what file to create - what to put in it where to
> > put the file and anything else that might have an imp-act.
> So you want somebody else to do the heavy lifting so you can just
> slide on by? I suggest you start RTFM, 'cause I don't think
> anybody here's going to lift a finger for you.
> >
IF there was any "heavy lifting" no - this is a simple plug and go task
Clearly bob Melson has his head stuck so far up his own backside he
doesnt know what planet he's on. One can only wonder what level of help
Rio Grande MicroSolutions give to their "customers" assuming they have
any left.
Like I said - I dont have the time right now - If you're not capable of
helping keep your time wasting gob shut and just go away.
Tooley
>
> Bob Melson
>
>
Re: Help banning a range of IP"s
am 28.07.2007 22:46:34 von melsonr
In article ,
tool@at.at.com writes:
> In article <3mMqi.11826$tj6.4311@newsread4.news.pas.earthlink.net>,
> melsonr@aragorn.rgmhome.net says...
>> In article ,
>> tool@at.at.com writes:
>> > In article , cold@hearted.orb
>> > says...
>> >
>> >
>> > Thank you both for yor replies - but I dont have the time or desire to
>> I think you've just poisoned the well here. Why should anybody want
>> to help you when you clearly don't want to help yourself?
>
> Because this is a newsgroup and that is what newsgroups are for.
> They are not for self rightous idiots like you to spout off in.
>
>
>> > become an expert or to trawl through reams of documentation - If I did I
>> > wouldnt need to ask here.
>> >
>> > I've been told this is a simple task ...
>> >
>> > Can someone just tell me what file to create - what to put in it where to
>> > put the file and anything else that might have an imp-act.
>
>
>> So you want somebody else to do the heavy lifting so you can just
>> slide on by? I suggest you start RTFM, 'cause I don't think
>> anybody here's going to lift a finger for you.
>> >
>
> IF there was any "heavy lifting" no - this is a simple plug and go task
>
> Clearly bob Melson has his head stuck so far up his own backside he
> doesnt know what planet he's on. One can only wonder what level of help
> Rio Grande MicroSolutions give to their "customers" assuming they have
> any left.
>
>
> Like I said - I dont have the time right now - If you're not capable of
> helping keep your time wasting gob shut and just go away.
>
>
> Tooley
>
>
>>
>> Bob Melson
>
>>
>>
Clearly, Took, you're totally clueless. Newsgroups are
certainly there to provide help, but only if you show
that you've tried - and failed - to solve your own problem.
By saying "I don't have the time or desire", you've
demonstrated you haven't tried to help yourself - so why
should the folks here provide unpaid-for help for you?
Same thing with "...just tellme what file to create - what
to put in it ... and anything else..." You've obviously
not done your home work - just want to sit back and have
some kind soul do your work for you.
Attitude is all. Getting snotty when somebody points out
that you can't expect folks to use their own time to solve
a problem YOU are unwilling to put time and effort into is
really counter-productive.
So sue me, twerp.
Bob Melson
--
Robert G. Melson | Rio Grande MicroSolutions | El Paso, Texas
-----
"People unfit for freedom---who cannot do much with it---are
hungry for power." ---Eric Hoffer
Re: Help banning a range of IP"s
am 29.07.2007 03:34:32 von Paul Furman
tool@at.at.com wrote:
> Thank you both for yor replies - but I dont have the time or desire to
> become an expert or to trawl through reams of documentation - If I did I
> wouldnt need to ask here.
>
> I've been told this is a simple task ...
>
> Can someone just tell me what file to create - what to put in it where to
> put the file and anything else that might have an imp-act.
This blocks ip ranges for most of eastern europe & beyond (we had some
band of Russian hackers & this was a last ditch way to boot them...
content is only local relevance anyways):
order allow,deny
allow from all
deny from 62.133
deny from 81.30
deny from 195.70
Put it in a plain text file named .htaccess at your root. You may
already have one, if so, edit that. You may have trouble creating such a
file name, just rename it with your ftp program after uploading or try
saveas from your editor.