Use .htaccess to limit access to file downloads
- by jimiyash
I have downloads for static files like product.exe. I want to limit access
to these files with a .htaccess file so that only certain users can download it.
I think this can be handled with mod_rewrite and I found this snippet online
that blocks bad sites using the referrer.
RewriteEngine on
# Options +FollowSymlinks
RewriteCond %{HTTP_REFERER}…