htaccess ไม่อนุญาติให้คนอื่นเข้าถึงไฟล์ของเรา

# block visitors referred from indicated domains
# If HTTP_REFERER NOT COME FROM BELOW RewriteCond to access all filetype(.*$) in RewriteRule
# Then redirect to RewriteRule url

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://localhost.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.picohosting.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://picohosting.com:80.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.picohosting.com:80.*$ [NC]
RewriteRule .*$ http://www.picohosting.com/hotlink.html

Related posts:

This entry was posted in เกร็ดความรู้. Bookmark the permalink.