常遇到有網友來你的網站偷圖,狠心腸的用軟體一砍就是數萬張,頻寬再大也不夠用啊!只要在.htaccess中設定就能趕走不速之客。
方法很簡單,加下幾行設定即可:
SetEnvIfNoCase Referer "^http://smartjj\.blogspot\.com/" local_ref=1 SetEnvIfNoCase Referer "^http://192\.168\.8.1/" local_ref=1
<FilesMatch "\.(gif|jpg|png)">
Order Allow,Deny
Allow from env=local_ref
Allow from 127.0.0.1
</FilesMatch>
Post Top Ad
Responsive Ads Here
Post Bottom Ad
Responsive Ads Here
Author Details
Templatesyard is a blogger resources site is a provider of high quality blogger template with premium looking layout and robust design. The main mission of templatesyard is to provide the best quality blogger templates which are professionally designed and perfectlly seo optimized to deliver best result for your blog.
沒有留言:
張貼留言