http://domain.co.uk/files/<type>/<id>/download/
this page then redirects them to the file.
taking this into account, the HTTP_REFERER for the file would be the link above.
so people cant use up my bandwidth without me knowing, i want to stop people from downloading anything if the referer isnt this link.
i have tried:
- Code: Select all
RewriteCond %{HTTP_REFERER} files/[a-z]+/[0-9]+/download/$
RewriteRule uploads/.{1,}\..{3,4} - [L]
- Code: Select all
RewriteCond %{HTTP_REFERER} ^.*/[a-z]+/[0-9]+/download/$
RewriteRule uploads/.{1,}\..{3,4} - [L]
- Code: Select all
RewriteCond %{HTTP_REFERER} ^http://%{HTTP_HOST}/[a-z]+/[0-9]+/download/$
RewriteRule uploads/.{1,}\..{3,4} - [L]
does anyone know what im doing wrong?
thanks for any help in advance
Will