Skip to content

Instantly share code, notes, and snippets.

@manhleo93 manhleo93/.htaccess
Created Jan 20, 2018

Embed
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.)?sampres.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www.)?google.com [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.