httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Andersson" <rob...@profundis.nu>
Subject Re: [users@httpd] Again About ReWriting URL
Date Thu, 02 Sep 2004 11:55:06 GMT
Erwien Samantha Y wrote:
> I like to Deny all request to admin.html  with No REFERER "AND" No
> USER_AGENT info , but if user only have one of info REFERER "OR"
> USER_AGENT he/she still have posibility to access admin.html , 
> Any can help me how to define the condition ??

Hmm, well, problably yes:

RewriteCond %{HTTP_REFERER}%{HTTP_USER_AGENT} !.+
RewriteRule admin\.html - [F]

But I wonder if that really is what you want...

Regards,
Robert Andersson

---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message