Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Help banning a range of IP's

 
   Web Hosting Problem Solving Community! (Home) -> Apache RSS
Next:  Configuring Apache access control  
Author Message
tool

External


Since: Jul 26, 2007
Posts: 4



(Msg. 1) Posted: Thu Jul 26, 2007 1:58 pm
Post subject: Help banning a range of IP's
Archived from groups: alt>apache>configuration (more info?)

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

 >> Stay informed about: Help banning a range of IP's 
Back to top
Login to vote
"Crash" Dummy

External


Since: Jul 22, 2007
Posts: 12



(Msg. 2) Posted: Thu Jul 26, 2007 1:58 pm
Post subject: Re: Help banning a range of IP's [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> 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

 >> Stay informed about: Help banning a range of IP's 
Back to top
Login to vote
esf

External


Since: Jul 26, 2007
Posts: 1



(Msg. 3) Posted: Thu Jul 26, 2007 3:24 pm
Post subject: Re: Help banning a range of IP's [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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
 >> Stay informed about: Help banning a range of IP's 
Back to top
Login to vote
SnowBlind

External


Since: Jul 26, 2007
Posts: 4



(Msg. 4) Posted: Thu Jul 26, 2007 4:52 pm
Post subject: Re: Help banning a range of IP's [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

Back to top
Login to vote
tool

External


Since: Jul 26, 2007
Posts: 4



(Msg. 5) Posted: Sat Jul 28, 2007 6:08 pm
Post subject: Re: Help banning a range of IP's [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <rg5ia392proh92j85b2acibnk06l1dbs11.TakeThisOut@4ax.com>, cold.TakeThisOut@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
 >> Stay informed about: Help banning a range of IP's 
Back to top
Login to vote
"Crash" Dummy

External


Since: Jul 22, 2007
Posts: 12



(Msg. 6) Posted: Sat Jul 28, 2007 6:08 pm
Post subject: Re: Help banning a range of IP's [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> 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
 >> Stay informed about: Help banning a range of IP's 
Back to top
Login to vote
Paul Furman

External


Since: Jul 28, 2007
Posts: 6



(Msg. 7) Posted: Sat Jul 28, 2007 6:34 pm
Post subject: Re: Help banning a range of IP's [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

tool.RemoveThis@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):

<Limit GET>
order allow,deny
allow from all
deny from 62.133
deny from 81.30
deny from 195.70
</Limit>

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.
 >> Stay informed about: Help banning a range of IP's 
Back to top
Login to vote
Robert Melson

External


Since: Apr 16, 2006
Posts: 21



(Msg. 8) Posted: Sat Jul 28, 2007 6:59 pm
Post subject: Re: Help banning a range of IP's [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <MPG.211596a37c201fa49899c4.DeleteThis@news-text.blueyonder.co.uk>,
tool.DeleteThis@at.at.com writes:
> In article <rg5ia392proh92j85b2acibnk06l1dbs11.DeleteThis@4ax.com>, cold.DeleteThis@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
 >> Stay informed about: Help banning a range of IP's 
Back to top
Login to vote
tool

External


Since: Jul 26, 2007
Posts: 4



(Msg. 9) Posted: Sat Jul 28, 2007 8:22 pm
Post subject: Re: Help banning a range of IP's [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <3mMqi.11826$tj6.4311@newsread4.news.pas.earthlink.net>,
melsonr DeleteThis @aragorn.rgmhome.net says...
> In article <MPG.211596a37c201fa49899c4 DeleteThis @news-text.blueyonder.co.uk>,
> tool DeleteThis @at.at.com writes:
> > In article <rg5ia392proh92j85b2acibnk06l1dbs11 DeleteThis @4ax.com>, cold DeleteThis @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

>
>
 >> Stay informed about: Help banning a range of IP's 
Back to top
Login to vote
Robert Melson

External


Since: Apr 16, 2006
Posts: 21



(Msg. 10) Posted: Sat Jul 28, 2007 8:46 pm
Post subject: Re: Help banning a range of IP's [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <MPG.2115b6193789ed259899c6.TakeThisOut@news-text.blueyonder.co.uk>,
tool.TakeThisOut@at.at.com writes:
> In article <3mMqi.11826$tj6.4311@newsread4.news.pas.earthlink.net>,
> melsonr.TakeThisOut@aragorn.rgmhome.net says...
>> In article <MPG.211596a37c201fa49899c4.TakeThisOut@news-text.blueyonder.co.uk>,
>> tool.TakeThisOut@at.at.com writes:
>> > In article <rg5ia392proh92j85b2acibnk06l1dbs11.TakeThisOut@4ax.com>, cold.TakeThisOut@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
 >> Stay informed about: Help banning a range of IP's 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]