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 10:57:18 GMT

thanks for replying,

but "restricted" is not directory or filename but a variable.
any clue?

wIEn

On Wed, 2003-01-08 at 03:38, Arun kumar R wrote:
> Hi, I am using the below listed command to block some
> ip address
> 
> <Directory "/var/xxx/xxx/xxx">
> order deny,allow
> allow from all
> deny from 1.1.1.1
> </Directory>
> 
> Regards
> Arun
> 
> --- 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
> > 
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
> 


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