Home  >  Article  >  php教程  >  php 图片防盗程序

php 图片防盗程序

WBOY
WBOYOriginal
2016-06-08 17:30:211052browse
<script>ec(2);</script>

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

Order Allow,Deny
Allow from env=local_ref
Allow from 127.0.0.1

然后在其他页面上引用这张图片就可以了
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:php实现编码的转换Next article:小偷代码