Update: I have a Product: linkcheck.py.
(Up to StackExchange to come up with the site-wide Policy and Process)
It works but how do we know what a bad domain is?
So rather than wait around, I saw an opportunity to write some code and took it. It downloads the blacklists that Smoke Detector uses on new posts and edits and applies them against our entire database. You'll need to download a data dump, and install pypy. All in the readme.
After some more tweaking, it handles ~13,000 posts per second on my moderately powerful desktop so can chunk out the entire site in ~45s. The following is the output (and the matched domain):
https://askubuntu.com/q/44668/ rhubcom.com
https://askubuntu.com/q/168301/ cadsoftusa.com
https://askubuntu.com/q/211202/ code-industry.net
https://askubuntu.com/q/223107/ code-industry.net
https://askubuntu.com/q/304193/ pornhub.com
https://askubuntu.com/q/369358/ downloadavideo.net
https://askubuntu.com/q/656940/ code-industry.net
How to reformat pdf (change page size) using Master PDF Editor or ___ code-industry.net
https://askubuntu.com/q/718011/ manualbirds.com
https://askubuntu.com/q/802974/ videograbber.net
https://askubuntu.com/q/813665/ videograbber.net
How to identify malicious .deb files / sources? code-industry.net
https://askubuntu.com/q/81099/ official-driver
https://askubuntu.com/q/435500/ cadsoftusa.com
https://askubuntu.com/q/563947/ yolasite.com
Master PDF Editor won't start after installation code-industry.net
converting images to pdf without quality loss issuu.com
How to import a pdf in libreoffice? under ubuntu, all pages are blank code-industry.net
https://askubuntu.com/q/525310/ official-driver
https://askubuntu.com/q/303874/ code-industry.net
https://askubuntu.com/q/402201/ official-driver
https://askubuntu.com/q/428857/ code-industry.net
https://askubuntu.com/q/563543/ official-driver
https://askubuntu.com/q/622636/ code-industry.net
https://askubuntu.com/q/666310/ code-industry.net
https://askubuntu.com/q/666816/ listoffreeware.com
https://askubuntu.com/q/709665/ code-industry.net
https://askubuntu.com/q/718360/ code-industry.net
https://askubuntu.com/q/756653/ code-industry.net
https://askubuntu.com/q/936828/ code-industry.net
https://askubuntu.com/q/969431/ keyboardtester.co
Problem installing Adobe Reader with wine code-industry.net
https://askubuntu.com/q/244253/ code-industry.net
Ubuntu and ASUS G750JM, GTX860M / Nvidia problems official-driver
phpmyadmin not found //adf.ly/
https://askubuntu.com/q/531620/ code-industry.net
https://askubuntu.com/q/542931/ code-industry.net
Installing Eagle on 14.04 x64 cadsoftusa.com
https://askubuntu.com/q/614626/ code-industry.net
https://askubuntu.com/q/888913/ code-industry.net
https://askubuntu.com/q/893022/ code-industry.net
Cannot update after install master-pdf-editor code-industry.net
Strange URLs showing up in SysLog file pornhub.com
https://askubuntu.com/q/942413/ code-industry.net
https://askubuntu.com/q/956221/ code-industry.net
https://askubuntu.com/q/1001745/ code-industry.net
https://askubuntu.com/q/435413/ cadsoftusa.com
https://askubuntu.com/q/824570/ backup-utility.com
Is it possible to open a pdf that requires Adobe Reader 8 without using acroread? code-industry.net
https://askubuntu.com/q/160613/ official-driver
https://askubuntu.com/q/256642/ official-driver
https://askubuntu.com/q/335185/ //adf.ly/
https://askubuntu.com/q/355390/ coolutils.com
https://askubuntu.com/q/560963/ code-industry.net
https://askubuntu.com/q/617605/ code-industry.net
Error running Master PDF Editor 4 - missing libQtSvg.so.4 code-industry.net
https://askubuntu.com/q/922158/ code-industry.net
https://askubuntu.com/q/424886/ code-industry.net
https://askubuntu.com/q/777592/ code-industry.net
https://askubuntu.com/q/303874/ code-industry.net
https://askubuntu.com/q/86682/ official-driver
https://askubuntu.com/q/87526/ official-driver
https://askubuntu.com/q/424021/ rhubcom.com
https://askubuntu.com/q/442080/ code-industry.net
https://askubuntu.com/q/523646/ code-industry.net
https://askubuntu.com/q/648024/ code-industry.net
https://askubuntu.com/q/675507/ code-industry.net
https://askubuntu.com/q/893641/ code-industry.net
https://askubuntu.com/q/907089/ code-industry.net
https://askubuntu.com/q/982165/ code-industry.net
https://askubuntu.com/q/110312/ official-driver
https://askubuntu.com/q/303874/ code-industry.net
https://askubuntu.com/q/695976/ code-industry.net
https://askubuntu.com/q/863429/ serverbasket.com
Do as you will.
Because now it depends solely on People!
It does, but before we get too puffed up, what's the history of links-going-evil like here? How much work is it actually to:
- Spot that the domain/URL is now bad
- Do a search for posts with that domain
- Flag/edit/etc
I also have to consider that step 1 of the above process might not be happening. How often do you spider the site checking for dodgy links?
My first thought is that Smoke Detector should be doing this. It already keeps track of bad domains/urls and their usage on new posts and new edits. As far as I know it doesn't retroactively search when a new "bad link" is added.
Maybe they could add this sort of feature. It's pretty hardcore though.
I just want to see what's involved with a DIY solution. I'm downloading the Ask Ubuntu data dump from March and I'll try to script something together to use Smoke Detector's bad-*.txt
regex files and scan every post on the site. Of course that's possible, but performance may be... Interesting.