Last active
August 29, 2015 14:12
-
-
Save RyoSugimoto/053a1e55225f485c0675 to your computer and use it in GitHub Desktop.
直リンクを防止する。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mysite\.com/ [NC] | |
RewriteCond %{HTTP_REFERER} !^$ | |
RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/nohotlink.jpg [L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment