Order of errors

Discussion in 'General' started by Corey, Oct 21, 2011.

  1. Corey

    Corey Member


    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

  2. webizen

    webizen Well-Known Member

    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. Corey

    Corey Member


    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.
  4. webizen

    webizen Well-Known Member

    to help troubleshoot, provide your lsws version and platform info as well as .htaccess settings.

Share This Page