• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Simple mod_rewrite question

T

tobtob

Guest
I need to block myspace.com from externally linking to images on my site. I found a recent KB article titled " How do I prevent hotlinking graphics from my domain?" http://kb.swsoft.com/article_41_1026_en.html
I added the code suggested but it ends up blocking the images from displaying externally as well as not allowing them to be displayed on my own site.

Here is the code:
RewriteEngine on
RewriteCond % !^$
RewriteCond % !^http://(www\.)?BOOK-EASE\.COM(/)?.*$ [NC]
RewriteRule \.(gif|jpg|jpeg|png|swf)$ - [NC,F]

Any ideas on why this doesn't work? Could it be the "dash" in the domain name ?
 
Back
Top