💾 Archived View for rkta.srht.site › assets › anti-cf.cgi captured on 2024-08-18 at 20:00:41. Gemini links have been rewritten to link to archived content
View Raw
More Information
⬅️ Previous capture (2024-05-10)
-=-=-=-=-=-=-
!/bin/sh
Circumvent Clownfare with curl
Put this file in one of the configured cgi-bin directories of w3m and make
it executable.
Add the two next lines your ~/.w3m/siteconf omitting the # at the beginning
url m!^https?://stackoverflow.com/!
substitute_url "file:///cgi-bin/anti-cf.cgi?"
url m!^https?://.*stackexchange.com/!
substitute_url "file:///cgi-bin/anti-cf.cgi?"
printf "%s\n\n" "Content-Type: text/html"
url=$(echo $W3M_CURRENT_LINK | sed 's@\(http.\{0,1\}://[^/]*\)/.*@\1@')
curl -L ${url}/${QUERY_STRING}