I have a file that I want to be able to download from a page so I want it to be accessible by a link, but I want that the same URL isn’t reachable by direct link for example putting it in the browser address bar.
I tried deny all in .htaccess but that didn’t let me to access it via link.
Is there a way to let access to a resource only via link?
2
Answers
Try with below rule,
You can inspect “Referer” header and deny access if it is not from your web site: