Hello,
I need help to restrict file download to specific ip via htaccess rewrite, I use this rules in the .htaccess file but it don't work,
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} !^xx\.xx\.xx\.xx [NC]
RewriteRule \.*$ http://www.example.com [NC,R=302]
I use cpanel, apache with nginx admin, could nginx cause this issue? htaccess rewrite working like this,
RewriteRule ^.*$ download.php&%{QUERY_STRING}
Edit: I want to restrict all kind of downloads, regular and by download accelerators.
Thanks.