Skip to content

Instantly share code, notes, and snippets.

@manhleo93 manhleo93/.htaccess
Created Jan 20, 2018

What would you like to do?
Hướng dẫn chặn hotlinking bằng file .htaccess
#disable hotlinking of images with forbidden or custom image option
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www.)? [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www.)? [NC]
RewriteRule .(jpg|jpeg|png|gif)$ [NC,F,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.