开发者

How to prevent JavaScript from hotlinking and direct access?

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]
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜