httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Admin-Stress <meerka...@yahoo.com>
Subject RE: [users@httpd] Help with mod_rewrite
Date Fri, 09 Jul 2004 00:55:49 GMT
This does not work :

RewriteRule .* http://www.redirected.org/contact.html [R]

it will make the browser 'stuck' ... like hung, trying to connect ... no stop

http://www.redirected.org/contact.html  <-- just an example.

--- "Porter, Mark" <Mark.Porter@LibertyMutual.com> wrote:
> You'll add more domains with [OR]
> 
> RewriteCond %{HTTP_REFERER} absba\.org [OR,NC]
> RewriteCond %{HTTP_REFERER} blah\.org [OR,NC]
> RewriteCond %{HTTP_REFERER} bluh\.org [NC] 
> 
> There should be no [OR] on the last RewriteCond.
> 
> I don't see an obvious reason that the rule wouldn't work, but I'm certainly no mod_rewrite
> expert. What do the rewrite logs say?
> 
> MP
> 
> 
> 
> -----Original Message-----
> From: Admin-Stress [mailto:meerkapot@yahoo.com] 
> Sent: Thursday, July 08, 2004 8:18 PM
> To: users@httpd.apache.org
> Subject: RE: [users@httpd] Help with mod_rewrite
> 
> 
> Thanks, but when I change the RewriteRule to redirect to http://www.redirected.org/contact.html,
> it does not work :
> 
>    RewriteRule .* http://www.redirected.org/contact.html [R]
> 
> also, how can I add more "domain" ? is this correct ?
> 
> RewriteCond %{HTTP_REFERER} absba\.org [NC]
> RewriteCond %{HTTP_REFERER} blah\.org [NC]
> RewriteCond %{HTTP_REFERER} bluh\.org [NC]
> ...
> ...
> 
> --- "Porter, Mark" <Mark.Porter@LibertyMutual.com> wrote:
> > Try this:
> > 
> > 
> >    RewriteEngine on
> >    RewriteLogLevel 3
> >    RewriteLog "/home/www/mywebsite.com/logs/rewrite.log"
> >    RewriteCond %{HTTP_REFERER} absba\.org [NC]
> >    RewriteRule .* http://www.redirected.org/ [R]
> > 
> > 
> > 
> > 
> > -----Original Message-----
> > From: Admin-Stress [mailto:meerkapot@yahoo.com] 
> > Sent: Thursday, July 08, 2004 4:44 PM
> > To: users@httpd.apache.org
> > Subject: [users@httpd] Help with mod_rewrite
> > 
> > 
> > Hi,
> > 
> > I want to redirect/block some HTTP_REFERER using apache 2.0.48.
> > 
> > Here is an example of the HTTP_REFERER :
> > 
> >      http://www.absba.org/vb/showthread.php?threadid=11234
> > 
> > I got it from apache log file. But I just want to block every connection from absba.org
.
> > 
> > And here is the mod_rewrite config in my httpd.conf :
> > 
> >    RewriteEngine on
> >    RewriteLogLevel 3
> >    RewriteLog "/home/www/mywebsite.com/logs/rewrite.log"
> >    RewriteCond %{HTTP_REFERER} ^http://www.absba.* [OR,NC]
> >    RewriteRule ^(.*)$ http://www.redirected.org/
> > 
> > I tried several other RewriteCond but no luck 
> > I dont quite understand with regular expression
> > 
> > please help.
> > 
> > Thanks
> > 
> > 
> > 		
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Mail - 50x more storage than other providers!
> > http://promotions.yahoo.com/new_mail
> > 
> > ---------------------------------------------------------------------
> > 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
> > 
> > 
> 
> 
> 
> 	
> 		
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - 100MB free storage!
> http://promotions.yahoo.com/new_mail 
> 
> ---------------------------------------------------------------------
> 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
> 
> 



		
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

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