Re: efficient abuse page

Rainer Canavan <[email protected]>
Newsgroups gmane.comp.apache.user
Message-ID <CAMZuV15UjFTiYedj=Y+OzXQXV9LVUuFWE5MJMZTUghWdQmpOPw@mail.gmail.com>
On Thu, Jan 16, 2025 at 11:28 AM Marc <[email protected]> wrote:
>
> I have currently some abuse page that notifies the ip is blocked. I am generating this page with php because I want to display the ip adres on this page. Is there a more efficient way to generate a page with one line of text and the blocked ip address?
> Maybe directly in apache without using php-fpm?

Check the documentation of mod_filter, mod_substitute and mod_sed. I
would assume that it should be possible to replace a placeholder in
your ErrorDocument as needed, but I haven't tried that myself.

Rainer

-- 
This email is confidential. If you are not the intended recipient, please 
delete it and notify us immediately by telephoning or e-mailing the sender. 
You should not copy it or use it for any purpose nor disclose its contents 
to any other person.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.