<p>RewriteEngine On<br />RewriteCond %{HTTP_REFERER} !^http://<span style="color: #ff0000">www.samool.com</span>/.*$ [NC] <br />RewriteCond %{HTTP_REFERER} !^http://<span style="color: #ff0000">www.samool.com</span>$ [NC] <br />RewriteCond %{HTTP_REFERER} !^http://<span style="color: #ff0000">samool.com</span>/.*$ [NC] <br />RewriteCond %{HTTP_REFERER} !^http://<span style="color: #ff0000">samool.com</span>$ [NC] <br />RewriteRule .*\.(gif|jpg|mp3|rm|wma|exe|rar|zip)$ http://<span style="color: #339966"><span>www.samool.com/403.html</span></span><span style="color: #00ff00"> </span>[R,NC]</p><p>请将以上内容保存为.htaccess文件,放在网站根目录,修改红色网址为你的网址,绿色为错误页面。</p> Loading... <p>RewriteEngine On<br />RewriteCond %{HTTP_REFERER} !^http://<span style="color: #ff0000">www.samool.com</span>/.*$ [NC] <br />RewriteCond %{HTTP_REFERER} !^http://<span style="color: #ff0000">www.samool.com</span>$ [NC] <br />RewriteCond %{HTTP_REFERER} !^http://<span style="color: #ff0000">samool.com</span>/.*$ [NC] <br />RewriteCond %{HTTP_REFERER} !^http://<span style="color: #ff0000">samool.com</span>$ [NC] <br />RewriteRule .*\.(gif|jpg|mp3|rm|wma|exe|rar|zip)$ http://<span style="color: #339966"><span>www.samool.com/403.html</span></span><span style="color: #00ff00"> </span>[R,NC]</p><p>请将以上内容保存为.htaccess文件,放在网站根目录,修改红色网址为你的网址,绿色为错误页面。</p> 最后修改:2009 年 08 月 16 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 支持就是力量