I've saw this before over at phpbb.com but am unable to find it. What I want is a section of my site which is only possible to access by clicking on a specific link. If users don't come from this specific link I'd like to redirect them to another page - i.e a login page. Any help would be appeciated, thanks.
Maybe this way? RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://(.+\.)?yourdomain\.com/pagewithlink\.htm [NC] RewriteRule .*pagewithlink\.html$ ^http://login_script_address/$ [R=301,L] Code (markup):