Deny Access to Log and Text Files

If you want to deny access to log and text files, add this to your .htaccess:


    Order Allow,Deny
    Deny from all
</FilesMatch>

If you want to show a 404 error page instead, use this for your .htaccess:

RedirectMatch 404 ((?<!robots|humans).txt|.log)$