LawsHosting
Verified User
I want to block DIRECT access to files in a (two-deep) folder with a custom referrer from a PHP file
Tried
and
However, none of them seem to function.??
Tried
Code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^https://(www\.)?xxxxx.\com/dir/get-file.php$ [NC]
RewriteRule \.(mp3)$ url/login.php [F]
Code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} ^$ [NC]
RewriteRule \.(mp3)$ url/login.php [F]