Last active
March 24, 2017 22:05
-
-
Save BeFiveINFO/b5445092dca18995fd25a61915d6244a to your computer and use it in GitHub Desktop.
WordPress .htaccess Example for Hotlinking Protection
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
# Hotlink Protection | |
RewriteEngine on | |
RewriteBase / | |
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?yourdomain\.com/ [NC] | |
RewriteRule .*\.(jpe?g|gif|ogv|webm|bmp|png|mp4|svg|css|)$ http://your.domain.com/protected-image-banner.jpg [NC,R,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment