防止热链接
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了防止热链接相关的知识,希望对你有一定的参考价值。
Tired of people using your bandwidth by putting the images hosted on your server on their website? Add the following code at the bottom of your .htaccess file to prevent hotlinking.
Options +FollowSymlinks #Protect against hotlinking RewriteEngine On RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www.)?domainname.com/ [nc] RewriteRule .*.(gif|jpg|png)$ http://domainname.com/img/stop_stealing_bandwidth.gif[nc]
以上是关于防止热链接的主要内容,如果未能解决你的问题,请参考以下文章