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?