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're a young Mafia gangster out on your first date, I bet it's real embarrassing if someone tries to kill you. -- Jack Handley