RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?keptarhely.eu(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(.*\.)?keptarhely.eu(/)?.*$ [NC]
RewriteRule ^(.*\.(jpg|jpeg|gif|ico|bmp|png))$ http://keptarhely.eu/view.php?file=$1 [R,NC]
