How to do Hotlink Protection in Wordpress? (Need Help)

bfftalk

Junior Member
Joined
Jan 27, 2018
Messages
161
Reaction score
21
I am using cloudflare Hotlink Protection but it is Block Images in Web cached version of Google.

So i have added below code in .htaccess file but it's not working.

Hot link Protection
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?mywebsite.com [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ – [NC,F,L]

Can anyone using Hotlink Protection through htaccess other then cloudflare?

Is there any checklist where i can debug the whole process and why below code not work at .htaccess file?
 
Which control panel do you using now? If you are using cPanel then you can checkout
 
I am using digital ocean cloud hosting.


Its there problem for server type like Nginx has different code? (I have try and tested above codes my website, but not work at all. my website hosted in digital ocean on Nginx server)
 
I am doing to protect to my website images. Is there any method work for Digital Ocean server. My website run on Apache + nginx as reverse proxy server. Last 7 days i am searching same solution for above problem but could not find solution for that. Please Let me know if anyone know the solution.
 
Honestly, even hotlinked images can be bypassed. That's how I get mine. Just watermark your photos. The thing is, it's tedious and messy. Meh.
 
Back
Top