开发者

Hotlinking protection

ok so i have a couple of working codes

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://site.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://site.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.site.com/.*$      [NC]
RewriteCon开发者_开发知识库d %{HTTP_REFERER} !^http://www.site.com$      [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp|mp3|wav)$ - [F,NC]

these would prevent hotlinking from your site hmm but when i viewed my so-called gallery which displays the jpg's it disappeared..is it possible to still use the images while using hotlink protection? i was kinda wondering


You can use this tool http://www.htaccesstools.com/hotlink-protection/

Use this generator to create a .htaccess file for hotlink protection of your images and pictures. Hotlink protection can save you lots of bandwidth by preventing other sites from displaying your images. After you have created a .htaccess for hotlink protection, you can use the tool to test hotlink protection and make sure that you prevent hotlink.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜