Re: where to change this "internal server error message"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



See the ErrorDocument directive.

Now, why is that response not suitable? And why would you respond with a 200 for a blocked user agent?

On Fri, Sep 15, 2023 at 11:26 AM Marc <Marc@xxxxxxxxxxxxxxxxx> wrote:
Where/how can I change this message?

<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator at
 xxx to inform them of the time this error occurred,
 and the actions you performed just before this error.</p>
<p>More information about this error may be available
in the server error log.</p>
</body></html>

or as a work-a-round, how can refuse access with modsecurity and just generate a 200 blank page response.

SecRule REQUEST_HEADERS:User-Agent "blockthisua" "id:'13006',phase:2,log,deny,status:200"

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux