View Full Version : .htacess Question
I would like to know how to limit access to a certain page of mine to only those people coming from a specific URL from another website. I believe that I can do this with .htaccess but need to know how. I'm not looking to Password protect my page, just limit it's access to a specific referring URL. Can anyone help? Thanks.
joh6nn
07-25-2002, 07:38 AM
Feyd's tutorial on the subject:
http://www.javascriptkit.com/howto/htaccess.shtml
Thanks for the help. I'd already seen his tutorial. It doesn't help me as it only limits / allows access from a domain... I need the function to work down to a specific page URL.
MCookie
07-25-2002, 10:12 AM
Not shure, didn't test it, so I probably shouldn't post it, but this might work:
<Files yourfile.html>
order allow,deny
allow from all
deny from .badreferer.com
</Files>
SYP}{ER
07-25-2002, 12:19 PM
Originally posted by MCookie
Not shure, didn't test it, so I probably shouldn't post it, but this might work:
<Files yourfile.html>
order allow,deny
allow from all
deny from .badreferer.com
</Files>
You mean:
<Files yourfile.html>
order allow,deny
allow from goodreferer.com
deny from all
</Files>
Never seen <files> before, though. Why not just move the file into a directory of its own?
MCookie
07-25-2002, 12:39 PM
"Files" is used when you want you want to limit or allow access to one specific file. And surely I don't mean "deny from all" since everyone may access the page except for viewers coming from just one refering domain.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.