title: Wget, preventing session log out
body: <p>I'm trying to crawl a website which needs to be logged in with wget but it stops everytime it finds a logout url (<a href="https://example.com/logout/" rel="nofollow noreferrer">https://example.com/logout/</a>).
  I've tried excluding the directories but without success.
  This is my command:</p>
  
  <p><code>wget --content-disposition --header "Cookie: session_cookies" -k -m -r -E -p --level=inf --retry-connrefused -D site.com -X */logout/*,*/settings/* -o log.txt https://example.com/</code></p>
  
  <p>I've tried with -R option instead of -X but that didn't work.</p>