restrictions.conf 243 B

123456789101112131415
  1. location = /favicon.ico {
  2. log_not_found off;
  3. access_log off;
  4. }
  5. location = /robots.txt {
  6. allow all;
  7. log_not_found off;
  8. access_log off;
  9. }
  10. location ~ /\. { deny all; }
  11. location ~* /(?:uploads|files)/.*\.php$ { deny all; }