Post about FAC

This commit is contained in:
~lucidiot 2022-09-04 19:21:02 +02:00
parent 5d91e9d060
commit db230092e4
1 changed files with 23 additions and 0 deletions

View File

@ -907,5 +907,28 @@
<p>I have quite the backlog of feeds to share on here. Feel free to harass me if I don't post one each week, because I have no excuse.</p>
]]></description>
</item>
<item>
<title>Hide your feed from search engines with Feed Access Control</title>
<pubDate>Sun, 04 Sep 2022 19:18:30 +0200</pubDate>
<guid isPermaLink="false">fac-1.0</guid>
<category domain="https://envs.net/~lucidiot/rsrsss/">Tip</category>
<link>https://web.archive.org/web/20080101062756/http://www.bloglines.com/about/specs/fac-1.0</link>
<description><![CDATA[
<p><a href="https://web.archive.org/web/20080101062756/http://www.bloglines.com/about/specs/fac-1.0" target="_blank">Feed Access Control 1.0</a> was an extension to both RSS and Atom feeds proposed by <a href="https://en.wikipedia.org/wiki/Bloglines" target="_blank">Bloglines</a>, a now defunct feed aggregator. FAC proposed a single boolean option to allow or deny news aggregators from republishing the feed, including it in search engines, etc.; an equivalent to a <code>robots.txt</code> file.</p>
<p>To use it within RSS and Atom feeds, you will need to add the namespace to the root tag as usual: <code>xmlns:access="http://www.bloglines.com/about/specs/fac-1.0"</code>. You can then add the <code>access:restriction</code> element as a child of the root element, with the <code>relationship</code> attribute set to <code>allow</code> or <code>deny</code>. When the element is not set, <code>allow</code> will be assumed. If the feed had previously set <code>deny</code>, removing the element will still cause aggregators to keep assuming a denial; <code>allow</code> must be explicitly set to restore indexability.</p>
<pre>&lt;rss version="2.0" xmlns:access="http://www.bloglines.com/about/specs/fac-1.0"&gt;
&lt;access:restriction relationship="deny" /&gt;
&lt;channel&gt;
&lt;!-- ... --&gt;
&lt;/channel&gt;
&lt;/rss&gt;</pre>
<pre>&lt;feed xmlns="http://www.w3.org/2005/Atom" xmlns:access="http://www.bloglines.com/about/specs/fac-1.0"&gt;
&lt;access:restriction relationship="deny" /&gt;
&lt;!-- ... --&gt;
&lt;/rss&gt;</pre>
<p>Note that this is the only case I know of where an RSS extension adds a tag outside of both <code>&lt;channel&gt;</code> and <code>&lt;item&gt;</code>.</p>
]]></description>
</item>
</channel>
</rss>