how i can deny referer Spam with nginx (perusio)

Events happening in the community are now at Drupal community events on www.drupal.org.
eule's picture

hello,

i try to deny some referer Spam in some szenarios i get it working in other not. i use these locations in a drupal 7 install and this seems to work.

  location / {
     valid_referers none blocked *.kambasoft.com *.savetubevideo.com;

     if ($invalid_referer) {
    return   403;
  }
}

on the same server i have 2 preview drupal 8 sites, if i use these locations i can access the frontpage but all other pages i become a 403 nginx error.

can anyone help with this? i look in the perusio nginx config and find nothing about blocking referer spam in this way.

thanks

Nginx

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: