NoPaste.me

Secure and Anonymous

Login

  • Only for Administration!
  1. # Global restrictions configuration file.
  2. # Designed to be included in any server {} block.</p>
  3. location = /favicon.ico {
  4.         log_not_found off;
  5.         access_log off;
  6. }
  7.  
  8. location = /robots.txt {
  9.         allow all;
  10.         log_not_found off;
  11.         access_log off;
  12. }
  13.  
  14. # Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac).
  15. # Keep logging the requests to parse later (or to pass to firewall utilities such as fail2ban)
  16. location ~ /\. {
  17.         deny all;
  18. }
  19.  
  20. # Deny access to any files with a .php extension in the uploads directory
  21. # Works in sub-directory installs and also in multisite network
  22. # Keep logging the requests to parse later (or to pass to firewall utilities such as fail2ban)
  23. location ~* /(?:uploads|files)/.*\.php$ {
  24.         deny all;
  25. }