TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How to detect a page request from Safari 4's Top Sites feature

65 pointsby mattkingover 15 years ago

6 comments

patio11over 15 years ago
<i>More importantly, Google might consider this cloaking, and come round your house in the middle of the night with a baseball bat.</i><p>No, they won't. Google's definition of cloaking is serving different results to Googlebot versus end-users.<p>For one thing, neither nor GoogleBot nor the remote quality raters will be sending Safari-specific headers for discovery/evaluation tasks, so they won't see the preview at all. For another, this falls into the (sort of) nebulous category of "cloaking designed to enhance the user experience", which is almost always kosher.<p>Similar examples: you can auto-detect someone's region/language/browser/etc and customize the page to fit their needs, and Google is pretty much OK with that as long as you treat Googlebot the same way.
thwartedover 15 years ago
This vaguely reminds me of that (was it Internet Explorer?) plugin/extension that tried to detect phishing sites by prefetching all the links on a page. There was a big uproar with admins and there was an apache rewrite rule floating around to detect the user-agent and block these requests.<p>I can't remember the name of this, though, so I'm having trouble searching for it. Maybe 2006 or 2007 was the time?
评论 #1040849 未加载
Imprecateover 15 years ago
That's actually really useful info. If someone visits your site enough to be in their top sites, it's probably a sign that they like it a lot.
评论 #1040985 未加载
onewlandover 15 years ago
One useful way to take advantage of this might be to just serve your site at a lower resolution if the HTTP header is defined to reduce bandwidth use. If you're using 500px wide banner images on a 1000px grid, size that down for the Safari preview but scale everything so that it's still representative of your site.
评论 #1041130 未加载
jrockwayover 15 years ago
I can't wait until this becomes more popular. Then I can send this header and avoid tracking + ads without any additional software.
windsurferover 15 years ago
I think this is an awesome idea. It's like a bigger favicon that's actually useful.