Stop hotlinking with custom image
-
Hello, I am looking for a good way to stop hotlinking – I found a plugin that seems to work good but I am looking for one that will let me display a custom image rather than some default one. I have followed instructions here to try and stop it: https://www.hongkiat.com/blog/smarter-way-to-prevent-image-hotlinking-with-htaccess/
but it didn’t seem to work – I already have a .htaccess file and I am not sure if I should replace the code that is already in it with the code from this site or just add this stuff to it. This is what my .htaccess file currently looks like:# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule># END WordPress
On a side note – I don’t really know what these conditions that are in my htaccess are for – they were generated by WordPress so not sure how important they areAm I supposed to replace these rewrite conditions with the ones that are listed on that page or just add them? I tried adding them and it didn’t seem to stop the ability to hotlink. Any help is greatly appreciated! Thanks!
- The topic ‘Stop hotlinking with custom image’ is closed to new replies.