krlaboratories

security Apache server configs

Oct 30th, 2021 (edited)
620
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1. Add in your .htaccess file:
  2.  
  3. <IfModule mod_headers.c>
  4.   Header unset X-Powered-By
  5.   Header unset Server
  6. </IfModule>
  7.  
  8. Check here: https://bertal.ru/
  9.  
  10. PROFIT
  11.  
  12. P.S. If does not working - please find your httpd.conf file and add such strokes:
  13.  
  14. ServerTokens Prod
  15. ServerSignature Off
  16.  
  17. Add in php.ini:
  18.  
  19. expose_php = Off
  20.  
  21. Reboot server.
Add Comment
Please, Sign In to add comment