View Single Post
Old 06-15-2009, 08:03 AM  
donnie
Confirmed User
 
Join Date: Jan 2003
Posts: 1,630
htaccess question

I want to allow access to a folder only from links on certain pages. I know how to do this if pages are on the same domain. I have this code:

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*domain.com/ [NC]
RewriteRule /* http://domain.com/enter.php [L,R]

But what if I want to allow access from several different domains and several different pages? Is that possible with htaccess?
donnie is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote