首页 > php代码 > php 图片防盗程序

php 图片防盗程序

RewriteEngine on
RewriteCond %{HTTP_REFERER
} !^$
RewriteCond %{HTTP_REFERER} !^http:
//(www.)?***.com/.*$ [NC]
RewriteRule .(gif|jpg|jpeg|png|rar|zip|mp3|wma|swf)$ - [F]

SetEnvIfNoCase Referer "^http://211.66.25.176/" local_ref=1
<FilesMatch ".(txt|doc|gif|jpg|mp3)">
Order Allow,Deny
Allow from env=local_ref
Allow from 127.0.0.1
</FilesMatch>
然后在其他页面上引用这张图片就可以了

永久地址:http://www.phprm.com/code/2433c19dd0cc280286eccb72c4ab628a.html

转载随意~请带上教程地址吧^^

标签:none

发表留言