Domain Hijacking: How It Happens and How to Prevent It
Protect your domain from takeover with account security, registrar and registry locks, monitoring and a clear recovery plan.
Key takeaways
- The registrar account and the email address that can reset it are the most valuable things to protect.
- Registrar and registry locks add friction to unauthorized transfers and changes.
- Hijackers can do damage without transferring anything, simply by editing name servers or records.
- Speed matters after an incident, so know your registrar's emergency contact route before you need it.
Domain hijacking is when someone gains control of your domain without your permission, either by transferring the registration away or by changing where its DNS points. Whoever controls it controls your website's destination, can receive your email and may be able to reset passwords on accounts tied to those addresses.
Prevention is mostly about the accounts around the domain: a unique password and strong multi-factor sign-in at the registrar and DNS host, a transfer lock, accurate contact details that don't depend on the domain itself and someone watching for changes.
What control of a domain means
A domain involves several parties. You are the registrant. A registrar sells and manages the registration. A registry runs the ending, such as .com. A DNS host serves your records. How domain registration works explains the relationship.
An attacker only needs one weak link. Change the name servers at the registrar and all lookups follow. Change a few records at the DNS host and web traffic or mail goes elsewhere while the registration looks untouched. Transfer the domain to another registrar and recovery becomes slower and harder.
With control of mail records, an intruder can receive password reset messages for your other services. With control of web records, they can often obtain valid TLS certificates, because many certificate checks rely on proving control of the domain.
How it usually happens
- Stolen credentials. A reused or phished password gets into the registrar or DNS account.
- Compromised email. The attacker controls the contact inbox and uses "forgot password".
- Social engineering of support staff. Someone persuades a provider to change account details.
- Fake renewal or verification notices that lead to a convincing login page.
- Departed staff or contractors who still hold the only access.
- Expiry. The registration lapses and someone else registers or acquires it.
- Provider weaknesses, which you can reduce your exposure to but not fix yourself.
Expiry isn't hijacking in the strict sense, but the result looks similar and it's among the easiest to prevent. Expiration and grace periods describes the stages.
Secure the accounts first
- Use a long, unique password for the registrar, the DNS host and the contact email. A password manager makes this practical.
- Turn on multi-factor authentication everywhere. Security keys or passkeys resist phishing better than codes sent by text message.
- Store recovery codes offline in a safe place.
- Give each person their own login with only the access they need, if the provider supports it.
- Treat any message about your domain with suspicion. Type the registrar's address yourself instead of following a link.
The contact email deserves special care. Don't make it an address on the domain being protected: if the domain is taken, you lose the inbox you'd use to recover it.
Use the locks
Registrations carry status codes that say what may be done to them.
| Lock | Who applies it | What it does |
|---|---|---|
Transfer lock (clientTransferProhibited) | Registrar, usually toggled by you | Blocks transfers to another registrar until removed |
| Update and delete locks (client statuses) | Registrar | Block changes or deletion until removed |
| Registry lock (server statuses) | Registry, arranged through the registrar | Requires an extra, often manual, verification before changes |
A transfer lock is normally free and should stay on except during a planned move. Registry lock is a paid or restricted service offered for some endings. It suits domains where an unauthorized change would be severe.
Remember that a transfer lock doesn't stop someone who has your login: they can remove it. A registry lock is stronger because removing it takes steps outside the ordinary control panel.
Transfers also require an authorization code from the current registrar. Don't share it, and don't leave it sitting in a mailbox. Rules about waiting periods after transfers or contact changes have been revised over time, so confirm the current ones with your registrar. Transferring a domain describes the normal process.
Messages that target domain owners
Because registration data and expiry dates have long been discoverable, domain owners receive a steady stream of misleading mail. Common themes are an urgent renewal notice from a company you've never used, a warning that someone else is about to register a variation of your name, a demand to verify contact details and a "search engine listing" invoice dressed up to look like a domain bill.
Check three things before acting. Is the sender your actual registrar? Does your registrar's own control panel, reached by typing its address, show the same notice? Does the message push you to pay or sign in within hours? Registrars do send legitimate verification requests, so don't ignore the subject entirely. Handle it through the account you already know. How to spot a phishing email lists more tells.
Protect the DNS host as seriously as the registrar
Plenty of takeovers never touch the registration. Anyone who can edit your zone can point the website elsewhere, add an MX record or publish a verification record that grants them control of an outside service in your name.
Apply the same sign-in protections there. If the provider offers API tokens for automation, give each token the narrowest scope it can have, such as a single zone and only the record types it needs. Rotate tokens when a project ends, never paste them into code repositories and review which ones exist at least yearly. Where activity logs are offered, turn them on and know how to read them.
Keep ownership clear
Businesses often discover that a former employee, a web designer or an agency registered the domain in their own name. Check who is listed as registrant and make sure it's your organization. Keep invoices and registration records, since they help prove ownership in a dispute.
Public lookup services often redact personal details now, but you can see status codes, the registrar, name servers and dates. WHOIS and RDAP explains how.
# macOS or Linux
whois example.com
dig example.com NS +short Watch for changes
You want to learn about tampering within minutes, not when a customer calls.
- Enable change notifications at the registrar and DNS host.
- Monitor your name servers, key records and DS record from an outside service or a scheduled script.
- Watch Certificate Transparency logs for certificates you didn't request. Certificate transparency explains these public logs.
- Set expiry reminders well ahead, and keep auto-renew and payment details current.
DNSSEC and CAA records add useful friction against some attacks. DNSSEC protects against forged answers, not against someone who controls your registrar account. CAA limits which certificate authorities may issue for the domain, though an attacker who controls DNS can change it. See CAA records.
If it happens
Act quickly and keep notes with timestamps.
After recovery, assume mail sent during the incident may have been read. Reset passwords for services that use those addresses, review mail forwarding rules, check for certificates issued during the window and ask the issuer to revoke any that weren't yours.
If the registrar can't or won't resolve it, ICANN has policies for disputes between registrars over unauthorized transfers, and trademark holders may have other routes. Country-code endings follow their own rules. A lawyer familiar with domain matters can tell you which apply.
Scale the effort to the stakes
A personal domain for a hobby site needs a strong password, multi-factor sign-in, auto-renew and a transfer lock. That takes a few minutes and covers most realistic risk.
A domain that carries a business's mail and customer logins justifies more: registry lock if the ending offers it, two named administrators, security keys, external monitoring and a written approval step for name server changes. An organization with many domains should keep a single inventory, consolidate them with as few registrars as practical and assign an owner to each. Forgotten domains bought for old campaigns are easy targets because nobody is looking at them.
Plan before you need it
Write a one-page record: registrar, account owner, DNS host, where recovery codes are kept, the support and abuse contacts and who may authorize changes. Keep a current export of your zone. Store both somewhere that doesn't depend on your domain working.
Review access whenever someone leaves, and once a year log in to confirm that contact details, lock status and payment methods are right.
Common questions
Is privacy or redaction of registration data a defense?
It reduces what a stranger can learn for a targeted message, which helps a little. It doesn't protect the account itself.
Should the registrar and DNS host be different companies?
Separating them means one stolen login exposes less. It also adds an account to manage. Either arrangement is fine if both are well protected.