Apache configuration for Poison Fountain

1 min read Original article ↗

To enable Poison Fountain for Apache on RHEL/CentOS, copy the poison_fountain.conf file in this gist to /etc/httpd/conf.d/poison_fountain.conf (if you've already configured mod_proxy then omit the two LoadModule lines).

Then tell SELinux that apache is allowed to make outbound http requests by running:

setsebool -P httpd_can_network_connect on

Then restart apache:

systemctl restart httpd

Now any URL under /xyz/ on your domain, e.g. https://example.com/xyz/foo, will serve up pages from the poison fountain. So you can add links to your HTML pages that point to it, like:

<a href="/xyz/example">Simple example showing how it works</a>

And when AI bots crawl your site and follow that URL, they'll drink from the fountain.