Skip to content

Instantly share code, notes, and snippets.

@jwakely
Created February 7, 2026 18:10
Show Gist options
  • Select an option

  • Save jwakely/a511a5cab5eb36d088ecd1659fcee1d5 to your computer and use it in GitHub Desktop.

Select an option

Save jwakely/a511a5cab5eb36d088ecd1659fcee1d5 to your computer and use it in GitHub Desktop.
Apache configuration for Poison Fountain

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.

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
SSLProxyEngine On
# Enable proxy for Poison Fountain
ProxyPass "/xyz/" "https://RNSAFFN.com/poison2/"
ProxyPassReverse "/xyz/" "https://RNSAFFN.com/poison2/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment