Apache Secure Tutorial: Hide HTTP Header and Disable Directory Listing

Publié le: 02 juin 2017
sur la chaîne: dotsway
17,984
162

This is one of the basic secuirty hardening and first steps, by default server will show the OS information and Apache version in the footer whenever a page not found or any other requests replies.

One of the first steps when you start securing your Apache server is to disable the directory browsing, you don't want anyone to browse your file and know the structure.



Other Apache Hardening Tutorials:

1- Secure Apache Web Server - Use SSLScan and Disable Ciphers:
https://goo.gl/mb7pYz


2- Apache Secure Tutorial: Hide HTTP Header and Disable Directory Listing:
https://goo.gl/VqcLrG


3- Apache Hardening Tutorial: Disable HTTP Trace / Cross Site Method
https://goo.gl/KJnbDS





Disable Server Response Header

vi /etc/httpd/conf/httpd.conf

Add

ServerTokens Prod

Save

Restart Apache

service httpd restart "RHEL/CentOS 6 and earlier versions"

systemctl restart httpd "RHEL/CentOS 7 and earlier versions"



Disable Apache Trailing Footer



vi /etc/httpd/conf/httpd.conf

Add

ServerSignature Off

Save

Restart Apache

service httpd restart "RHEL/CentOS 6 and earlier versions"

systemctl restart httpd "RHEL/CentOS 7 and earlier versions"


n this example i will disable browsing for /var/www/html/dotsway folder.

vi /etc/httpd/conf/httpd.com

Add below to the directory part
Options -Indexes

Save

Restart Apache

service httpd restart
OR
systemctl restart httpd


Sur cette page du site, vous pouvez voir la vidéo en ligne Apache Secure Tutorial: Hide HTTP Header and Disable Directory Listing durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur dotsway 02 juin 2017, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 17,984 fois et il a aimé 162 téléspectateurs. Bon visionnage!