• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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