How to prevent Java开发者_开发百科Script from hotlinking and direct access? With .htaccess?
This script works for me. Hope its useful to you too:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)yoursite.com/.*$ [NC]
RewriteRule \.(js)$ - [F]
精彩评论