Actually for the longest time, I had in my .wgetrc, user_agent=&quot;Mozilla&#x2F;5.0 (etc etc etc)&quot;. It was a valid user agent. And Cloudflare was blocking that. Turns out if you wrap the actual user agent in quotes in your .wgetrc, wget doesn&#x27;t strip them off, so cloudflare was seeing User-Agent: &quot;Mozilla&#x2F;5.0 (etc etc etc)&quot;, ie. with the quotes. And it was rejecting that.