I had a client once who had something similar, although unintentionally. She approached me because her website "kept getting hacked" and she didn't trust the original developers to solve the security problems... And rightly so!<p>There were two factors that, together, made this happen: first, the admin login form was implemented in JS, and if you went to log in with it with JS disabled, it wouldn't verify your credentials. And it submitted via a GET request. Second, once you were in the admin interface, you could delete content from the site by clicking on an X in the CMS. Which, as was the pattern, presented you with a JS alert() prompt before deleting the content... via a GET request.<p>Looking at the server logs around the time it got "hacked", you could see GoogleBot happily following all the delete links in the admin interface.
I'm surprised there are so many people on Hacker News asking "why?".<p>Hackers don't need a reason, other than it being clever, novel, fun, etc. But if you want a reason there are plenty:<p>* art: there are numerous interpretations of this<p>* fun: this is sort of the digital equivalent of a "useless box" <a href="http://www.thinkgeek.com/product/ef0b/" rel="nofollow">http://www.thinkgeek.com/product/ef0b/</a><p>* science: experiment to see how widespread a URL can be shared without Google becoming aware of it<p>* security: embed unique tokens in your content to detect if it has leaked to the public
An alternative would be to check for the browser <i>user agent</i> and delete the website right at that point and return a 404 page to the Google crawler bot. Then Google won't have a static copy of the website.
What about the opposite? A website that created when it is indexed? Start with nothing and content is added each time the site is visited by Googlebot, or shared on Facebook, tweeted, posted on Reddit, etc. The website exists only so that it can be shared, and the act of sharing it defines what the website is.
Thank you.<p><a href="http://i.imgur.com/cjDeLEb.png" rel="nofollow">http://i.imgur.com/cjDeLEb.png</a><p>EDIT: What's with the downvote hate? Somebody actually posted a valid key...
>Why would you do such a thing? My full explanation was in the content of the site. (edit: ...which is now gone)<p>So anyone really understood why he did this?
Not sure if I see this as "art" or something. I mean, <i>irrevocably deletes itself</i> could be attached to a thousand arbitrary things.<p>- deleted after 100 visitors<p>- deleted if visited with IE 6.0 for the first time<p>- deleted if referrer is Facebook<p>- ...
I see some potential use of this, for example as soon as Google crawlers reach the site I know that it is accessible from outside and I destroy the site.
I would be interested in similar experiments but with a couple of minor variations to see the effects of each:<p>1. Sending the NOINDEX meta tag<p>2. Combining meta tags<p>3. Monitoring for a referrer URL that matches a Google search page to catch the 1st non-sneaky user coming from the index.<p>4. Monitoring other search engines and their behaviors.
a) One can also use referer to check whether a visitor has come from Google to trigger the deletion (in addition to "seek itself in Google").<p>b) robots.txt shall get the same results, plus, no cached content at Google, unlike "deleting itself", which the cache content remains at Google.