Where i must insert this 3 Lines in my htaccess....
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?somedomainname\.ch(/.*)?$ [NC]
RewriteRule \.(bin|rar|zip|exe|ipsw|gif|jpg|GIF|JPG|jpeg|JPEG)$ http://www.somedomainname.ch/assets/sorry.gif [R,L]
At the moment they are at this position. But they do not work.
I would only protect all my Files from Hotlinking.
### SILVERSTRIPE START ###
<Files *.ss>
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Files>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# RewriteCond %{HTTP_HOST} ^somedomainname\.ch [nc]
# RewriteRule (.*) http://www.somedomainname.ch/$1 [R=301,L]
RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?somedomainname\.ch(/.*)?$ [NC]
RewriteRule \.(bin|rar|zip|exe|ipsw|gif|jpg|GIF|JPG|jpeg|JPEG)$ http://www.somedomainname.ch/assets/sorry.gif [R,L]
</IfModule>
### SILVERSTRIPE END ###
I would be very happy if some one can help me... because my Servertraffic is about 10GB /day only trought Hotlinking. ;-(