I am not trying to be a pain but I do not think this will work if apache is
running as a daemon and not out of
inetd ( or xinetd on RedHat ) through the use of tcpwrappers. I think the
standard way to run Apache nowadays is to run it as a standalone daemon
with an rc script. Any thoughts on this????
I would think that if you are running as a daemon you could edit httpd.conf and
add a "deny from" directive in the proper area of the global section
and specify those IPs. I am not an expert on this, but I think you will also
need to set the order to deny,allow above it.
Matthew Daubenspeck wrote:
> /etc/hosts.deny
>
> Add as many hosts as you wish to block!
>
> At 09:05 AM 2/21/2002 -0800, you wrote:
> >linux
> >
> >--- Matthew Daubenspeck <matt@oddprocess.org> wrote:
> > >
> > > What OS are you running?
> > >
> > > At 08:58 AM 2/21/2002 -0800, you wrote:
> > >
> > > >with version 1.3.20, can I prevent access from
> > > certain
> > > >IP (or range of IPs) addresss to apache server?
> > > >
> > > >When taking a look at errorlog file, there are same
> > > >IPs that hackers were trying to hack into the the
> > > >server? How can I report these IPs someone ?
> > > >
> > > >thanks.
> > > >
> > > >
> > > >__________________________________________________
> > > >Do You Yahoo!?
> > > >Yahoo! Sports - Coverage of the 2002 Olympic Games
> > > >http://sports.yahoo.com
> > > >
> > >
> > >---------------------------------------------------------------------
> > > >The official User-To-User support forum of the
> > > Apache HTTP Server Project.
> > > >See <URL:http://httpd.apache.org/userslist.html>
> > > for more info.
> > > >To unsubscribe, e-mail:
> > > users-unsubscribe@httpd.apache.org
> > > >For additional commands, e-mail:
> > > users-help@httpd.apache.org
> > >
> > >
> > >
> >---------------------------------------------------------------------
> > > The official User-To-User support forum of the
> > > Apache HTTP Server Project.
> > > See <URL:http://httpd.apache.org/userslist.html> for
> > > more info.
> > > To unsubscribe, e-mail:
> > > users-unsubscribe@httpd.apache.org
> > > For additional commands, e-mail:
> > > users-help@httpd.apache.org
> > >
> >
> >
> >__________________________________________________
> >Do You Yahoo!?
> >Yahoo! Sports - Coverage of the 2002 Olympic Games
> >http://sports.yahoo.com
> >
> >---------------------------------------------------------------------
> >The official User-To-User support forum of the Apache HTTP Server Project.
> >See <URL:http://httpd.apache.org/userslist.html> for more info.
> >To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >For additional commands, e-mail: users-help@httpd.apache.org
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:
http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org