otsukare Thoughts after a day of work

Adding Creative Commons License into HTTP Headers

Mark Nottingham has recently published a Web Linking specification (RFC 5988). It standardizes the Link: HTTP header. This is most commonly used for linking to CSS directly from HTTP headers. But it can be used also for giving link relationships in the context of an API (I might write more about that later).

Back to Creative Commons license. They are often given into the HTML markup of a document or at least in the meta name. This not that much an issue if you deal with a CMS. But in the case your content is in static files, you might benefit of giving a degree of freedom to your license by putting it in the HTTP headers. It becomes then a lot easier to deploy widely on a site and to evolve it if necessary. Let's say you would like to use a CC-BY 2.0 license on your content. You could then add the license in your HTTP headers with:

Link: <http://creativecommons.org/licenses/by/2.0/>; rel="license"; title="CC-BY 2.0"

In context that could be.

HTTP/1.1 200 OK
Date: Tue, 12 Jul 2011 23:43:18 GMT
Server: Apache
Last-Modified: Tue, 12 Jul 2011 02:13:27 GMT
Accept-Ranges: bytes
Content-Length: 19772
Expires: Tue, 19 Jul 2011 23:43:18 GMT
Vary: Accept-Encoding,User-Agent
Content-Type: application/xhtml+xml
Link: <http://creativecommons.org/licenses/by/2.0/>; rel="license"; title="CC-BY 2.0"

I have not yet deployed it on my Web site, but I was thinking about it, and was looking for opinions. For people who are more used to PHP for example, it would be entirely possible to do:

<?php
header('Link: <http://creativecommons.org/licenses/by/2.0/>; rel="license"; title="CC-BY 2.0"');
?>

Benefits

Drawbacks

I have discussed with Mike Linksvayer on Creative Commons Channel on IRC. And he made valid points about the drawbacks.

Thoughts are welcome.