defense.conf

# Riverside Fortress security configuration
# Defense

# author: Sergey Serov

# defense
#########

location ~ (^|/)\. {
  access_log /var/www/html/ww_logs/nginx_deny.log defense_log;
  deny all;
}

location ~ (^|/)~ {
  access_log /var/www/html/ww_logs/nginx_deny.log defense_log;
  deny all;
}

location ~ ~$ {
  access_log /var/www/html/ww_logs/nginx_deny.log defense_log;
  deny all;
}

location ~ \.php$ {
  access_log /var/www/html/ww_logs/nginx_deny.log defense_log;
  deny all;
}

location ~ \.info$ {
  access_log /var/www/html/ww_logs/nginx_deny.log defense_log;
  deny all;
}

location ~ \.install$ {
  access_log /var/www/html/ww_logs/nginx_deny.log defense_log;
  deny all;
}

#location ~ {
#    deny  123.345.678.910;
#}