Logo
Back to Blog
Security August 9, 2026 7 min read

Is Google Dorking Illegal? Where the Line Actually Sits

O

OmniWebKit Team

Security Tooling

Share:
Article Cover Image

You run a search, a result looks sensitive, and you hesitate. That hesitation is correct. Most guidance answers with a shrug — "it depends" — which helps nobody. The actual dividing line is narrower and more useful than that.

Is Google Dorking Illegal to Do at All?

Typing a search query is not an offence. Search operators are a documented feature of a public search engine, and using them is the same act as any other search.

Nothing is accessed that Google has not already crawled and published. Your query never reaches the target's server. There is no system being entered, no control being defeated, and no data being taken.

That is the easy half, and it is genuinely easy. Almost every difficult question sits in what happens afterwards.

One thing to be clear about before going further: this is context, not legal advice. We are not lawyers, laws differ by country, and facts differ by case.

When Search Reconnaissance Stops Being Just Search

The shift happens when you act on a result rather than read it. That is the distinction worth internalising, because it is the one that consistently matters.

Reading a page a server returns publicly is ordinary browsing. Taking a credential from an exposed file and signing in with it is not — it is authenticated access without permission, and that is what computer misuse law across many jurisdictions is built around.

Between those poles sit the genuinely hard cases. Downloading a database dump that was public. Enumerating paths after one turned up. Retaining a copy after telling the owner. General guidance runs out here, and that is not a failure of the guidance — those cases turn on facts.

Why Authorisation Decides Almost Everything

The same query is routine work or a serious problem depending on whether someone agreed to it. Nothing about the technique changes; the permission does.

Three forms of authorisation come up in practice:

  • You own it. Auditing your own infrastructure needs nobody's agreement.
  • A contract covers it. Penetration testing engagements define scope, dates and techniques in writing precisely so this question never arises.
  • A programme invites it. Bug bounty scope documents are an explicit grant, and an explicit boundary.

What does not count: assuming, a verbal "go ahead" from someone without authority, or a scope you read six months ago. We have watched a scope change mid-engagement and catch someone out — checking it again before each session costs a minute.

If you work bug bounties, scope verification belongs before reconnaissance rather than after. Our guide to staying inside programme scope leads with that ordering for a reason.

What About Data That Was Never Meant to Be Public?

An owner's mistake does not settle your position either way. This is the question we get asked most, and honestly it is the one where general answers help least.

A file being reachable without authentication is a fact about the server. Whether someone intended it is a fact about the owner. The two are separate, and different legal systems weigh them differently.

The pragmatic position most experienced people land on: stop as soon as you understand what you have found, do not download more than needed to confirm it, and tell the owner. Continuing to explore after the picture is clear is what turns a finding into a problem.

Reporting What You Find Without Making It Worse

A short factual message beats a detailed one. Say what you found, where, and how you found it. Do not include the data itself.

Send it to a security contact if one exists — check /.well-known/security.txt before anything else. Failing that, a named person beats a general inbox. Give a reasonable window before going further, and keep your own notes.

Two things to avoid, both of which we have seen backfire. Do not demand payment; that reads very differently to a recipient than you intend. And do not publish before they have had a chance to fix it.

The Uncomplicated Case: Your Own Domain

None of this applies when you are auditing something you control. There is no permission question, no disclosure question, and no ambiguity.

That is the version of this work we would encourage anyone to do routinely. The self-audit queries for your own site exist for exactly that, and each finding comes with its remediation.

If you are earlier than that and want the technique explained first, how dorking works covers what these queries can and cannot reach. Understanding the limits removes a lot of the anxiety.

So — Is Google Dorking Illegal?

The search is not. What you do next can be. Authorisation is the deciding factor, and it needs to exist before you start rather than be argued afterwards.

Point the technique at your own systems and the question never arises. Point it elsewhere and get the permission in writing. Everything difficult sits between those two, and that space is where you want a lawyer rather than a blog post.

To build queries for infrastructure you are cleared to assess, the query builder handles the syntax so your attention stays on scope and results.

Frequently Asked Questions

Is this article legal advice?

+
No. It describes the well-documented shape of the question and nothing more. Laws differ by country, facts differ by situation, and we are not lawyers. If a specific case matters to you, pay someone qualified to look at it.

Does it become an offence the moment I click a result?

+
Opening a page that a server returns publicly, without authentication, is the same act as ordinary browsing. Risk rises sharply when you take steps to get past a control — guessing paths behind a login, or reusing a credential you found.

What if the site clearly did not mean to publish it?

+
Intent on their side does not automatically create permission on yours, and it does not automatically remove it either. This is exactly the grey area where general guidance stops being useful and qualified advice starts.

Does a bug bounty programme make it authorised?

+
Within its stated scope, that is what a programme is for. Outside the scope, it grants nothing. Scope documents are specific about domains and techniques for a reason, and reading them properly is the whole job.

Am I obliged to report something I stumble across?

+
Legally that varies enormously and we will not generalise. Practically, a short factual disclosure to the owner is usually the lowest-risk path, and going quiet after downloading something is usually the worst.

Does using a VPN change anything?

+
It changes which jurisdiction your traffic appears to originate from, which can make matters more complicated rather than less. It does not make an unauthorised act authorised.

What about data that was public and then removed?

+
A cached or previously indexed copy is still data about someone. Removal is a signal that access was not intended. Continuing to distribute it after that point is difficult to defend on any reading.

Is it different for security researchers?

+
The activity is the same; the context differs. Documented authorisation, a defined scope and a disclosure process are what separate research from everything else. Calling yourself a researcher is not itself a defence.

Can my employer authorise me to test a supplier?

+
Your employer can authorise you to test what your employer controls. A supplier is a separate party, and testing their systems generally needs their agreement — often written into a contract before anyone starts.

Does any of this apply to searching my own domain?

+
Auditing infrastructure you control is uncomplicated and the reason we built the self-audit tool. The questions on this page all start once someone else's systems are involved.

Tags

#Security#Legal#Ethics#OSINT