block image hotlinking on multisite
-
This is not strictly a WordPress thing, but it does fit into “multisite” questions.
I understand to block “hotlinked” images in .htaccess you use:
RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^https://(www\.)?mydomain.com/.*$ [NC] RewriteRule \.(gif|jpg|js|css)$ - [F]
My question is how would you do this on a multisite install with some domains mapped?
Would you just keep adding more variations of the 3rd line for mapped sites?
RewriteCond %{HTTP_REFERER} !^https://(www\.)?mydomain.com/.*$ [NC]
What about a wildcard for the root site install? How is that written?
Cheers
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘block image hotlinking on multisite’ is closed to new replies.