1
Open cPanel File Manager
Go to cPanel > Files > File Manager. In Settings (top right), ensure 'Show Hidden Files (dotfiles)' is checked.
Go to cPanel > Files > File Manager. In Settings (top right), ensure 'Show Hidden Files (dotfiles)' is checked.
Right-click .htaccess and choose 'Edit'.
Paste the following directive at the very top of your .htaccess file:
<FilesMatch "^\.ht">
Require all denied
</FilesMatch>Save the file. Visit https://yourdomain.com/.htaccess in your browser; you should receive a 403 Forbidden response.