!/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}