Order of errors

#1
Hi,

If I block an IP with deny in .htaccess it gives a 403 properly, however if the user requests a file that does not exist they receive a 404 instead of the 403. Is there a way to change the order the errors are evaluated in? I'd like a 403 to be displayed regardless of what file the user is requesting if they are blocked in the .htaccess

Thanks.
 

webizen

Well-Known Member
#2
that's the way already is. iow, lsws first check whether the resource is allowed to access and gives 403 if not, then check whether the resource exists and gives 404 if not.
 
#3
Hello,

That is not what is happening... if I block my own IP via .htaccess I ONLY receive a 403 error if I request an existing file. If I request a file that does not exist I receive a 404 error.
 
Top