Image hotlink prevention excludes subdomains on multisite
-
The image hotlink prevention feature keeps subdomain sites on multisite install from being able to properly display images used by plugins and even the WP core theme manager (theme thumbnails do not display).
The syntax of the rewrite condition regex in the PREVENT_IMAGE_HOTLINKS section:
“RewriteCond %{HTTP_REFERER} !^http(s)?://domain-name\.com”
is the cause.I see that same syntax is used in the BLOCK_SPAMBOTS section, which would also block legitimate requests from commenters on subdomain sites.
As a temporary fix, I have modified both regex expressions to:
“RewriteCond %{HTTP_REFERER} !domain-name\.com”P.S. I don’t know if this is worthy of a separate thread, but AIOWPS always rewrites .htaccess placing its own code block at the very top. There are certain rules that I need to have at the very top, and thus whenever AIOWPS rewrites the file, it breaks certain functionality/integration of my site. IMO, once AIOWPS has established its code block (ie. at “# BEGIN/END All In One WP Security”), it should confine itself to rewriting only within that block and nowhere else.
https://www.ads-software.com/plugins/all-in-one-wp-security-and-firewall/
- The topic ‘Image hotlink prevention excludes subdomains on multisite’ is closed to new replies.