Guides 11791 Published by

Linux Shell Tips published a tutorial showing you how to block image hotlinking in Nginx Web Server.



How to Block Image Hotlinking in Nginx Web Server

Consider a scenario, you have finally managed to create and host your first web app under a Linux system and you wanted your web app to lure continuous user traffic, you beautified it with some custom images of which you have full copyright.

This issue is called image hotlinking and it’s quite difficult to link it to copyright violation since these platforms are only mirroring your images. If you are lucky enough to be using Nginx as your primary web server, we can find a workaround for this issue.

Image_hotlinking_nginx

How to Block Image Hotlinking in Nginx Web Server