PDA

View Full Version : .htaccess - alowing only certain sites access


shane
11-04-2000, 08:14 PM
If some can help me ill be happy http://adultwebmasterinfo.com/ubb/smile.gif

I have some files on lolita-tv.com , but I only want to allow access to these if someone clicks a link from teenagejuice.com or motelporn.com , and also not allow access from lolita-tv.com itself, incase someone bookmatrks it

Dan S
11-05-2000, 04:06 AM
Here you go:

.htaccess file in the dir you store the files you want to protect:

AuthUserFile /dev/null
AuthGroupFile /dev/null

RewriteEngine On

RewriteCond %{HTTP_REFERER} !^http://yourdomain1.com/
RewriteCond %{HTTP_REFERER} !^http://yourdomain2.com/
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain1.com/
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain2.com/ [NC]

RewriteRule /* http://www.yoururl.com/toredirect/them.html [R,L]

shane
11-05-2000, 07:02 AM
Oh shit, I crashed the server!

shane
11-05-2000, 07:35 AM
Got it working good THANKS MAN!!!