View Single Post
Old 10-18-2013, 07:19 AM  
pinkz
Mr 1%
 
pinkz's Avatar
 
Industry Role:
Join Date: May 2005
Location: Nomad
Posts: 1,397
Quote:
Originally Posted by gracesfall View Post
How does that combine w/ what WP normally puts in the .htaccess file? I tried adding it and it made my whole site go 501 Server Error on me. Ugh.
try

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)domain.com/.*$ [NC]
RewriteRule \.(gif|jpg|jpeg|bmp|flv|swf|png|pdf|css)$ - [F]

place it after the standard wp code in the htaccess file
__________________
$$$$ Video Secrets $$$$
pinkz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote