php_value memory_limit 64M php_value upload_max_filesize 50M php_value max_execution_time 900 RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?mydomain.com [NC] RewriteRule \.(jpg|jpeg|png|gif)$ http://www.myotherdomain.com/hotlinkxutp.jpg [NC,R,L] ErrorDocument 403 /error/403.html ErrorDocument 404 /error/403.html <Files .htaccess> order allow,deny deny from all </Files>