Forum Moderators: phranque

Message Too Old, No Replies

Apache 2.0.53 mysql and php.4.3.10

Why do they persist forcing 414 error

         

WiseWombat

9:32 am on Mar 28, 2005 (gmt 0)

10+ Year Member



From My last post I have updated apache server from 2.0.49 and php 4.3.8 I am now running
Apache 2.0.53 mysql database and php.4.3.10 and below are some of the deny access I.Ps that I have tried to to block out.
As all the below networks
Persist forcing 414 error and red alerts in log analyizer

inetnum: 203.218.0.0 - 203.218.255.255
netname: NETVIGATOR Hongkong (high)
and
inetnum:
203.177.178.0 - 203.177.178.255 PHILIPPINES (high)
203.177.177.0 - 203.177.177.255 PHILIPPINES (high)
203.177.32.0 - 203.177.79.255 PHILIPPINES (high)
203.177.96.0 - 203.177.127.255 PHILIPPINES (high)
netname: GLOBET-PH

Below are the ips that I have denied, I have tried but they are still accessing and forcing 414 errors?
#
Order allow,deny
Allow from all
Deny from 203.218.
Deny from 203.177.
Deny from 203.218.0.0/16
Deny from NETVIGATOR

I have tried to add NETVIGATOR to the DENY from list but then apache no longer lists ip addreses in the access log file.

Can someone help me out and explain to me why NETVIGATOR affects apache as it does.
And what am I Doing wrong in the deny access list above.
why do they persist forcing 414 errors?
Thanks Martin

sitz

2:30 pm on Mar 28, 2005 (gmt 0)

10+ Year Member



Per RFC 2616 [mirrors.rcn.net], the 414 error is "Request URI too long". Unless you're defining a NETVIGATOR environment variable someplace, I don't think that syntax will work; best to specify the IP blocks.

Are you sure you're placing those directives in the proper place? They should probably be in the a <Location /> container, although they could also be in the <Directory /path/to/documentroot> container. An easy way to check whether or not they're working is to add the IP address of your workstation to the Deny list and try and access the server. Note that if you add these directives to httpd.conf you'll need to bounce Apache, and if you're adding them to a .htaccess file, you'll need the 'Limit' option for your AllowOverride directive in place for the Directory/Location you're trying to affect.