danangds

header-security.conf untuk nginx

Jul 20th, 2020
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.55 KB | None | 0 0
  1. # To hide PHP version and other related fastcgi headers
  2. #fastcgi_hide_header X-Powered-By;
  3. #fastcgi_hide_header X-Pingback;
  4. fastcgi_hide_header Link;
  5. fastcgi_hide_header Cache-Control;
  6. fastcgi_hide_header Expires;
  7.  
  8. #expires epoch;
  9.  
  10. if_modified_since off;
  11. add_header Last-Modified  "";
  12.  
  13. add_header Cache-Control "no-cache, no-store, max-age=0, must-revalidate";
  14. add_header Expires "Mon, 01 Jan 1990 00:00:00 GMT";
  15. etag off;
  16. add_header X-Content-Type-Options nosniff;
  17. add_header X-Frame-Options SAMEORIGIN;
  18. add_header X-XSS-Protection "1; mode=block";
Advertisement
Add Comment
Please, Sign In to add comment