You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Martin Haase-Thomas <mh...@meome-ag.de> on 2002/03/04 07:58:05 UTC
Re: Drop requests
RewriteEngine On
RewriteLog /path/to/logfile
RewriteLogLevel [0-9]
RewriteCond %HTTP_USER_AGENT} (nimda|wget|htget|java|libwww|...) [NC]
RewriteRule (.*) http://www.disneyland.com$1 [R=permanent,L]
OR (and more serious):
RewriteRule (.*) - [F]
or read
http://httpd.apache.org/docs/mod/mod_rewrite.html
regards
Martin
Martin 'pisi' Paljak wrote:
>How can one 'drop' requests dor a certain URL?
>
>Would be nice if I could do it somehow, to block nimda queries and some
>other urls I don't want to handle or generate any output etc.. something
>that would 1) not reflect the request on logs 2) send no output back to
>the requesting client.
>
>Ideas?
>
--
http://www.meome.de
-------------------------------------------------------
Martin Haase-Thomas | Tel.: 030 43730-558
meOme AG | Fax.: 030 43730-555
Software Development | mht@meome-ag.de
-------------------------------------------------------
---------------------------------------------------------------------
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