hotlinking prevention code
-
Hello, thank you very much for this great plugin.
I’ve decided to enable the part of the secure htaccess file code that prevents hotlinking of images by other domains.
In the comment section of that code you point to a webpage for hotlink testing. In that page the hotlinking prevention code has one difference from the one you have included in your htaccess fileThe suggested code in that page is (talking about this one line)
RewriteCond %{HTTP_REFERER} !^https://(.+\.)?mysite\.com/ [NC]
While your code is
RewriteCond %{HTTP_REFERER} !^https?://(www\.)?mysite\.com [NC]
I wanted to ask about that final slash “/” in the first instance, which is missing from the second.
I’ve tried both with and without both seem to work effectively (with and without the slash).
Does that slash make any difference in any scenario? Only asking because you pointed to that website in your code.Thank you.
https://www.ads-software.com/extend/plugins/bulletproof-security/
- The topic ‘hotlinking prevention code’ is closed to new replies.