90 points · by spike021 · 2y ago · 71 comments
What we've run into:
1. Admin/owner is nearly / absolutely unreachable, which causes a variety of issues. Mainly we cannot even request a traditional backup of the database underneath the forum software.
2. As with anything, the forums don't get much active engagement other than older forum regulars. However, Google searches easily find useful posts for things like DIY maintenance, modification installs, test data from driving with ECU tunes, track day experiences, etc.
3. It's easy to point people on other social networks at posts by their URL, but due to neglect the website constantly has problems making access increasingly complicated and inconsistent.
Ideally, it'd be nice to find a way to scrape everything as closely as possible into a manageable database.
Even more ideally, if we could convert said scraped data into a format that is easily publishable to a new platform, that would be handy. Even if the new platform is static and simply renders the old threads.
I can't imagine we are the only forum that is experiencing problems like this with most forums probably dying in the last decade.
Has anyone gone through this kind of archival process with vBulletin before?
Thanks.
Assuming you're a member of the organization and therefore licensed to use the content (but merely unable to access it): Purely hypothetically speaking, if an admin is this mia and obviously not on top of the job, the odds are probably high that they've neglected maintenance. Old PHP server running out-of-date PHP applications... not the most secure combo in the world. I wouldn't be surprised if there were some magic strings you could send to the server to get it to regurgitate the contents of the database in a more developer-friendly, strongly-typed fashion which you could import to myBB or XenForo and continue chugging along..
Hypthetically, I found a remote code execution vulnerability in that version of phpBB, read the configuration file to get the MySQL details, and then used mysqldump to download the database.
You can find exploits by just Googling or looking in Metasploit. They’re usually pretty simple query string things.
We set up a clone of the forum with a similar name just in time, then emailed the user database to tell them about the new site when the old one disappeared.
Sadly this caught the previous owner’s attention and he sent a cease and desist, despite his version of the site not existing any longer. So, we wiped the database, and then all the users just signed up again. It still lives on as https://www.basschat.co.uk/
Hypothetically.
>Sadly this caught the previous owner’s attention and he sent a cease and desist, despite his version of the site not existing any longer.
Wow, what an ass. I just can't understand the thought process of some people.
I would just scrape the site. I would even consider anonymizing names, as everyone should have the right to delete old content IMO.
After scraping, I would then watch the analytics. Anything which seems popular could then be given more attention. For example, I would probably create a design for the site itself, then create dedicated pages for anything popular. The pages could be curated "this is what you came for" and a link to the original pages.
Forums probably don't come back. You could start out with some minimal community features such as comments to see if anyone is willing to bite. A Discord server or similar could be another option. Kind of depends on the demographic I guess. Old people like forums. ;)
Thanks again.
Once you have an archive, you can convert that unstructured data to structured data. For example, if I look at https://www.vbulletin.org/forum/showthread.php?t=326241, the thread title and hierarchy is in <table class="navheader">, posts are in <div id="posts">, etc. I see an old project (https://github.com/IanLondon/detectorist-scraper) that may be a useful place to start, and I imagine there have been other similar efforts.
Once you have a structured representation (in a database, in JSON/XML files, etc.), you can decide whether to use it to build a static site, to import it into other forum software, etc.
One potential option but definitely a bit more work would be, once you have all the warc files downloaded, you can open them all in python using the warctools module and maybe beautifulsoup and potentially parse/extract all of the data embedded in the WARC archives into your own "fresh" HTML webserver.
An Introduction to the WARC File
wget --mirror --convert-links --adjust-extension --page-requisites --no-parent --execute robots=off --wait=0.2 --domains example.com https://example.com
1. Scrape it with wget or httrack or similar tool.
2. If the owners not really around it’s probably behind on its security patches, and there’s some relatively recent-ish vB exploits that would let you gain code execution and take a backup the “extremely illegal way” of the entire database, site, etc.
I recommend 1, but 2 is amusing to ponder briefly over a coffee ;)
Someone in a situation like this would be well-advised to instead direct creative energy at making option #1 work for you.
(Example: Some kind of crawling/archiving, to capture a copy while you can, and then you can develop good scraping of the data out of your copy at your leisure, whether it ends up being scraped from archived HTML, JSON, XML, or whatever. There's a chance you need a bespoke/tweaked crawler, to avoid missing data, such as posts that are for some reason reachable by human in a Web browser, but not by a particular crawler, and then the consideration to keep in mind is to try to avoid doing something that might look like the bad kind of "hacking" to a non-technical person, even though you aren't bypassing authentication&authorization nor exploiting any vulnerabilities.)
> Just to be perfectly clear to anyone who doesn't yet know, in the US, option #2 potentially involves federal prison, for real.
HN has a worldwide reader base. In what countries would this not be illegal?They even went a step further, deleted all the old posts out of the database and setup a redirect to the new forum hosting.
Very illegal, but very effective at solving the problem.
This will fix relative paths, download assets, etc and can be published as-is on a new site. I'm ignoring copyright questions in the interest of archiving fragile data.
Then I'd use an HTML parser against the local archive to extract the individual posts, if the additional work was justified.
I used to use this to mirror Slashdot when I was travelling for work and had limited/no internet:
```
wget --ignore-length --no-remove-listing --no-check-certificate --recursive --page-requisites --span-hosts --convert-links --no-verbose --tries=3 --timeout=60 --level=1 --user-agent="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0" --html-extension --exclude-directories=my --directory-prefix="./slashdot/" -e robots=off --cookies --load-cookies slashdot-cookies.txt --keep-session-cookies http://slashdot.org/
```I suspect that still works, just needs the user-agent updated.
My memory says there was a project to be a vB->Discourse converter that didn't rely on DB access, but I can't immediately find it.
God, why? I can't be the only person to find Discourse inferior to vBulletin.
While I'd agree that Discourse isn't ideal, it's one of the better options available in the open source world.
It's single-threaded, alpha-quality software, and still isn't compatible with many forums and themes. But it can export WARCs and may just happen to work for you.
https://github.com/lloydpick/vbulletin
This is a very old tool, it’s hard to say if it will work; then again, seems very relevant too so worst case it could provide an inspiration.
I ran a car forum (sold to VerticalScope 15+ years ago) and it's still chugging along on the same version of PunBB that I had it on when I left, so it seems that even the "experts" haven't found a simple way to migrate between forum softwares
The process is in principle not difficult: scrape the site (I recommend a dedicated scraper for that), then go through and extract everything relevant into a SQL database formatted the way your target forum software expects. The hardest part was recovering BBCode formatting in a usable fashion. Unfortunately my converters were written back when I didn't understand HTML parsing terribly well, so they're a hodgepodge of ugly regexes and handrolled string parsing.
I hosted it again by writing a python script[2] to serve responses from that WARC file again and put it behind nginx with caching enabled.
[1] https://forums.empiresmod.com/index.php
[2] https://gitlab.com/thexa4/warc-server
[2, deb package] https://gitlab.com/thexa4/warc-server/-/jobs/5213679726/arti...
Though this suggestion might not be acceptable in the eyes of many.
If the hosting company is paid they will make and keep a backup for you but under the permissions/access of the original owner.
If the hosting company gets permission to add you as admin to the site from the site owner, who may not be in touch with you, but may respond to the hosting company, then, (since you are paying the hosting company they will be happy to keep you around) you are home free.
1. Scrape it. Plenty of options here.
2. set up a new forum.
I think the current state of the art is Discourse but I could be wrong.
3. automate the recreation of posts and threads with some backend script
(will depend on which sw you picked).
On each post, add a link to the original.
4. Tell everyone about your superduper clone, move the old-timers over.
5. ...
6. Profit.It sounds like you have some options here. Best of luck.
wget --mirrorAs far as who owns the data, everything mentioned above is community-owned at least. So if anything it'd be up to individual community members, I'd think, to be OK with it. Since the forum is fairly dead, many of those original members aren't even active either.
EDIT: so of course you should dump the data, wget -r and dump it.
My best guess is that the model of car is "older" now, and they've subsequently moved onto other interests, including possibly the newer model, which I heard (but can't confirm) this person built a similar site for.
The only real changes to the forum in the past 3-4 years are more ads and many more performance/reliability problems, plus bots.
I moved on, please don’t bother me about it and let the website live or die.
That’s about the answer I got the last time one of my favorite websites was due to be deleted.