Password-protect a website without touching its code
Switch on a password for a domain and every visitor is asked for it before anything loads. Your app stays exactly as it is.
Get started freeWhere it helps
Anything that should be online but not public:
- Client previews and work in progress
- Staging sites you don’t want indexed by search engines
- Internal tools and demos for a small group
- An app on your laptop, shared through a tunnel
How it works
The password lives on the domain, at DomainDock’s gateway. Visitors’ browsers show their own sign-in prompt. Only after the right username and password does the request go on to your app, with the password removed so your app never sees it. It covers every path of the domain, including ones that go to other services.
DomainDock suggests a long random password, keeps only a scrambled copy of it and shows the password to you once. Each visitor address is also limited in how many requests it can make per second, which slows down guessing.
What it isn’t
It’s one shared username and password per domain (HTTP Basic authentication over HTTPS), not individual accounts. Webhooks and monitors can’t type a password either, so give a webhook endpoint its own unprotected address.
Plus a maintenance page
On the same screen, maintenance mode shows every visitor a “Back soon” page with your message. It answers with status 503 and a Retry-After header, so search engines treat the downtime as temporary and keep your pages indexed.
Set it up in three steps
- 1
Add your site as a domain
Point a DomainDock domain at your app: a server, a hosted app or your laptop.
- 2
Turn on the password
On the domain’s Access tab, click Add password. Keep the suggested one or type your own.
- 3
Share it
Copy the username and password from the confirmation and send them with the link.
Questions people ask
No. The password is checked before the request reaches your app. It is then removed from the request, so your app never sees it.
No. Crawlers get the same password prompt as everyone else, so the pages can’t be read or indexed.
Not today. Each domain has one username and password. Change it to cut off everyone who had the old one.
Yes. Password protection and maintenance mode are part of the free plan.