How do I prevent my images from being hot-linked by another website?
Answer Posted / Pooja Kumari
To prevent your images from being hot-linked, you can modify the .htaccess file in your WordPress root directory with the following code: nn`RewriteEngine On RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http(s)?://(www.)?example.com [NC] RewriteRule .(jpg|jpeg|png|gif|bmp)$ - (Faceddeny request_headers)`
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers