This tutorial explains how to prevent direct linking to the files on your server
A little htaccess code is all that’s needed to prevent direct linking.
We needed to implement this solution recently for a client who wanted to gather names and emails from people before they downloaded a trial version of their software.
We figured the solution might be useful to others too so thought we’d share it.
To prevent direct linking of files using this method, you need to be using an Apache server with Mod_Rewrite enabled.
This is the code used in the tutorial:
If you’re using WordPress and want to find out more about the server specification required, you should consult the WordPress Codex.
[ts_fab]