Auto-removal of invalid trackbacks (from own blog)?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
DrNI
Regular
Posts: 13
Joined: Thu Apr 23, 2009 1:16 pm

Auto-removal of invalid trackbacks (from own blog)?

Post by DrNI »

Hi s9y-folks!

some last time long ago I bothered you with questions about mass-removal of old posts. Well, this one is solved and I keep deleting my personal past. ;) Now I got quite some trackbacks from my own blog or even the old address of my own blog. But more and more of these articles have gone away now, so I got trackbacks guiding people into the void. Is there a way to find and delete those automatically?

Since S9Y doesn't make a difference between trackbacks from "home" and from the outside, this would probably need some more voodoo. Is there a general trackback checker based on a crawler?

Any input on this is welcome. Thanks for your time.

DrNI
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Auto-removal of invalid trackbacks (from own blog)?

Post by garvinhicking »

Hi!

currenlty not. But since the trackbacks are saved in the database in a very easy format, one could write a simple parser without any s9y dependencies, simply use an sql query to fetch trackbacks, iterate over them with a HTTP GET request and evaluate the response. Best would be to create your own temporary table to keep track of which trackbacks have been saved; because old hosts etc. will probably return timeouts and such, so the PHP script could easily timeout on your server.

Also, the script probably won't be able to see if a trackback is a valid page, or if there is new content (from another provider or software) on the page. This coulld only be done manually.

Thinking about it, an automatted crawler probably isn't worth much if the links are still valid but point to "bad" content, so checking them manually is probably the only real way to go.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply