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] restrict some IP to accessed an URI
Date Wed, 08 Jan 2003 13:25:24 GMT
Thanks it's works.

On Wed, 2003-01-08 at 04:20, Jurgen wrote:
> Hi,
> 
> try:
> RewriteCond %{REQUEST_URI} /to/restricted [NC,OR]
> 
> Jurgen
> 
> 
> On 08 Jan 2003 09:51:47 +0000
> Erwien Samantha Y <apache@cosinus.sederhana.or.id> wrote:
> 
> > Hello folks,
> > 
> > I need help with rewrite ,
> > the purpose is block some IP address to accessed an URI.
> > example :
> > 
> > http://www.mydomain.com/to/restricted on accessible from 10.32.1.1
> > 
> > i already define like this 
> > 
> > RewriteCond %{REQUEST_URI} http://www.mydomain.com/to/restricted [NC,OR]
> > RewriteCond %{REMOTE_ADDR}      !^10\.32\.1\.1$
> > RewriteRule ^(.+)       http://www.google.com [R,L]
> > RewriteLog      "/www/logs/rewrite.log"
> > 
> > 
> > But still no effect 
> > please help me ..
> > 
> > 
> > wIEn
> > 
> > 
> > ---------------------------------------------------------------------
> > 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
> 


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