Created
July 24, 2014 05:12
-
-
Save fangcat/70c47b9bf5fdd5a89f4f to your computer and use it in GitHub Desktop.
防止直接取用你的圖片鏈結
This file contains 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} !^$ | |
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yourwebsite.com [NC] | |
RewriteRule \.(jpg|jpeg|png|gif)$ http://i.imgur.com/g7ptdBB.png [NC,R,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment