Thread: .htaccess HELP
View Single Post
Old 09-16-2002, 04:28 PM  
some_idiot
Confirmed User
 
Join Date: May 2002
Location: Doesn't matter, I'm not buying you another pint!
Posts: 1,511
Quote:
Originally posted by sexyclicks
I want to allow certain referers using .htaccess (or anything similar)

For example when the user is coming from mydomain1.com is allowed to enter but if coming from mydomain2.com is not....

Example:
Code:
Limit GET                                                               
order deny,allow
deny from all
referer allow from http://yourdomain.com/*
/Limit
Am I crazy?
You seem to have httpd.conf commands here not
htaccess.

If you want htaccess from a referrer, use the rewrite
conditional.

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://*yourdomain.com/ [NC]
RewriteRule /* http://send.badguys.here.com/ [R,L]

... do you want the httpd.conf for doing similar?
some_idiot is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote