Live data from Hacker News

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

news.ycombinator.com

51–60 of 135 posts

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

#51

As others have mentioned this is likely one of a couple of scenarios, roughly ordered by my guess on likelihood: - Attempting to use your legitimate content and services to improve the SEO rank of other domains (even unrelated ones). This can usually be checked by looking for a sitemap.xml, there will be pages not redirected to your site that contain pages of links. - Closely following the above, the pages may not be…

Regarding point two, OP should connect to a VPN in Japan or somewhere he very isn't, use incognito mode, and see if the same content is served. I've seen hacked sites that are set up to serve normal content to where the attacker thinks the owner of the site lives, but serve phishing content or malware or whatever to everywhere else. A 301 fits that bill because then the owners browser even when traveling will serve t…

Yeah this is a good call-out. If the site is being used for drive-by or targeted malware there are other checks that may be happening alongside the redirect such as user agent, country of origin (like you mentioned), plugins installed, OS, or even time of day.

If they detect something that matches what they want, they may throw some intermediate 301's to pages that attempt to infect the user with something still ultimately redirecting to the "normal" page.

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

#52

I haven't seen this before but back in the early 2010s I had some India-based group that iframed our SaaS website under a new domain. I caught it early and implemented this fix: https://stackoverflow.com/questions/2896623/how-to-prevent-m... I think this was a common attack vector around then, but is no longer common.

Stupid question:

Can you not detect and prevent this based on the HTTP referrer? Maybe reroute to goatse or something....

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

#53

As others have mentioned this is likely one of a couple of scenarios, roughly ordered by my guess on likelihood: - Attempting to use your legitimate content and services to improve the SEO rank of other domains (even unrelated ones). This can usually be checked by looking for a sitemap.xml, there will be pages not redirected to your site that contain pages of links. - Closely following the above, the pages may not be…

It could be a combo of 1 and 3: a competitor (or someone who thinks they might be in the future) ages those domains, then points it to their own product later.

This is another great call-out and semi-common. I can definitely get blinded by my security focus but shady business tactics drive a lot of these similar domain purchases for exactly the reason you described.

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

#54

Earlier quoted context omitted.

Regarding point two, OP should connect to a VPN in Japan or somewhere he very isn't, use incognito mode, and see if the same content is served. I've seen hacked sites that are set up to serve normal content to where the attacker thinks the owner of the site lives, but serve phishing content or malware or whatever to everywhere else. A 301 fits that bill because then the owners browser even when traveling will serve t…

Yeah this is a good call-out. If the site is being used for drive-by or targeted malware there are other checks that may be happening alongside the redirect such as user agent, country of origin (like you mentioned), plugins installed, OS, or even time of day. If they detect something that matches what they want, they may throw some intermediate 301's to pages that attempt to infect the user with something still ulti…

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.

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

#55
It’s likely an attempt to steal usernames and passwords for privilege escalation. I had a large corporate client who faced a very similar issue. In their case, the scammer not only registered similar domains but also created Google Ads campaigns targeting those domains. It’s worth investigating further and taking preventative measures to protect your brand and users.

Check this: https://github.com/kgretzky/evilginx2

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

#56
I created this summary for my own reference:

------ SEO Abuse:

Use your legitimate site to boost the SEO rank of unrelated domains. Create toxic backlinks that harm your domain’s SEO ranking if not properly disavowed.

----- Phishing Campaigns:

Send emails with their domains (e.g., fake password reset or invite emails) claiming to be you, redirecting users to phishing pages masquerading as your brand.

Serve phishing content to users based on conditions such as geography, user agent, or time of day.

----- Domain Aging:

"Age" their domain by associating it with your legitimate service to make it appear trustworthy for future malicious activities. Targeted Malware:

Use redirects to detect vulnerable users and deliver malware or drive-by attacks to those targets while serving legitimate content to others. Regional Phishing or Malware Delivery:

Redirect normal traffic to your site while targeting specific regions for phishing or malware, avoiding detection for longer periods.

----- Hijacking Search Results:

Build up search engine traffic for their domains by associating them with your brand and later weaponize the domains (e.g., for phishing or fraud). Affiliate Fraud:

Redirect traffic with an affiliate ID (if you use affiliate links), attempting to claim commissions fraudulently. Brand Impersonation:

Use domains similar to your brand to impersonate your service, potentially harming your reputation.

----- Extortion/Domain Ransom:

Build traffic or search relevance on their domains and later attempt to extort money from you by offering to stop the redirect or sell the domain.

----- Invoice Scams:

Represent your service fraudulently to businesses for invoice scams or credit fraud.

----- Bypass Sanity Checks:

Use 301 redirects to bypass user sanity checks, tricking users into believing they are visiting legitimate sites.

---- Traffic Monetization:

Use ad-infested parking pages for a fraction of the traffic and redirect the rest to your site to generate revenue.

----- Reputation Damage:

Cause your brand to be associated with scam or phishing domains, which can harm public perception and trust.

----- Legal Liability:

Misuse of your brand or domain to commit fraud could lead to potential legal complications for you.

----- False Phishing Reports:

Cause false flags in phishing reports, harming your brand credibility and delaying the takedown of malicious domains. Hidden Routes for Malicious Content:

Redirect general traffic to you while hosting specific malicious routes (e.g., URLs hosting phishing or malware).

----- Impersonation via Emails:

Send emails claiming to be your service, and when users visit the domain, they see your page after a redirect, adding legitimacy to the scam.

----- Scam Awareness Manipulation:

Target your traffic by hosting fraudulent educational content or warnings related to your domain to sow distrust.

-------------------------- Mitigation Strategies: --------------------------

• Monitor Backlinks: Regularly check backlinks and disavow toxic links using Google’s Disavow Links Tool.

• HTTP Referrer Checks: Implement referrer or origin header-based redirects to flag and warn users arriving via fraudulent domains.

• Warn Users: Create a visible warning for users redirected from suspicious domains.

• Trademark/IP Enforcement: Leverage trademark protections to take action against impersonating domains.

• Manual Domain Actions: Periodically check for indexed pages and investigate potential abuses of similar or related domains.

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

#57

I haven't seen this before but back in the early 2010s I had some India-based group that iframed our SaaS website under a new domain. I caught it early and implemented this fix: https://stackoverflow.com/questions/2896623/how-to-prevent-m... I think this was a common attack vector around then, but is no longer common.

Seeing Google’s Picasa mentioned in an answer on that stackoverflow was a real throwback

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

#58
post #49
post #37

Earlier quoted context omitted.

The right play might be to have a custom landing page or header / popup on your site indicating that they were referred by a fraudulent domain, and to please bookmark your proper domain / report if this was via an email link. The traffic might be good, just coming in through a bad actor.

No, just redirect back to HTTP_REFERER. Why? The user's browser will display a redirect loop error; and most importantly, they won't see your domain. It keeps your name out of it and makes the email domain look even more fishy.

If somebody is using your website to phish, it almost certainly means they are targeting people who legitimately want your services. It is an executive decision, but I personally would let people know, and take the free advertising.

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

#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.

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

#60
post #49
post #37

Earlier quoted context omitted.

The right play might be to have a custom landing page or header / popup on your site indicating that they were referred by a fraudulent domain, and to please bookmark your proper domain / report if this was via an email link. The traffic might be good, just coming in through a bad actor.

No, just redirect back to HTTP_REFERER. Why? The user's browser will display a redirect loop error; and most importantly, they won't see your domain. It keeps your name out of it and makes the email domain look even more fishy.

Redirecting back to the referer will not create a redirect loop. The referer is the URL of the site that linked to the redirect, not the redirect itself. The redirect does not alter the referer in any way. In many cases, there will be no referer at all.

I don't know why everyone seems to think that HTTP redirects are visible in Referer (or Origin or any other header), but that's just not the case: HTTP redirects are completely transparent to the destination server.

Post reply on HN