Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> GT - Next Gen and Standard
Author Message
JRSweets
Worker
Worker



Joined: Aug 06, 2004
Posts: 192

PostPosted: Wed Jan 26, 2005 7:36 pm Reply with quote

Code:
RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider       [OR]

RewriteCond %{HTTP_USER_AGENT} ^Xenu's                  [OR]
RewriteCond %{HTTP_USER_AGENT} ^Zeus
RewriteRule ^.*$ emailsforyou.php  [L]


Code ending with the above was added to my htaccess by GT. Instead of redirecting to emailsforyou.php how to I send them to a 403 page forbidden.
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Thu Jan 27, 2005 11:55 am Reply with quote

RewriteRule ^.*$ forbidden_page403.html [F,L]
 
View user's profile Send private message
JRSweets







PostPosted: Thu Jan 27, 2005 1:00 pm Reply with quote

Thanks
 
JRSweets







PostPosted: Thu Jan 27, 2005 10:53 pm Reply with quote

could I do something like this...

Code:
RewriteRule ^.*$ - [F,L]
 
Raven







PostPosted: Fri Jan 28, 2005 5:18 am Reply with quote

Try it and see
 
JRSweets







PostPosted: Fri Jan 28, 2005 7:50 am Reply with quote

Seems to work right, don't really know how to test it though.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> GT - Next Gen and Standard

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©