开发者

How to prevent JavaScript from hotlinking and direct access?

开发者 https://www.devze.com 2023-02-27 15:59 出处:网络
How to prevent Java开发者_开发百科Script from hotlinking and direct access? With .htaccess?This script works for me. Hope its useful to you too:

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

精彩评论

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