Live data from Hacker News

Ask HN: Why buy domains and 301 redirect them to me?

news.ycombinator.com

121–130 of 135 posts

Re: Ask HN: Why buy domains and 301 redirect them to me?

#121
I don't have the slightest clue about your case, a business,

I have done this once in the past, for a sort of community project. the project was at example.org and I had a VPS with a free domain I didn't use, so I had the example.[something] pointed there for a couple years. Basically just white-hat domain squatting it so no one else snags it up.

Re: Ask HN: Why buy domains and 301 redirect them to me?

#122
In a higher chance, they want to nuke your website, because too many 301 can be harmful to SEO in some rare cases.

If they want to sell you sth, or scam, they won't do 301, because after 301 the juice power will gradually move to your domain, and its pointless to do this before any scams and sales.

Re: Ask HN: Why buy domains and 301 redirect them to me?

#123
post #92

Earlier quoted context omitted.

> I still never use 301s for that reason. Things may have changed, but I dare not try! I use 301 for http:->https: redirects because (a) I doubt we're going back, (b) it prevents some cleartext leaks (like the Host header), and (c) it is slightly cheaper. > we never figured out how to get the browser to re-learn the responses for those pages without drastic measures. If you control the target URL it is easy, just red…

> If you control the target URL it is easy, just redirect back. Seriously: The browser won't loop Just uh... don't do this if you have a CDN infront of your site. We had an incident where Cloudfront cached the 301's in both directions

Yeah that's a good point, but one way to think about a CDN is like a web browser that you control, so I say do it even with a CDN and remember you can always just flush the "browser" cache! (or in cloudfront's case: create an invalidation and wait a few seconds)

Re: Ask HN: Why buy domains and 301 redirect them to me?

#124
post #92

Earlier quoted context omitted.

> I still never use 301s for that reason. Things may have changed, but I dare not try! I use 301 for http:->https: redirects because (a) I doubt we're going back, (b) it prevents some cleartext leaks (like the Host header), and (c) it is slightly cheaper. > we never figured out how to get the browser to re-learn the responses for those pages without drastic measures. If you control the target URL it is easy, just red…

Isn't there a https upgrade header specifically for this kind of thing?

Not to my knowledge. How exactly do you think it works?

Re: Ask HN: Why buy domains and 301 redirect them to me?

#125
post #97

Earlier quoted context omitted.

Sounds like a security flaw that browsers honor this.

Referer is not a security mechanism.

I didn't say it was. Browsers display an alert when full-screen mode is activated. Full-screen mode isn't a security feature, but the browser does something the website developer can't control so that users can conclude that something fishy isn't going on. I think the ability for one website to hide that they've redirected to another is a vulnerability.

Re: Ask HN: Why buy domains and 301 redirect them to me?

#126

Earlier quoted context omitted.

Referer is not a security mechanism.

I didn't say it was. Browsers display an alert when full-screen mode is activated. Full-screen mode isn't a security feature, but the browser does something the website developer can't control so that users can conclude that something fishy isn't going on. I think the ability for one website to hide that they've redirected to another is a vulnerability.

I'm inclined to agree that websites should know when they're the target of a redirect but that has nothing to do with Referer! That header does not work the way so many seem to think it does. As I've laid out elsewhere in this thread, HTTP redirects do not show up in Referer under any circumstances. Right now, one site doesn't have to do anything to "hide" that it's part of a redirect chain, since there's no tracking of that chain to begin with.

Re: Ask HN: Why buy domains and 301 redirect them to me?

#128
post #91

Earlier quoted context omitted.

Just a note 301s are super sticky and browsers cache them even across incognito modes. Your best bet is to use a new browser after reconnecting to avoid false results.

On Chromium-based browsers, if you open the Developer Tools (F12 or Inspect in right click) and you go to the Network tab, you can click 'Disable Cache'. In my experience, this solves the sticky 301 issue and you should have no issues with cached 301s anymore. Works perfect for these kind of investigations or if you made a mistake during site development.

Of course, there are ways to clear it but that’s never something you could expect a non-technical user to do.

Re: Ask HN: Why buy domains and 301 redirect them to me?

#129
post #59

Phishing. Regular visits to these domains will 301 redirect them to you, but there's at least one URL that will instead be handled by the scammers themselves. They'll then send out an email campaign with a From: address in the counterfeit domain (which will have valid SPF/DKIM/whatever), a subject like "Example.com: You've been invited to join a project!", quickly-come-see-this-secret-stuff body copy, and a call-to-a…

You cannot detect the redirect, so you cannot display any such warning.

Can't you check the Referer?
Post reply on HN