apche+php网站防盗链

该日志由 samool 发表于 2008-05-22 10:53 PM

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://www.samool.com/.*$ [NC]   
RewriteCond %{HTTP_REFERER} !^http://www.samool.com$ [NC]   
RewriteCond %{HTTP_REFERER} !^http://samool.com/.*$ [NC]   
RewriteCond %{HTTP_REFERER} !^http://samool.com$ [NC] 
RewriteRule .*\.(gif|jpg|mp3|rm|wma|exe|rar|zip)$ http://www.samool.com/403.html [R,NC]

请将以上内容保存为.htaccess文件,放在网站根目录,修改红色网址为你的网址,绿色为错误页面。

 傻猫网络日志标签:    apache, php, 防盗链, 图片
网摘: Yahoo Baidu Google Bolaa 365Key Yesky Wozhai POCO ViVi YouNote Hexun Del.icio.us Yeeyoo igooi I2Key Cn3 Bytemen Furl Blinklist Blogmarks Technorati 分享到饭否
相关文章: (最多只显示5条记录)
php读取mssql日期出现中文字符的解决方法 (浏览:3332, 评论:0)
PHP如何去掉转义 (浏览:3690, 评论:0)
php 操作 mssql的一些方法 (浏览:3679, 评论:0)
“512”地震那天我在现场的情况[图] (浏览:1263, 评论:3)
[图]金晶保护火炬,感动所有人 (浏览:860, 评论:0)
发表评论:( 来了就留个脚印吧!你的参与是我最大的动力!)

    

(单击图片换张图片)