Google flagged my personal site as dangerous because of my self-hosted login pages
Well, you never stop learning new things about web security, even on your own personal site... A few days ago I got an email from Google with the subject "Social engineering content detected" on my personal domain. By t
Well, you never stop learning new things about web security, even on your own personal site...
A few days ago I got an email from Google with the subject "Social engineering content detected" on my personal domain. By that evening, Chrome was showing a full-page red warning on the homepage of my site. That's a static blog with no forms, no ads and no third-party scripts.
Nothing was hacked. The problem was two self-hosted apps on subdomains of the same domain, both behind Cloudflare Access. In this article I want to show you what Google flagged, how I checked it was a false positive, what I considered and dropped, and what got the warning removed a few hours after I asked for a review.
In the examples I'll call my main domain example.dev, the second domain I moved things to example-home.net, and my Cloudflare Access team domain myteam.cloudflareaccess.com.
The email
The email said that "some pages on your site might be hacked", that affected pages had been demoted in search results, and that Chrome now shows a warning on them. The Security issues report in Search Console listed sample URLs like these:
https://docmost.example.dev/login
https://vault.example.dev/cdn-cgi/access/authorized?nonce=8231...&state=e09c...%3D%3D
If you've read my post about setting up Docmost with Amazon SES, you know Docmost: it's an open-source wiki I use for my notes. The other one is Vaultwarden, a self-hosted server compatible with Bitwarden. Both run on my home server, and both sit behind Cloudflare Access with the email one-time PIN login. Nobody gets to the app without a PIN sent to my email address.
So the first flagged URL is Docmost's login page, and the second is the URL Cloudflare Access redirects you back to after the PIN step.
Was I actually hacked?
That's the first question to answer before anything else. A "social engineering" flag can mean someone put a phishing kit on your server or took over a forgotten subdomain, so I didn't want to assume it was a false positive.
The long state parameter in the second URL turned out to be useful. It's a hash, a dot, then base64 of URL-encoded JSON. This decodes it:
STATE='e09c...%3D%3D' # paste the full state value here
python3 -c '
import sys, base64, urllib.parse
state = urllib.parse.unquote(sys.argv[1]) # undo the %3D%3D at the end
payload = state.split(".", 1)[1] # drop the hash before the dot
print(urllib.parse.unquote(base64.b64decode(payload).decode()))
' "$STATE" | python3 -m json.tool
Here's the relevant part of the output (trimmed, and with my names replaced):
{
"iat": 1796206504,
"authDomain": "myteam.cloudflareaccess.com",
"hostname": "docmost.example.dev",
"redirectURL": "/home",
"isOTP": true,
"auth_status": "NONE"
}
How to read it:
-
authDomainis my own Access team domain, so this is a normal Cloudflare Access login flow, not a lookalike page. -
isOTP: truemeans the one-time PIN login. -
auth_status: "NONE"means nobody authenticated. Whoever made this request got to the login and no further. -
iatis a Unix timestamp:date -u -d @1796206504gives 2 December 2026, 10:15 UTC. So something was walking my login flow that morning, a few hours before the email arrived. That's what a scanner does.
Note
The callback URL was onvault.but thestatenamesdocmost.as the hostname, and they're two separate Access applications. My best guess is that the scanner mixed up two requests. Either way,auth_statusisNONE, so it went nowhere.
I also checked the other places a real compromise would show up:
- The DNS records in Cloudflare, looking for anything I didn't create, and for CNAMEs pointing at services I no longer use. A dangling CNAME is how attackers take over a subdomain, and then the phishing flag is real.
- The site's own source, for scripts or iframes I didn't add.
None of that turned up anything. Everything on the list was one of my own login pages.
So why did Google think it was phishing?
According to Google's own definition, social engineering content tricks visitors into doing something dangerous, like giving away credentials. Now look at my domain the way an automated classifier would:
- A personal domain nobody has heard of.
- Several subdomains, each showing the same plain "enter your email address" page.
- One of them is literally called
vault. - Behind that, a password manager login.
That's pretty much what a phishing kit looks like. Cloudflare Access isn't the problem as such: it does its job well. But it puts the same unbranded login page in front of every app, and to a classifier that looks like a domain collecting credentials on lots of hosts.
I'm far from the only one. The Immich team wrote about Google flagging their own preview deployments, and the Vaultwarden forums have several threads from people whose instances got flagged for the same reason.
Then it got worse
Around 20:30 the same day, Google flagged the whole domain. Not just the two subdomains: the blog on example.dev itself.
This is the part I hadn't appreciated before. A flag on one subdomain can end up taking down the whole domain, including the parts that have nothing to do with it. The Immich post describes exactly the same thing.
What I considered and didn't do
Listing the subdomains in robots.txt
My first instinct was to add the subdomains to the robots.txt on the main domain. It doesn't work, for three reasons:
-
robots.txtonly covers its own host. The file atexample.dev/robots.txthas no effect onvault.example.dev. Each subdomain needs its own. -
It doesn't control Safe Browsing.
robots.txtis for search crawlers. Safe Browsing is a separate system with its own ways of finding URLs. - It publishes your private hostnames. A list of subdomains you'd rather hide, in a public file, is the opposite of what you want.
And on an Access-protected hostname, a request for /robots.txt gets redirected to the login like everything else, unless you add a bypass policy for that path.
Branding the Access login page
Putting my name and a line like "Private services operated by ..." on the login page sounded like a good idea, since it makes the page look less like a generic credential form. I couldn't find the setting that evening. For the record, according to the Cloudflare docs it's under Zero Trust > Reusable components > Custom pages > Access login page, where you can set your organisation name, a logo, a header and a footer. Fully custom HTML templates arrived in October 2026, but only on the paid Zero Trust plans.
It's worth doing, but it doesn't change the fact that it's still a login page on a hostname anyone can reach.
Tailscale only
The cleanest fix is to not expose these apps to the internet at all. I already use Tailscale at home (I wrote about deploying to a home server on a private Tailscale network from GitHub Actions), and on my personal laptop that would be perfect.
But I also need these apps on my work laptop, and I can't install Tailscale there. So they had to stay reachable from the public internet, behind Access.
What I actually did
1. Removed most of the subdomains
I had more self-hosted subdomains on example.dev than the two that got flagged. Most of them I didn't really need from outside, so I deleted their DNS records and their Access applications. Fewer login pages, fewer things for a classifier to look at.
2. Moved the important ones to a different domain
The apps I need from anywhere moved to example-home.net, a domain that has nothing else on it. If that domain gets flagged one day, my blog doesn't go down with it. That's the whole point: keep the thing you want people to see away from the things that look like login forms.
If you do the same, remember that the apps have to know their new address too:
-
Vaultwarden uses the
DOMAINenvironment variable for links and for WebAuthn. Passkeys are tied to the hostname, so if you use one as a second factor, make sure another 2FA method works before switching. -
Docmost uses
APP_URL. - Point your Bitwarden apps and browser extension at the new server URL.
3. Asked Google for a review
In Search Console, the Security issues report has a Request review button. Google asks you to describe what you fixed. This is roughly what I sent:
example.dev is my personal developer website. It has no logins, forms,
downloads, ads or third-party scripts.
The flagged URLs (for example docmost.example.dev/login and
vault.example.dev/cdn-cgi/access/authorized) were login pages for
applications I self-host for my own use: Docmost, an open-source wiki,
and Vaultwarden, an open-source password manager. Both sat behind
Cloudflare Access, so the pages your systems saw were Cloudflare Access's
one-time-PIN sign-in and the apps' own login screens. They never
pretended to be another brand and never asked anyone for third-party
credentials.
I've taken these and my other self-hosted subdomains off example.dev and
deleted their DNS records. I've checked the domain's DNS and the site's
content and found nothing unauthorised and no sign of compromise.
Please review the domain and remove the warning.
The important part is that I made the change before asking. When the reviewer checked, the flagged URLs simply didn't exist any more, and the domain only had the blog on it.
Google's guide on requesting a review says phishing reviews take about a day. Mine was done in a few hours, and the warning was gone.
Keeping scanners away from the login page
Moving the apps limits the damage, but the new domain still has public login pages, so it could get flagged too. One more layer helps: don't let anonymous traffic see the login page at all. A scanner can't flag a page it can't load.
A Cloudflare WAF custom rule runs before Access, so it can block requests before they ever get the login page:
flowchart LR
V[Visitor] --> CF[Cloudflare edge]
CF --> WAF{WAF custom rule}
WAF -- "outside Ireland or Google network" --> B[403 Blocked]
WAF -- allowed --> A[Access login: email PIN]
A -- valid PIN --> App[Vaultwarden / Docmost]
This is the rule I'd use, with the action set to Block:
(http.host in {"vault.example-home.net" "docmost.example-home.net"})
and (not ip.src.country in {"IE"} or ip.src.asnum in {15169 396982})
-
ip.src.countryis the visitor's country in ISO two-letter format. I live in Ireland, so anything else gets a 403. -
ip.src.asnumis the network the request comes from. AS15169 is Google, and AS396982 is Google Cloud Platform. Blocking both keeps Google's own scanners out, even if they connect from an Irish IP address.
Both fields are in the Cloudflare Rules language reference.
A few things to keep in mind:
- This is not authentication. Access still does that. The WAF only decides who gets to see the login page.
- The country rule will lock you out when you travel. Add the country, or pause the rule, before you go.
- Blocking Google Cloud blocks everything on Google Cloud. For a password manager only I use, that's fine. For an app that receives webhooks or API calls from services hosted there, it isn't.
- If your work network has a fixed outbound IP range, allowing only that range plus your home IP is even tighter. With a dynamic home IP, the country rule is easier to live with.
What I'd do differently
- Keep self-hosted apps off the domain you care about, from day one. A separate domain for the home lab costs a few euro a year and keeps a flag on a login page from taking down your blog.
- Add every domain you own to Search Console as a Domain property. That email was my early warning. Without it, I'd have found out when someone told me my site was "dangerous".
-
Don't call things
vault,loginorsecure. I know, it's the obvious name. Classifiers think so too. - Brand the Access login page with your name, so it looks like what it is.
- Hide login pages from anonymous traffic where you can, with Tailscale if all your devices allow it, or a WAF rule if they don't.
- Check before assuming it's a false positive. Mine was, but a dangling CNAME or a compromised server gets the same email.
Hopefully this saves you a stressful evening if Google ever decides your Vaultwarden is a phishing site. If you've had the same thing happen with another self-hosted app, I'd love to hear how you dealt with it in the comments.
DISCLAIMER
I used AI to help me write this article.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.