Please Help! I am trying to forbid visitors to access the following file name ?file=: Only work with my domain like we do Hotlink protection domain.com/inscription/?file= Try this RewriteCond %{HTTP_REFERER} !^domain.com$[NC] RewriteEngine On RewriteRule (^|/)file(/|$) - [F,NC] but what I have above does not work: I can still access the file from the browser remotely.