Some websites use javascript to redirect any saved pages to the original site, thereby beaking archiving of pages on the site in question.
Ideally, the option to scan the javascript in each downloaded file to prevent setting window.location in any form.
Since JS can be obfuscated in all sorts of forms, perphaps an option to simply strip out javascript from downloaded files could also be useful slash more reasonable to implement.
Currently, the only real solution is to open up the offending HTML files myself and remove the javascript causing the redirects from the \
Yeah we're definitely adding this soon, it's a huge security issue currently to allow archived pages to run JS in a shared context, especially when opened via the filesystem.
I've officially made this a blocker to v0.4 due to the urgency: https://github.com/pirate/ArchiveBox/pull/207#issuecomment-494107553 but I cant promise I'll get around to it soon. In the meantime I'm adding notices to the README and wikis telling people not to use it for private content and to beware of potential JS execution reading from the filesystem / XSS-ing the archive.