Here are some recommendations for the .htaccess file in your public_html folder.
Disable Directory Listings
Disabling directory listings helps hide the structure and content of your site. This can somewhat improve security and make it more difficult to take advantages of weaknesses on your site.
Insert the following into your .htaccess file:
Resolve/Prevent auto discover.xml Lookups
For WordPress sites
For Non-Wordpress sites
Insert the following lines into your
RewriteRule ^autodiscover/autodiscover.xml$ - [forbidden,last]
How to Edit .htaccess
- Open File Manager from cPanel
- Navigate to
- If the
.htaccessis not visible, open
Show Hidden Files (dotfiles).
- Select the
.htaccessfile and click