Hi, i have a download server, i want to prevent that no other website can use from my download link to their website.
how can i do it?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Ive noticed that the content thieves either are hotlinkers and just steal my images or they re-upload them on their own servers and now its not hotlinking but content theft and I have to hire either a law firm or a dmca takedown service in order to takedown the copyright infringing content.
To prevent other sites from hotlinking your assets you could create a new location block in your Nginx configuration pointing to the directory containing your image file. Then using the
valid_referers
directive, you can add a list of hosts that are authorized to display the content:In this example, any domain besides
example.com
and its subdomains will recieved a 403 forbidden error when attempting to hotlink an image.