jep-heroes/wp/master/jep-heroes/wp/.htaccess - Htaccess File

jep-heroes/wp/master/jep-heroes/wp/.htaccess

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

# BEGIN Hotlinking
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.jep-heroes.com/.*$ [NC]
RewriteRule .(pdf|doc|docx|odt|rtf|txt)$ [R=302,L]
</IfModule>

# END Hotlinking
# BEGIN Force Download
AddType application/octet-stream .pdf .txt

# END Force Download

On Github License

Files

Download PDF of Htaccess file
HTTP_REFERER, REQUEST_FILENAME

Comments

Apache