INT 21h

Hi, I am Vladimir Smagin, SysAdmin and Kaptain. Telegram Email / GIT / RSS / GPG

Борьба с хотлинками в nginx

№ 8099 В разделе Sysadmin от February 25th, 2016,
В подшивках: ,

Надоели хотлинкеры, сосущие траффик гигабайтами? Отличный рецепт:

location ~ .(gif|png|jpe?g)$ {
    if ($invalid_referer) {
        access_log /var/log/nginx/hotlinks.log;
        rewrite (.*)\.(jpg|jpeg|png|gif)$ /;

Нет комментариев »

Leave a Reply

Your email address will not be published. Required fields are marked *


Облачная платформа

Fortune cookie: "If you can't answer a man's arguments, all is not lost; you can still call him vile names." [Elbert Hubbard]