How to display 404 errors instead of 403 errors in godaddy Apache 1.3?

Apparently Apache 1.3 is not used by anyone other than godaddy, since I cannot find any relevant information for this.

I would like to use .htaccess files to prevent direct access to certain files on my site, but not allowing attackers to know that such a file exists, so I would like to display a 404 “file not found” error, and not a 403 “forbidden” error .

+1
source share
1 answer

Add the following code to the .htacess file.

RedirectMatch 404 ".*\/\..*" 

it will deny access to all files or directories starting with a dot, giving the error "404 Not Found". using Is there a way to get apache to return 404 instead of 403?

+4
source

All Articles