<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Pdf on ads' corner</title><link>https://andreas.scherbaum.la/tags/pdf/</link><description>Recent content in Pdf on ads' corner</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Thu, 26 Dec 2024 00:00:00 +0100</lastBuildDate><atom:link href="https://andreas.scherbaum.la/tags/pdf/index.xml" rel="self" type="application/rss+xml"/><item><title>Add canonical headers for files in Apache2</title><link>https://andreas.scherbaum.la/post/2024-12-26_add-canonical-headers-for-files-in-apache2/</link><pubDate>Thu, 26 Dec 2024 00:00:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2024-12-26_add-canonical-headers-for-files-in-apache2/</guid><description>&lt;p&gt;Search engines will complain if websites and files do not have a &lt;a href="https://en.wikipedia.org/wiki/Canonical_link_element"&gt;canonical name&lt;/a&gt;, and appear under multiple different URLs with the same content. Especially for &lt;a href="https://en.wikipedia.org/wiki/Search_engine_optimization"&gt;search engine optimization&lt;/a&gt; this is a big no no.&lt;/p&gt;&#10;&lt;h2 id="how-does-that-happen"&gt;How does that happen&lt;/h2&gt;&#10;&lt;p&gt;Someone might link to your resource with a tracking link, as example this entry in the webserver log:&lt;/p&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;xyz.xyz.xyz.xyz - - [20/Dec/2024:01:04:57 +0100] &amp;#34;GET /writings/Add_Geocoordinates_to_your_addresses_in_PostgreSQL_-_Meetup_HH_April_2024.pdf?fbclid=&amp;lt;some random id&amp;gt; HTTP/1.1&amp;#34; 200 1032842 &amp;#34;-&amp;#34; &amp;#34;Mozilla/&amp;lt;some random browser&amp;gt;&amp;#34;&#10;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The attached &lt;code&gt;fbclid&lt;/code&gt; header makes it obvious that this PDF was posted on &lt;em&gt;Facebook&lt;/em&gt;, and then &lt;em&gt;Facebook&lt;/em&gt; attaches a semi-random string, it&amp;rsquo;s called the &lt;em&gt;Facebook Click Identifier&lt;/em&gt;. It is used to circumvent Ad-blockers and Third-Party-Cookie Protection and allows &lt;em&gt;Facebook&lt;/em&gt; to track the performance of the link.&lt;/p&gt;</description></item></channel></rss>