[Plugin: BPS Security] Editing .htaccess file to Protect hotlinking
-
I am trying to add the following code to secure.htaccess from Edit/Upload/Download Tab of the plugin.
RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?https://sitename.in [NC] RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?https://sitename2.in [NC] RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?https://www.sitename.in [NC] RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?https://www.sitename2.in [NC] RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?https://sitename3.in/ [NC] RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?https://www.sitename3.in/ [NC] RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?https://sitename4.in/ [NC] RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?https://www.sitename4.in/ [NC] RewriteRule \.(jpg|jpeg|png|gif)$ https://i.imgur.com/hX1mb.gif [NC,R,L]
But when I click on update, I end up on a 404 page.
I also have Better WP Security, tried disabling it. Still the same.
.htaccess has 644 permission when I checked it under Security Status Tab.
https://www.ads-software.com/extend/plugins/bulletproof-security/
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘[Plugin: BPS Security] Editing .htaccess file to Protect hotlinking’ is closed to new replies.