Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4791 pages

Help for owners

An old address on my domain, like shop. or promo., now shows pages I never made

Short answer

An old subdomain shows someone else's site when its DNS record still points at a cloud or hosting service you closed, and another person has claimed that service name. This is called a subdomain takeover. Take dated screenshots, find out who manages your DNS, and have that single record removed or pointed at something you own. Never sign in or pay on the strange page.

  • Written for business owners
  • Updated
  • By Maaz Zindani, Senior Software Engineer

Does this sound like your situation?

  • shop.mybusiness.com, which I stopped using, now shows pages I never wrote.
  • An old campaign address from a past promotion is back online with casino, crypto or adult content.
  • Google lists strange pages under my domain, or shows "This site may be hacked" next to it.
  • A customer asked why my old offer page now asks them to log in or download something.
  • My developer shut down a test site or an old app, and nobody touched the domain settings afterwards.

Why does this happen?

  1. The DNS record outlived the service behind it

    Microsoft calls a record that points at a cloud resource which has been deleted a dangling DNS entry, and says CNAME records, the kind that forward one name to another, are especially exposed. The service is gone, but your domain still tells every visitor to go there.

  2. Someone else registered the same service name

    In Microsoft's example, an attacker finds the leftover record, creates a new resource with the exact name it points to, and from then on traffic for your subdomain reaches their resource, where they control the content. Nothing on your own server had to be broken for this to work.

  3. Cloud storage names can be reused by strangers

    Amazon warns that after you delete an S3 bucket, another AWS account may create a bucket with the same name and could then receive requests meant for the deleted one. If your subdomain pointed at a bucket that was deleted, that is the opening.

  4. A GitHub Pages site was switched off

    GitHub says takeovers of a custom domain can happen after a repository is deleted, a billing plan is downgraded or Pages is disabled, while the domain is still configured for GitHub Pages and not verified. Verifying the domain with GitHub stops other GitHub users from taking it over.

  5. A catch-all record covers names you never set up

    A wildcard record such as *.example.com answers for any name under your domain. For sites on GitHub Pages, GitHub strongly advises against wildcard records because they put you at immediate risk of takeover, even when the domain is verified.

What can I do about it today?

  1. Record what you see, with the dateTake a screenshot that shows the address bar and the page, and note the date and time you first saw it. Whoever fixes the record, and anyone you later report the page to, will ask for this.
  2. Do not log in, pay or download anything thereWhoever runs the page controls what it collects. Microsoft warns that a taken-over subdomain can be used to harvest visitors' session cookies, so warn staff not to test it with their own accounts.
  3. Find who holds the login for your DNSDNS is the address book for your domain, and it may sit at your domain company or at a separate service. Look for the account that lists your records, not the old hosting bill. Your web developer or IT person usually knows.
  4. Have the person with DNS access cut that one recordMDN calls removing the subdomain's DNS entry the first step after a takeover. Before anyone changes it, ask them to export or screenshot every record and to write down the old record's name, type and target. Then they remove only that record, or point it at a service you own, after checking that nothing you still use relies on it.
  5. Take down your own links to the old addressCheck your website menus, email signatures, ads, social profiles and printed QR codes for links to the subdomain, and replace them. Microsoft also advises updating outdated subdomain references in your software.

When should I bring someone in?

  • The page asks visitors for passwords, card details or a download.
  • The subdomain once ran a login, a shop or part of an app, so visitors' sessions or data may have reached it.
  • Nobody can say who manages the DNS, or there are dozens of old subdomains to go through.

How do I handle it?

  1. Look at the record, not the pageI query the subdomain's DNS from outside, note the service and name it points to, and confirm that the resource is no longer yours, without filling in anything on the strange page.
  2. Cut the link first, then deal with the old accountWith a backup copy of the zone saved, I delete the dangling record or point it at a resource you own. Only after that do I look at reclaiming or closing the old hosting account.
  3. Check every other record in the zoneI list each subdomain and confirm that its target still exists and belongs to you, as Microsoft recommends. Wildcard records and records that send mail to old services get the same check.
  4. Lock names where the platform supports itI add the ownership records the platforms offer: domain verification for GitHub Pages, and the asuid TXT record that Microsoft says stops any other Azure subscription from validating your custom domain on App Service.
  5. Work out what may have leakedI check whether your app shared cookies or login tokens with that subdomain, review Search Console for strange URLs, and add "remove the DNS record" to the checklist used whenever a service is shut down.

The price depends on what I find, so I quote in writing after a short discovery call. Tell me what is happening and I reply within 24 hours.

What do owners ask about this?

Was my website hacked?

Not necessarily. In a takeover nobody needs to break into your server: your own DNS sends visitors to a resource another person now controls. It is still a security problem, because Microsoft lists cookie theft and phishing among the risks.

The strange page has a padlock. Does that mean it belongs to me?

No. Microsoft notes that whoever takes over a subdomain can apply for and receive a valid SSL certificate for it. The padlock only says the connection is encrypted, not who runs the page.

Could this be a server set-up mistake rather than a takeover?

Sometimes. If the subdomain points at a server that hosts many sites but has none set up for that name, a web server such as nginx sends the visit to its default site, which can be another site on that machine. I check which case it is before anything is changed.

Will Google keep showing the strange pages?

Google says its "This site may be hacked" message stays until the owner acts: verify the site in Search Console, check Security Issues, fix the cause and request a review. The Removals tool can also hide your own URLs from results, and Google says a request lasts about six months.

Could my other subdomains be at risk too?

Any record that points at a service you no longer run is a candidate. AWS, for example, warns that releasing an Elastic IP address without deleting the DNS record pointing to it leaves a dangling record that an unauthorised user can take over.

Sources

How was this page made?

I drafted this page with AI assistance from the official documents listed under Sources. Found a mistake? Tell me.

Related help

Next step

Want this off your desk?

Send me a few lines on where things stand. I reply within 24 hours.