Hotlink Protection on 2.2
-
I figured it out!
A while ago when I tried the hotlink protection on cpanel, it broke my wordpress. When I did a search on here, none of the tips helped, so I decided to approach this by trial and error instead.
I’m not exactly sure how .htaccess works, and I don’t know what all the little symbols mean, but now I have hotlink protection AND pretty permalinks (category/post)
RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] RewriteCond %{HTTP_REFERER} !^https://domain.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^https://domain.com$ [NC] RewriteCond %{HTTP_REFERER} !^https://www.domain.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^https://www.domain.com$ [NC] RewriteRule \.(gif|jpg)$ - [F]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Hotlink Protection on 2.2’ is closed to new replies.