httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erwien Samantha Y <apa...@cosinus.sederhana.or.id>
Subject Re: [users@httpd] Again About ReWriting URL
Date Fri, 03 Sep 2004 01:26:54 GMT
Hi Robert ,

Can you tell me what the meaning  "!.+" ?
RewriteCond %{HTTP_REFERER}%{HTTP_USER_AGENT} !.+

this the real condition that  i want to do ..

Deny this request because there're no INFO about HTTP_REFERER and 
HTTP_USER_AGENT
xxx.xxx.xxx.xx - - [03/Sep/2004:08:14:17 +0700] "GET /admin.html HTTP/1.0" 200 
76620 "-" "-" 

But we can still accept if there any info about HTTP_REFERER or 
HTTP_USER_AGENT
xxx.xxx.xx.xx - - [03/Sep/2004:08:16:15 +0700] "GET /admin.html HTTP/1.1" 200 
13085 "-" "Mozilla/4.0 (compatible; MSIE 6.0; X11; Linux i686) Opera 7.54  
[en]"

thanks.

Erwien 



On Thursday 02 September 2004 07:55 am, Robert Andersson wrote:
> 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

---------------------------------------------------------------------
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