News for hackers. Stuff that matters.
Re:Amazon Web Services: Clouded by Duplicate Content by jauer on Sunday June 27, 2010 @06:31PM (#1466397)
Wouldn't it be simpler to use VirtualHost so you only respond with content to requests for your domain?

Then set it up so requests without the domain name get a 301 redirect to the canonical URL.

Re:Amazon Web Services: Clouded by Duplicate Content by blantonl on Sunday June 27, 2010 @07:03PM (#1466471)
on Apache, SSL and VirtualHost don't play together.
Re:Amazon Web Services: Clouded by Duplicate Content by dhess on Monday June 28, 2010 @02:16AM (#1467249)
They do with Apache 2.2.12 or later and any recent browser:

http://wiki.apache.org/httpd/NameBasedSSLVHostsWithSNI

http://en.wikipedia.org/wiki/Server_Name_Indication

I'm using SNI on all of my domains, and it works great.

Re:Amazon Web Services: Clouded by Duplicate Content by akirk on Sunday June 27, 2010 @07:11PM (#1466484)
I don't quite understand why this article doesn't recommend using <link rel="canonical" href="..."> as described at http://googlewebmastercentral.blogspot.com/2009/02/specify-y... (resp. http://googlewebmastercentral.blogspot.com/2009/12/handling-...)

Such an easy solution to this problem.

Re:Amazon Web Services: Clouded by Duplicate Content by wmf on Sunday June 27, 2010 @07:29PM (#1466513)
The suggested rewrite rule is even simpler than putting a <link> tag in every page.
Re:Amazon Web Services: Clouded by Duplicate Content by bdb on Sunday June 27, 2010 @05:30PM (#1466273)
Sorry, but the author is disqualified by this sentence:

"Now there were no external links to these AWS subdomains but, being a domain registrar, Google was notified of the new DNS entries and went ahead and indexed loads of pages."

Re:Amazon Web Services: Clouded by Duplicate Content by gxti on Sunday June 27, 2010 @06:45PM (#1466430)
To clarify:

* Google isn't a domain registrar. If they were then one would hope that google.com would be registered under them, not markmonitor.com (a popular corporate registrar)

* The server hostname is a subdomain of amazonaws.com and doesn't require registration.

* In fact, the entire name is autogenerated from the IP address using a simple substitution rule.

* I'm not sure how Google finds these, because their own "what links here" doesn't turn anything up.

* Side note: while searching for backlinks in Google, I noticed that this article seems to have been copypasta'd to a dozen other blogs. That's SEO, baby!

EDIT: Damnit HN, you look like reddit, why can't you use a sane text preprocessor like reddit?

Re:Amazon Web Services: Clouded by Duplicate Content by jonknee on Sunday June 27, 2010 @06:51PM (#1466446)
Re:Amazon Web Services: Clouded by Duplicate Content by gxti on Monday June 28, 2010 @09:02AM (#1467777)
Thanks for correcting me, I've never used google apps so I'd never noticed you could register domains there. Personally I'd still register my own domains elsewhere as I've had bad experiences with combined registration and hosting, and even the almighty Google has been known to partake in shenanigans.

In any case I'm pretty sure you don't even have to be a registrar to get lists of newly registered domains, not that it matters because the rest of my post addresses why registration has nothing to do with this.

Re:Amazon Web Services: Clouded by Duplicate Content by thehodge on Sunday June 27, 2010 @08:03PM (#1466567)
* Google isn't a domain registrar. If they were then one would hope that google.com would be registered under them, not markmonitor.com (a popular corporate registrar) As pointed out, Google is a domain registrar - http://www.theregister.co.uk/2005/02/01/google_domain_seller...

The server hostname is a subdomain of amazonaws.com and doesn't require registration. * In fact, the entire name is autogenerated from the IP address using a simple substitution rule.

I don't have technical answers to these

* I'm not sure how Google finds these, because their own "what links here" doesn't turn anything up. Google has a tonne of ways we don't know about for finding domains, there is at least one case I've seen where a deep URL has been indexed after only a mention in gmail

* Side note: while searching for backlinks in Google, I noticed that this article seems to have been copypasta'd to a dozen other blogs. That's SEO, baby!

Thats actually content scraping and aggregation, SEOMoz has a tendancy to get there articles ripped off with much haste and from 150+ blogs (I have been mentioned in them a few times and they always set my Google Alerts wacky)

Re:Amazon Web Services: Clouded by Duplicate Content by jluxenberg on Sunday June 27, 2010 @06:33PM (#1466401)
Which brings up a good point: how _does_ google find these domains? Are they just blindly scanning the entire IP block?
Re:Amazon Web Services: Clouded by Duplicate Content by bkrausz on Sunday June 27, 2010 @06:48PM (#1466438)
It's possible another user of that DNS name (they do get reused) linked to it at some point and Google picked it up.
Re:Amazon Web Services: Clouded by Duplicate Content by dedward on Sunday June 27, 2010 @07:58PM (#1466557)
"Now there were no external links to these AWS subdomains but, being a domain registrar, Google was notified of the new DNS entries and went ahead and indexed loads of pages"

Domain registrars wouldn't be notified of new RR's inside a second-level domain - that would be pointless.

I can't see any way they would ever index a URL that used a dns RR that was brand new - I'd hazard a guess that either the URL was used previously within the cloud and published somewhere, or it was set up as a CNAME in your own DNS, or your main webserver returned it as a response to a googlebot in some fashion at some point.

Re:Amazon Web Services: Clouded by Duplicate Content by madssj on Monday June 28, 2010 @11:03AM (#1468131)
I think we would all be better off just using an elastic ip address, and not using the dynamic address for public websites.

Also, the same problem applies to normal servers where the webserver is configured to show the website for the ip address, kind of like:

http://174.132.225.106/

which google also has picked up:

http://www.google.dk/search?q=site:174.132.225.106

Re:Amazon Web Services: Clouded by Duplicate Content by bkrausz on Sunday June 27, 2010 @06:41PM (#1466420)
Every website should have a similar redirect rule in there somewhere (I implement it in PHP). If someone hits yoursite.com, you probably want to redirect them to www.yoursite.com. I whitelist my domains such that if someone goes goes to anything that points to my server and isn't a valid subdomain, they get redirected to www.
Re:Amazon Web Services: Clouded by Duplicate Content by joshu on Sunday June 27, 2010 @10:50PM (#1466891)
Horseshit. Learn to configure your webserver.
Re:Amazon Web Services: Clouded by Duplicate Content by rlpb on Monday June 28, 2010 @11:13AM (#1468171)
If accessing your web server via .amazonaws.com does not make sense for you, why not just block (whether 403 or 404) all HTTP requests with a Host: *.amazonaws.com header, rather than messing around with rewrites and robots.txt?
Re:Amazon Web Services: Clouded by Duplicate Content by ddemchuk on Monday June 28, 2010 @11:15AM (#1468180)
Because once that content is indexed, you can receive a negative effect from Google by mass 403-ing a huge amount of content
Re:Amazon Web Services: Clouded by Duplicate Content by rlpb on Monday June 28, 2010 @11:51AM (#1468314)
301 then it if this applies to you. It's still the same solution.
Re:Amazon Web Services: Clouded by Duplicate Content by ddemchuk on Monday June 28, 2010 @06:59PM (#1469740)
No its not. Google has said that in situations like this, use a 301 redirect to properly tell them where the actual content is located. Using a 403 is an error page that will tell the spiders that that page doesn't exist anymore, and that can have a negative impact on your rankings