Skip to main content
Domains

Domain Lock and EPP Codes: Preventing Unauthorized Transfers

MMercy Chepkemoi19 November 202618 min read13 views

One morning your website shows a page you have never seen. Your email stops arriving. Customers are phoning to say your address leads somewhere strange. When you check, your domain no longer belongs to your registrar account. Someone has moved it.

Domain hijacking is rare compared with other online threats, but when it happens the damage is severe: your website, your email and your brand can be controlled by someone else, and getting a stolen domain back can take weeks. The good news is that two simple controls, the domain lock and the EPP code, stop most unauthorized transfers, and a handful of habits protect you against the rest.

This guide explains what a domain lock and an EPP code are, how they work together, how domains get stolen, how to protect yours, how to transfer a domain safely when you do want to move it and what to do if the worst happens.

Key takeaways

  • A domain lock (registrar lock) prevents your domain from being transferred to another registrar. Keep it on unless you are deliberately transferring.

  • An EPP code, also called an authorization code, auth code or transfer key, is the secret that proves you may transfer the domain. Treat it like a password.

  • A lock and a code protect against transfers. They do not stop someone with access to your registrar account from changing your nameservers, so protect the account itself.

  • Most domain thefts start with a hijacked registrar account or a hijacked email address, not with a clever technical attack.

  • Turn on two-factor authentication, use a unique password, secure the email address attached to the domain and register domains in your company's name.

  • Rules vary by extension and registrar. .co.ke and other .KE domains follow KeNIC's process, while .com and most generic domains follow ICANN's transfer policy.

Why Domain Security Matters

Your domain is the foundation of your online presence. Whoever controls it can:

  • Redirect your website to a scam or competitor

  • Intercept your email, including password reset messages for other accounts

  • Send convincing phishing emails from your real domain

  • Hold your business to ransom or sell the domain back to you

  • Damage your search rankings and reputation while your site is down or compromised

Because everything else you run on that name depends on it, a few minutes spent protecting your domain is some of the best security time you will spend.

Key Terms Explained

Term

What it means

Registrar

The company you register and manage your domain through

Registry

The organisation that runs a domain extension, such as KeNIC for .KE domains

Domain transfer

Moving a domain's registration from one registrar to another

Registrar lock (domain lock)

A setting at your registrar that blocks transfers away from it

Registry lock

A stronger lock applied at the registry, which usually needs manual verification to change

EPP code

A secret code that authorises a transfer. Also called an authorization code, auth code, AuthInfo code or transfer key

Transfer Authorization Code (TAC)

The newer name for the code in ICANN's reformed policy for generic domains

Domain status codes

Labels such as clientTransferProhibited that describe the domain's state and what is blocked

WHOIS privacy

A service that hides the owner's personal contact details from public records

A small note on the word EPP. EPP is the protocol registrars and registries use to talk to each other. People say "EPP code" to mean the authorization code, and "EPP status codes" to mean the labels that describe a domain's state. They are two different things.

How a Domain Transfer Works

A normal transfer between registrars follows these steps:

  1. The owner unlocks the domain at the current registrar.

  2. The owner requests the EPP code from the current registrar.

  3. The owner starts the transfer at the new registrar and enters the code.

  4. The request is confirmed, and the registries and registrars complete the move.

  5. The domain now sits in the new registrar's account, and the owner can lock it again.

The lock and the code are two separate gates. A thief needs both: the domain must be unlocked, and they must have the code. Most registrars lock domains by default, and only release the code to an authenticated account holder, which is why attackers usually go after the account.

What a Domain Lock Does (and Does Not Do)

What it does. Registrar lock sets a status, usually clientTransferProhibited, that tells the registry to refuse transfer requests for that domain. Your website and email keep working normally while it is on.

What it does not do:

  • It does not stop someone who is logged in to your registrar account from unlocking the domain themselves.

  • It does not necessarily stop them from changing your nameservers or DNS records, which can redirect your site and email without any transfer at all.

  • It does not protect you if your registrar account is compromised, or if your account email is.

  • It does not renew the domain. An expired domain is vulnerable however it is locked.

This is why a lock is one layer of protection, not the whole defence.

Registrar lock vs registry lock

A registrar lock is a switch in your control panel. A registry lock is applied at the registry itself and typically prevents transfers, changes and deletion until the registry verifies the request through a separate channel, often with a phone call or other strong checks. Registry lock is usually offered through selected registrars for high-value domains, and it can add cost and delay, so it suits businesses whose domain is critical. Ask your registrar whether it is available for your extension.

EPP Codes (Authorization Codes) Explained

An EPP code is a string of letters, numbers and symbols that proves you are allowed to move a domain. The new registrar submits it to the registry, and if it matches, the transfer can proceed.

  • Where to get it. Log in to your registrar account, find the domain, and look for options labelled "Auth code", "EPP code", "Transfer key" or "Transfer code". Some registrars email it to the registered contact.

  • How quickly it must be provided. For generic domains such as .com, ICANN's rules require the current registrar to provide the code within five calendar days of a request, and many provide it immediately.

  • How long it stays valid. ICANN's reform of the transfer policy renames the auth code the Transfer Authorization Code (TAC), generates it only when requested and limits its life, with 14 days commonly cited. Registrars adopt changes on different timelines, so request a fresh code right before you start a transfer, and do not reuse an old one.

  • How to handle it. Treat it like a password. Anyone with the code and an unlocked domain can move your domain. Do not post it in chat groups, send it by unprotected email, or leave it in shared documents.

  • Why a code might be rejected. It was mistyped or copied with extra spaces, it expired, it belongs to a different domain, or it was already used.

ICANN's reform also changes the locks that apply after a domain is registered or transferred, with the shorter lock of 30 days replacing the older 60-day period in the reformed policy. Because effective dates differ between registrars, check which rules your registrar applies before you plan a move.

.co.ke and other .KE domains

.KE domains are run by KeNIC and managed through KeNIC-accredited registrars. According to KeNIC's guidance, a .KE owner who wants to move to another registrar requests the authorization code, which KeNIC's pages also call an EPP or transfer code, from the current registrar and gives it to the new one, and transfer locks and authorization codes are the standard safeguards. See KeNIC's page on how to transfer a .KE domain to a KeNIC registrar. Registrars differ in how they expose these controls. Some give you a lock toggle in the control panel, while others handle locking through support, so ask your registrar how it works for .co.ke.

How Domains Get Stolen

Most hijackings use ordinary weaknesses, not exotic technology.

Attack

How it works

How to defend

Registrar account takeover

A weak or reused password, or a phished login, gives the attacker control

Unique password, password manager, two-factor authentication

Email takeover

The attacker hijacks the email address used for the domain, then resets the registrar password

Protect that mailbox with strong sign-in and two-factor authentication, and use a monitored company address

Social engineering

The attacker impersonates the owner and persuades a registrar or reseller to hand over control

Registrar account security questions and verification, registry lock for critical domains, staff training

Phishing for the code

A fake message tricks the owner into sharing the EPP code or approving a transfer

Never share the code, and only start transfers you initiated yourself

Insider or ex-contractor

A former employee or agency holds the account

Register domains in the company's own account, and review access when people leave

Expired domain grabs

The domain lapses and someone else registers it

Auto-renewal, a valid payment method and reminders

Nameserver or DNS changes

The attacker edits DNS without transferring the domain

Account security, update locks and monitoring of DNS

Compromised reseller or hosting account

A hosting control panel with access to domain settings is hacked

Separate credentials and keep software updated

See our guide to phishing and business email compromise for the scams that often start these attacks.

Domain Status Codes You Might See

A WHOIS lookup can show the status codes attached to your domain. For generic domains, these are common:

Status

Meaning

ok or active

Normal, with no special restrictions

clientTransferProhibited

Registrar lock is on, so transfers are blocked

clientUpdateProhibited

Changes to the domain's details are blocked by the registrar

clientDeleteProhibited

Deletion is blocked by the registrar

serverTransferProhibited, serverUpdateProhibited, serverDeleteProhibited

Locks applied by the registry, including registry lock

pendingTransfer

A transfer request is in progress

clientHold or serverHold

The domain is not resolving, often because of expiry or a dispute

redemptionPeriod or pendingDelete

The domain has expired and is being deleted

The exact labels shown vary between registries. If a domain you own suddenly shows pendingTransfer and you did not start a transfer, contact your registrar at once.

How to Protect Your Domain: Step by Step

Step 1: Check the current status

Look up your domain with a WHOIS lookup to see the registrar, the expiry date and the status codes. Confirm that you know where the domain is registered and who controls that account.

Step 2: Turn the domain lock on

In your registrar's control panel, find the setting called Registrar Lock, Domain Lock or Transfer Lock and switch it on. If you cannot find it, especially for a .co.ke domain, ask the registrar's support team to lock it for you.

Step 3: Secure the registrar account

  • Use a long, unique password stored in a password manager

  • Turn on two-factor authentication if your registrar offers it, preferably with an authenticator app or security key and not text messages

  • Keep your recovery options current

  • Never share the login, and avoid logging in on shared computers

Step 4: Secure the email address attached to the domain

The contact email is the key to the account. Protect that mailbox with a strong password and two-factor authentication. Use an address on a different domain from the one being protected, so that losing the domain does not also cut off your recovery email. A shared role address, such as domains@yourcompany.co.ke, that reaches more than one person is better than a personal inbox, but keep access tightly controlled. See our guide to shared mailboxes and aliases.

Step 5: Hide personal details

WHOIS privacy keeps the owner's personal contact details out of public records, which makes it harder for attackers to research and impersonate you. Check the domain pricing page for current terms on WHOIS privacy.

Step 6: Keep the domain renewed

Turn on auto-renewal, keep a valid payment method on file and set calendar reminders. Our guide to what happens when a domain expires explains why a lapse is dangerous.

Step 7: Register it in the right name

Register domains in your company's own account and name, not a freelancer's or an employee's. Remove access when people leave, and keep a record of every domain, its registrar, owner and expiry date.

Step 8: Consider registry lock for critical domains

If your domain is business-critical, ask whether your registrar offers registry lock or a similar high-security option for your extension, and weigh the extra protection against the extra effort.

Step 9: Monitor changes

Watch for unexpected emails from your registrar, changes to nameservers or contacts and sudden email or website failures. Use uptime monitoring and check your DNS records after any change. See managed DNS.

Step 10: Write down your recovery plan

Keep your registrar's support contacts, your proof of ownership (invoices, company registration documents, past emails) and a list of who can approve changes. If anything goes wrong, you will need them fast.

How to Transfer a Domain Safely When You Want To

A legitimate transfer is routine, but it temporarily lowers your defences, so do it carefully.

Before you start

  • Check eligibility. Generic domains are commonly blocked from transfer for a period after registration or a previous transfer, and expired domains usually cannot be transferred until renewed.

  • Check the contact details. The registered email address must be one you can access, because transfer messages are sent there.

  • Copy your DNS records, especially MX and TXT records, so you can check them afterwards.

  • Check WHOIS privacy. Some registrars require it to be switched off temporarily, so ask.

  • Do not change nameservers during the transfer. Moving the registration and changing where the domain points are separate actions, and doing both at once makes problems harder to diagnose.

The transfer

  1. Unlock the domain at the current registrar.

  2. Request a fresh EPP code, and copy it exactly, with no extra spaces.

  3. Start the transfer at the new registrar, enter the domain and the code and complete any verification steps.

  4. Approve any confirmation message that you receive, and only if you started the transfer.

  5. Wait for completion. For generic domains it often finishes within a few days, and sometimes sooner if both sides approve.

  6. Check the domain, website and email, and confirm that the nameservers and records are as they should be.

  7. Lock the domain again at the new registrar, turn on auto-renewal and set up two-factor authentication.

Transfers between registrars for generic domains normally include an extension of the registration, and some extensions may carry a registry charge, so ask the new registrar about terms before you begin. You can read about moving a domain to SteboHost on the transfer your domain page.

Transfer, ownership change or account move?

These are different things:

  • A registrar transfer moves the registration to another registrar.

  • A change of registrant changes the legal owner of the domain. Registrars often impose extra checks or a waiting period after it.

  • An account move (sometimes called a push) moves a domain between accounts at the same registrar, for example from a freelancer's account to your company's account.

If an agency or employee registered your domain, ask for an account move or a transfer into your own account and keep the confirmation.

If Your Domain Has Been Hijacked

Speed is critical.

  1. Contact your registrar immediately by phone or the fastest support channel, explain that the domain was moved or changed without your authorization and ask them to lock it and open a security investigation.

  2. Secure your accounts. Change passwords on the registrar account and the email address linked to it, and turn on two-factor authentication. Check for unknown forwarding rules and sign out other sessions.

  3. Gather evidence. Save emails, WHOIS records, screenshots and the dates and times of changes. Keep your proof of ownership ready.

  4. Find out where the domain went. A WHOIS lookup shows the current registrar. Contact both registrars if it has moved. For generic domains, ICANN's Transfer Dispute Resolution Policy gives a process for disputing an improper transfer, and your registrar can explain it.

  5. For a .co.ke or other .KE domain, contact your registrar and KeNIC, and ask about the process for disputing an unauthorized transfer.

  6. Protect your customers. Warn them that email from your domain may be fraudulent, and check any services that rely on the domain, such as payment callbacks and verification emails.

  7. Report the crime. In Kenya, you can report cybercrime to the DCI and to the National KE-CIRT/CC.

  8. Review how it happened and fix the weakness before you regain control.

Common Mistakes to Avoid

  • Leaving the domain unlocked after a transfer or change

  • Sharing the EPP code by email or in group chats

  • Using one password for the registrar and other sites

  • No two-factor authentication on the registrar account or its email

  • Letting a freelancer or agency hold the only account

  • A contact email that nobody monitors, or that sits on the same domain

  • Changing nameservers and transferring at the same time

  • Forgetting auto-renewal

  • Approving a transfer message you did not request

  • Having no record of which domains you own and where

Your Domain Security Checklist

  • Domain lock is on

  • Registrar account protected with a unique password and two-factor authentication

  • Contact email protected, monitored and independent of the domain

  • WHOIS privacy considered

  • Auto-renewal on, with a valid payment method

  • Domains registered in the company's own name and account

  • Registry lock considered for critical domains

  • EPP codes requested only when needed, and never shared carelessly

  • DNS and status checked regularly

  • A written recovery plan and proof of ownership stored safely

Why Manage Your Domains With SteboHost

SteboHost brings your domain, DNS, email and hosting together, so you can see and control the pieces that protect your name:

  • Domain registration and management with renewal prices shown before you buy and auto-renewal available. See domain registration and the domain pricing page for current terms.

  • A WHOIS lookup tool so you can check your domain's registrar, expiry date and status codes. See the WHOIS lookup.

  • Managed DNS to keep your records in one place. See managed DNS.

  • Business email on your own domain, with SPF, DKIM and DMARC configured automatically. See business email.

  • Help with moving a domain. See transfer your domain, and ask SteboHost support how locking and authorization codes work for your extension.

  • Security around your website: a web application firewall, Imunify360 malware scanning and DDoS mitigation on every plan, plus 24/7 infrastructure monitoring. See website security.

  • Migration help on annual plans. Terms are shown on the pricing page and at checkout.

  • Local support on +254 703 610 464 during East Africa Time business hours, with 24/7 urgent monitoring, and billing in KES by M-Pesa, card or bank transfer.

Current plan and renewal prices are shown on the pricing page before you buy. You can also browse the knowledge base for more domain guides.

Conclusion

A domain lock and an EPP code are simple controls that block most unauthorized transfers, but they only work as part of a wider habit: keep the lock on, protect the registrar account and the email behind it, renew on time, register domains in your own name and treat the authorization code like a password. When you do need to move a domain, plan it carefully and keep your defences up. And if something ever goes wrong, act within minutes, not days.

Want help checking your domain's lock and status? Contact the team or call +254 703 610 464, and SteboHost will help you review it.

Frequently Asked Questions

What is a domain lock?

A domain lock, or registrar lock, is a setting that stops your domain from being transferred to another registrar. Your website and email keep working normally while it is on. You turn it off only when you deliberately want to transfer the domain.

What is an EPP code?

An EPP code is a secret authorization code that proves you are allowed to transfer a domain to a new registrar. It is also called an auth code, authorization code or transfer key, and ICANN's reformed policy for generic domains calls it a Transfer Authorization Code (TAC). Treat it like a password.

How do I get my EPP code?

Log in to your registrar account, open the domain's settings and look for an option labelled auth code, EPP code, transfer key or transfer code, or ask your registrar's support team. For generic domains, the registrar must provide the code within five calendar days of your request, and many provide it immediately. You normally need to unlock the domain first.

Can someone steal my domain if it is locked?

A lock makes it much harder to transfer the domain, but it is not a guarantee. If an attacker gets into your registrar account or your account email, they may be able to unlock the domain, request the code or change your nameservers. That is why two-factor authentication, strong passwords and a protected contact email matter as much as the lock.

Does domain lock stop DNS or nameserver changes?

Not necessarily. The registrar lock blocks transfers. Changing nameservers or DNS records is a different action, which is why you should also secure the account, monitor your records and consider registry lock for critical domains.

How long does a domain transfer take?

For generic domains, transfers commonly complete within about five days, and sometimes sooner if both registrars approve quickly. For .KE domains, the timing depends on the registrars involved, so ask the new registrar. Do not change nameservers during the transfer.

How do I transfer a .co.ke domain to another registrar?

Unlock the domain at your current registrar if it has a lock, request the authorization (EPP) code, and give it to the KeNIC-accredited registrar you are moving to, then follow their steps. Registrars differ in how they handle locks and verification, so ask both for their process and any terms before you begin.

#Domains#Domain Lock#EPP Code#Domain Security#Domain Transfer#Registrar Lock#Security
M

Written by Mercy Chepkemoi

SteboHost engineering and operations team. We write practical guides on hosting, domains, email and security for African businesses — based on what we see in the field, not marketing copy.

Ready to get started?

Browse our hosting plans or contact our team for help choosing the right one.