]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/pingback_support.mdwn
update diff (one redundant hunk removed)
[ikiwiki.git] / doc / todo / pingback_support.mdwn
1 A "pingback" is a system whereby URLs you might reference in a blog post are
2 contacted by the blog publishing software at publishing time (i.e., once) so
3 that they might update a list of "pingbacks" to the URL. The originating
4 URL's blog software might then display a list of pingbacks, or an excerpt of
5 the text from your blog, perhaps interleaved with comments, etc.
6
7 At a technical level, external URLs are extracted from your blog post by the
8 blogging software, fetched, inspected for information to determine whether the
9 remote server is configured to support pingbacks (look for link tags, or HTTP
10 headers) and the relevant pingback URL sent an XML-RPC packet.
11
12 There are other technologies to achieve the same thing: trackbacks predate
13 pingbacks but are more vulnerable to spam due to design problems.
14
15 The spec for pingbacks is at <http://www.hixie.ch/specs/pingback/pingback>.
16
17 I would like to somehow use pingbacks in conjunction with ikiwiki. I suppose
18 this could be achieved using a commit hook and some external software in which
19 case I will consider this done with an entry in [[tips]]; otherwise a
20 [[plugins|plugin]] to implement pingbacks would be great.
21
22 -- [[Jon]] (Wed Jan 14 13:48:47 GMT 2009)
23
24 > I think it's now possible to implement trackback and pingback receiving
25 > support in ikiwiki. One easy way to do it would be to hook it into the
26 > existing [[plugins/comments]] plugin -- each pingback/trackback that
27 > ikiwiki recieves would result in the creation if a new comment, which
28 > would be subject to the usual comment filtering (ie, blogspam) and
29 > moderation and would then show up amoung the other, regular comments on
30 > the page.
31 >
32 > (One wrinkle: would need to guard against duplicate pings. Maybe by
33 > checking existing comments for any that have the same url?)
34
35 > As for sending trackbacks and pingbacks, this could fairly easily be
36 > implemented using a `editcontent` hook. Since this hook is called
37 > whenever a page is posted or edited, and gets the changed content, it can
38 > simply scan it for urls (may have to htmlize first?), and send pings to
39 > all urls found. --[[Joey]]