{"id":721,"date":"2015-12-29T08:00:37","date_gmt":"2015-12-29T12:00:37","guid":{"rendered":"http:\/\/shadow.sombragris.org\/?p=721"},"modified":"2015-12-28T20:41:18","modified_gmt":"2015-12-29T00:41:18","slug":"on-treacherous-code","status":"publish","type":"post","link":"https:\/\/shadow.sombragris.org\/?p=721","title":{"rendered":"Treacherous SiteMeter"},"content":{"rendered":"<p>Yesterday, while I was adding the previous update, I noticed something funny. Like many other Web surfers, I have an ad blocker installed. Well, while updating the blog I saw a tiny number on the ad blocker&#8217;s toolbar button.<\/p>\n<p>That was weird. I never had any advertising code inserted on the blog, so I was dumbfounded and completely amiss as of how this could have happened. Worse, there is no feature to see which elements are blocked on Google Chrome, so I couldn&#8217;t even see which the offending elements were.<\/p>\n<p>However, I opened Firefox; its ad blocker, thankfully, was quick to supply a list of offending elements. Some of them I was able to track to a plugin and is part of its code (albeit a doubtful one). But other elements came directly from the main site. But, how?? Again, I never inserted any advertising code.<\/p>\n<p>I googled a little bit. It turned out that the culprit was an old link I had to SiteMeter. As you can see in the snippet below, the hat tip goes off to Lindsay. I removed the SiteMeter references, and the two rogue elements were gone.<\/p>\n<blockquote data-secret=\"czbL5Iq2hp\" class=\"wp-embedded-content\"><p><a href=\"http:\/\/lindsayloves.com\/2015\/03\/27\/the-end-of-the-sitemeter-era\/\">The End of the SiteMeter Era<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"display:none;\" src=\"http:\/\/lindsayloves.com\/2015\/03\/27\/the-end-of-the-sitemeter-era\/embed\/#?secret=czbL5Iq2hp\" data-secret=\"czbL5Iq2hp\" width=\"600\" height=\"338\" title=\"Embedded WordPress Post\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>In sum, SiteMeter was quietly doing some dubious stuff behind my back. If, as a consequence of visiting this site you experienced some random ads or any other suspicious behavior, I am sincerely sorry.<\/p>\n<p>I&#8217;m sad for SiteMeter, and the moral is: We have to stay vigilant.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yesterday, while I was adding the previous update, I noticed something funny. Like many other Web surfers, I have an ad blocker installed. Well, while updating the blog I saw a tiny number on the ad blocker&#8217;s toolbar button. That was weird. I never had any advertising code inserted on the blog, so I was&#8230;<\/p>\n","protected":false},"author":159,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,1],"tags":[223,226,225,224],"class_list":["post-721","post","type-post","status-publish","format-standard","hentry","category-blogs","category-general","tag-blogs","tag-hijacking","tag-lameness","tag-sitemeter"],"_links":{"self":[{"href":"https:\/\/shadow.sombragris.org\/index.php?rest_route=\/wp\/v2\/posts\/721","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shadow.sombragris.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shadow.sombragris.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shadow.sombragris.org\/index.php?rest_route=\/wp\/v2\/users\/159"}],"replies":[{"embeddable":true,"href":"https:\/\/shadow.sombragris.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=721"}],"version-history":[{"count":6,"href":"https:\/\/shadow.sombragris.org\/index.php?rest_route=\/wp\/v2\/posts\/721\/revisions"}],"predecessor-version":[{"id":727,"href":"https:\/\/shadow.sombragris.org\/index.php?rest_route=\/wp\/v2\/posts\/721\/revisions\/727"}],"wp:attachment":[{"href":"https:\/\/shadow.sombragris.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=721"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shadow.sombragris.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=721"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shadow.sombragris.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=721"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}