YOURLS plugin to eliminate broken (404) links from the database.
This plugin requires YOURLS 1.7+
Be aware, there's no sanitization going on here. Obviously, the code shouldn't run unless the API key is correct though.
This plugin helps you audit your links and banish broken ones from the database.
- Backup your database! Only you are responsible for what happens when using this plugin.
- In
/user/plugins
, create a new folder namedhp-broken-banisher
. - Drop these files in that directory.
- Go to the Plugins administration page, and activate the plugin .
- In your browser, enter something like:
https://sho.rt/yourls-api.php?action=check_broken_links&signature=YOUR_API_KEY&perpage=50&autoredirect=1
. Hit Enter and wait.
- "I have a question."
- Please, ask it in the Discussion area.
- "I found a problem."
- Cool. Please start an Issue or submit a Pull Request.