Skip to content
NewCybercrime Report 2026 · Eight Chapters · A Post Is Not An Incident → Explore The ChaptersCybercrime Report 2026 → Explore

Google Dorks 101: Commands and a Cheat Sheet for Defenders

What Google dorks are, which operators Google still documents in 2026, and a copy-ready cheat sheet of 40 dorks for finding your own exposed files, logins and keys.

Published
Updated
Reading Time
18 min read
Dark glass glass gold-panning sieve pan holding a few glowing red nugge with red neon lines, cover art for: Google Dorking 101

Google dorks are search queries that use advanced operators, such as site:, filetype: and intitle:, to find specific pages and files that Google has already indexed. Writing and running them is called Google dorking, or Google hacking. Attackers use dorks for reconnaissance, and defenders run the same queries against their own domains to find exposed files, login pages and secrets first.

What Are Google Dorks?

A Google dork is a search query that uses advanced operators, such as site: or filetype:, to narrow results to one website, one file type or one exact phrase. Writing and running those queries is called Google dorking, or Google hacking. A dork breaks into nothing. It only finds pages and files that are already public and already in the search index.

That is the risk. A spreadsheet in the wrong folder, a staging site left open or a backup file in a web directory can be found by anyone who asks the right question. Defenders run the same queries on their own domains to find these mistakes before someone else does.

The Google Hacking Database (GHDB) says Johnny Long popularized the technique in 2000 and began cataloging the queries. He coined the word “Googledork” for “a foolish or inept person as revealed by Google”. His point was that the fault lies with an often unintentional misconfiguration, not with Google. He handed the database to OffSec in November 2010, and it is now part of the Exploit Database.

Dorking is one technique of open-source intelligence (OSINT), the collection of information from public sources. Our OSINT Framework guide covers the wider toolset. On the framework’s own site, entries that rely on a dork carry the letter D.

Google Dork Commands: Which Operators Does Google Still Document?

Google documents only a few operators. Its Search Help page lists quotes for an exact phrase, site:, the minus sign, before:, after: and filetype:. Google’s Search Central page adds two operators that work only in Google Images. Practitioners also use intitle:, inurl: and intext:, which appear in the OWASP Web Security Testing Guide but not on Google’s own pages, so test them before you rely on them.

Operator What it does Example on your own domain Documented by
"exact phrase" Matches an exact word or phrase site:example.com "internal use only" Google, Bing
site: Limits results to a domain, a URL or a URL prefix site:example.com Google, Bing, OWASP
- (minus) Leaves out results that contain a word site:example.com -site:www.example.com Google, Bing
filetype: Limits results to one file type, by content type or file extension site:example.com filetype:xlsx Google, Bing, OWASP
before: and after: Limits results to documents last updated before or after a date site:example.com after:2026-10-01 Google
OR Matches either term; group the terms in parentheses site:example.com (filetype:sql OR filetype:bak) Bing
intitle: Matches a word in the page title site:example.com intitle:"index of" Bing, OWASP
inurl: Matches a word in the address site:example.com inurl:admin OWASP
intext: or inbody: Matches a word in the page body (inbody: is the Bing form) site:example.com intext:"password" OWASP, Bing
ext: Matches a file name extension site:example.com ext:log Bing
ip: Finds sites hosted on one IP address ip:203.0.113.10 Bing

Three syntax rules save time. Put no space after the colon: Google’s help says site:nytimes.com works and site: nytimes.com does not. Bing’s keyword list and its search help add that Bing reads only the first 10 terms of a query and needs OR and NOT in capitals.

Google also warns that operators are “bound by indexing and retrieval limits”, and that the list a site: query returns is not always exhaustive. A dork shows a sample of what is indexed, never a full inventory.

Other Operators You Will See in Cheat Sheets

Cheat sheets also list the operators below. On 10 November 2026 we checked each one against five pages: Google’s two operator pages, Bing’s two search help pages and the OWASP guide. The last column names the pages that list it. None of these operators is on Google’s pages.

Operator What cheat sheets say it does Documented by
allintitle: Every word that follows must be in the page title None
allinurl: Every word that follows must be in the address None
allintext: Every word that follows must be in the page text None
* (wildcard) Stands for one or more words inside a quoted phrase None
ext: on Google Finds a file extension, like filetype: Bing only; on Google, use filetype:
AROUND(n) Finds two words that are at most n words apart None
.. (number range) Finds numbers within a range, such as 2020..2026 None
inanchor: Matches a word in the anchor text of links Bing
define: Shows the definition of a word or phrase None

Google’s own Advanced Search form offers no shortcut for them either. It has fields for a site or domain, a file type and the last update. It has none for words in the title, the address or the page text, and none for a number range.

To test an operator that Google does not document, such as intitle: or allintitle:, run it next to the same query without it. For example, compare site:example.com intitle:login with site:example.com login. If the first list is shorter and every title in it has the word, the operator filtered the results that day.

Operators to Drop From Old Cheat Sheets

Older cheat sheets, including some that rank today, still list cache:, info:, link:, related: and phonebook:. Google’s Search Central update log says it dropped related: from its documentation in July 2023 because the operator is no longer supported. It dropped cache: in September 2024 because the operator “no longer works in Google Search”. The other three are not on Google’s current operator pages, so build no checks on any of the five.

The OWASP guide, version 4.2, still shows cache:. For an old copy of a page, use the Internet Archive’s Wayback Machine instead, which the same guide lists as a search source.

How To Combine Operators Into One Precise Dork

Start broad, then narrow one step at a time, so you can see which part of the query removed what. Here is one worked example for a company that owns example.com.

  1. site:example.com lists a sample of what Google has indexed for the domain and its subdomains.
  2. site:example.com -site:www.example.com drops the main website, so hosts such as test, staging or old portals stand out.
  3. site:example.com -site:www.example.com filetype:pdf keeps only PDF files on those hosts.
  4. site:example.com -site:www.example.com filetype:pdf "confidential" keeps PDFs that use your marker word.
  5. site:example.com -site:www.example.com filetype:pdf "confidential" after:2026-10-01 shows only what was updated since your last check.

Use parentheses and OR to check several file types in one query, for example site:example.com (filetype:sql OR filetype:bak OR filetype:log). Bing documents this grouping and says OR has the lowest precedence, so the parentheses matter. Google’s help page does not list OR, so if a combined query looks wrong, split it into one query per file type.

A site: value can also be a URL prefix. In Google’s own example, site:https://www.example.com/ramen tsukemen returns only addresses that start with that path. Google adds that a more specific prefix may return more results than a broad one. On a large site, check folders such as /uploads/, /files/ and /docs/ one at a time.

Google Dorks Cheat Sheet: 40 Queries For Your Own Domain

Replace example.com with a domain you own and yourcompany with your company name. Run the queries one group at a time and write down every hit. Each table says what a hit usually means and what to do next. On a phone, scroll each table sideways to see the last column.

Your own organization only. Run these queries only against domains your organization owns, or with written permission from the owner. Opening, downloading or logging in to what you find on someone else’s system can be illegal even when the search result is public.

1. See What Is Indexed

Start with an inventory. Hosts that nobody listed are a form of shadow IT: if nobody owns a host, nobody patches it.

Dork What a hit means What to do
site:example.com Indexed pages on the domain and its subdomains (a sample, not a full list) Compare the hosts with your asset list
site:example.com -site:www.example.com Subdomains other than the main site Find an owner for each host
site:example.com (inurl:test OR inurl:dev OR inurl:staging) Test or staging pages that are public Put them behind a login or take them down
site:example.com (inurl:old OR inurl:backup OR inurl:temp) Leftover copies of sites or files Remove them or move them out of the web root
site:example.com after:2026-10-01 Pages and files updated since a date Review what is new since your last check

2. Documents That Should Not Be Public

Start with the file types your teams create every day: PDFs, spreadsheets, documents and slides. Read the titles in the results first, and open only files on your own domain.

Dork What a hit means What to do
site:example.com filetype:pdf "confidential" PDFs marked confidential Confirm with the owner, then remove
site:example.com filetype:pdf ("internal use only" OR "not for distribution") Internal documents Remove, or move behind a login
site:example.com (filetype:xls OR filetype:xlsx OR filetype:csv) Spreadsheets, which can hold names or prices Check each one for personal or customer data
site:example.com (filetype:doc OR filetype:docx) "draft" Draft documents Remove drafts and keep only final versions
site:example.com (filetype:ppt OR filetype:pptx) Slide decks, sometimes with plans or roadmaps Review for internal plans
site:example.com filetype:pdf ("salary" OR "payroll") HR material Escalate to HR and your privacy team
"@example.com" (filetype:xlsx OR filetype:csv) -site:example.com Files on other sites that list staff email addresses Ask the host to remove them; warn staff about phishing

3. Database Dumps, Backups and Logs

One of these files can hold a whole database or website. Treat any hit here as exposed data until you know who downloaded it.

Dork What a hit means What to do
site:example.com filetype:sql Database exports Remove, then treat the data as exposed
site:example.com (filetype:bak OR filetype:old OR filetype:backup) Backup copies of files or pages Remove; check whether they held code or settings
site:example.com (filetype:zip OR filetype:tar OR filetype:gz) Archives, sometimes full site backups Check what the archive holds, then remove it
site:example.com filetype:log Server or application logs Remove; logs can hold IP addresses, user names or tokens

4. Passwords, Keys and Configuration Files

A secret in a file is a login waiting to be used. MITRE tracks the theft of such secrets as Credentials in Files (T1552.001), and .env and config files are common targets.

Dork What a hit means What to do
site:example.com filetype:env .env files with application settings Remove; rotate every secret in the file
site:example.com (filetype:ini OR filetype:conf OR filetype:cfg) Configuration files Remove; check for passwords and host names
site:example.com (filetype:xml OR filetype:json OR filetype:yml) "password" Config or export files that mention a password Rotate the password and remove the file
site:example.com filetype:txt "password" Text notes with passwords Remove and rotate
site:example.com "BEGIN RSA PRIVATE KEY" A private key in a public file Revoke the key and issue a new one
site:example.com ("api_key" OR "apikey" OR "secret_key") API keys in pages or scripts Revoke the key at the provider; remove the file
site:example.com inurl:wp-config Copies of a WordPress config file, such as a .bak Remove; change the database password and the keys in the file

5. Login Pages and Admin Panels

An indexed login page is not a leak by itself, but it tells an attacker where to try stolen passwords. Check that each one needs to be public, and that it asks for multi-factor authentication (MFA).

Dork What a hit means What to do
site:example.com (intitle:"login" OR intitle:"sign in") Indexed login pages Confirm each one must be public; add MFA
site:example.com (inurl:admin OR inurl:administrator) Admin paths Limit access by VPN or IP address
site:example.com inurl:wp-login.php WordPress login pages Add MFA and limit login attempts
site:example.com inurl:phpmyadmin A database admin tool on the internet Remove public access at once
site:example.com (intitle:"dashboard" OR intitle:"control panel") Web dashboards Check that they ask for a login
site:example.com (inurl:jenkins OR inurl:grafana OR inurl:kibana) Build and monitoring tools Put them behind single sign-on or a VPN

6. Directory Listings and Error Pages

These pages can show how your servers are built: folder names, file paths, software versions and sometimes database queries.

Dork What a hit means What to do
site:example.com intitle:"index of" Folders that list their files Turn off directory listing
site:example.com intitle:"index of" "parent directory" The same, with a stricter match Turn off directory listing
site:example.com ("Fatal error" OR "Warning: mysql") PHP errors that show paths or queries Turn off error display in production
site:example.com ("stack trace" OR "Traceback (most recent call last)") Debug output from applications Turn off debug mode
site:example.com intitle:"phpinfo()" A PHP info page with server settings Remove the file

7. Your Company on Other Sites

The OWASP guide treats forums, staff posts and third-party services as indirect sources of leaks. These queries look for your name outside your own domain.

Dork What a hit means What to do
"example.com" site:pastebin.com Your domain in public pastes Read the paste; act on any credentials
"example.com" site:github.com Your domain in public code Check for keys and internal host names
"example.com" (site:trello.com OR site:docs.google.com) Public boards or documents that mention you Ask the owner to restrict sharing
"example.com" "password" -site:example.com Pages elsewhere that pair your domain with a password Check for leaked logins
site:s3.amazonaws.com "yourcompany" Files in public cloud storage with your company name Confirm the bucket is yours, then make it private
"example.com" (site:stackoverflow.com OR site:serverfault.com) Questions staff posted with internal host names, errors or code Ask the author to edit; rotate anything shared

A Monthly Dorking Routine

Dorking pays off when it runs on a schedule, with the same queries, by someone who owns the results. A monthly check suits most teams. Run it again after a website launch, a migration or a new file-sharing tool.

A monthly routine
  1. PrepareList every domain and subdomain you own, plus marker words such as project code names and “confidential”.
  2. SearchRun the cheat sheet one group at a time, first on Google and then on Bing.
  3. RecordWrite each hit down with its address, its owner and the type of data.
  4. Fix and confirmRemove or protect the file, then repeat the same query a week later to confirm it is gone.

Use more than one engine. The OWASP testing guide advises against limiting the test to one provider, because engines crawl at different times and rank pages differently. Bing also documents operators that Google does not, such as inbody: and ip:.

What to Write Down

A short log turns a search into work someone can close. One row per hit is enough.

Field Example
Date found 2026-11-10
Query site:example.com filetype:xlsx
Address https://files.example.com/q3-prices.xlsx
Type of data Customer price list
Owner Sales operations
Action and date closed File removed, URL removal requested, 2026-11-12

Can You Automate Google Dorks?

Running 40 queries on several domains by hand is slow, and scripting it is tempting. If your plan uses Google’s Custom Search JSON API, check its status first. Google says the API is closed to new customers and that existing customers have until 1 January 2027 to move to another solution. It names Vertex AI Search as an alternative for searching up to 50 domains.

For tools that wrap dorks together with other public sources, see our list of OSINT tools. Whatever you use, keep the query list in one place, so every run checks the same things.

Found An Exposure? Fix It In This Order

A hit is an exposure, not yet a confirmed breach. Work through these steps in order, because hiding the search result first leaves the file open to anyone who already has the link.

  1. Take the file offline or put it behind a login. A removed file should answer 404 or 410. This is the only step that stops new downloads.
  2. Rotate every secret the file held. Passwords, API keys, tokens and private keys count as burned once they have been public. Our page on how to respond to leaked credentials has the steps.
  3. Check your web server logs for earlier requests to the same address, so you know whether the data was taken.
  4. Remove the old result from Google. The Removals tool in Search Console blocks a URL for about six months. Google calls it a first step: the result can return unless the page is gone, password-protected or marked noindex.
  5. Fix the cause, such as the folder, upload setting or deploy script that published the file.

Noindex, Robots.txt or a Login?

These three are often confused, and the difference decides whether a file stays findable.

Control What it does Use it for
Login, or removal The file is no longer public Anything sensitive
noindex (meta tag or X-Robots-Tag header) Google drops the page from results once it crawls the rule Pages that must stay public but should not appear in search; Google calls it less secure than removal or a password
robots.txt Asks crawlers not to fetch addresses; the file itself is public Managing crawler load, never hiding data

Google is direct about robots.txt: it “is not a mechanism for keeping a web page out of Google”. A blocked address can still appear in results, just without a description. The file lives at the root of your site and must be publicly accessible, so anyone can read every path you list in it. For noindex to work, the page must not be blocked in robots.txt, because the crawler has to see the rule.

Turn Off Directory Listings and Strip Metadata

An “index of” hit means the web server lists a folder’s files. In Apache, the Indexes option makes mod_autoindex return a listing when a folder has no index file, and Options -Indexes turns it off. In nginx, autoindex is off by default, so a listing there usually means someone turned it on.

Documents leak on their own, too. Office files keep properties such as the author’s name, and Microsoft’s Document Inspector finds and removes this hidden data before you publish. For broader fixes to exposed services, see our page on how to respond to misconfigurations.

What Google Dorks Cannot See

A clean result does not mean you are safe. Google shows only what it has indexed and chosen to serve, and results change over time. Three kinds of exposure sit outside its view.

Systems That Are Open but Not Indexed

A database port, a forgotten VPN gateway or a test server can answer on the internet without any page linking to it. A web search will not list it, but a scanner can find it. Our EASM 101 guide explains how that kind of discovery works.

Public Code Repositories

MITRE tracks searches of public code as a separate technique, T1593.003, and says attackers look there for accidentally leaked credentials and API keys. Its examples include LAPSUS$, which searched public code repositories for exposed credentials. They also include HAFNIUM, which found leaked corporate credentials on public repositories including GitHub.

Careful organizations are not immune. In May 2026, CISA learned that a contractor had copied a CISA build and deployment repository, with admin and build credentials, to a public personal GitHub account. A researcher whose company scans public code found it, and CISA’s own account says the credentials were not used outside its environments. Our CISA contractor GitHub exposure page has the timeline.

GitHub’s own code search covers this gap for your organization. These queries use the org:, path: and NOT syntax from GitHub’s code search documentation:

  • org:your-org path:*.env finds .env files in your organization’s repositories.
  • org:your-org "BEGIN RSA PRIVATE KEY" finds private keys committed to code.
  • "example.com" password NOT org:your-org finds code outside your organization that names your domain next to a password.

Paste Sites, Chat Channels and Criminal Markets

Leaked data also travels through paste sites, Telegram channels and forums, which a site: query on your own domain never shows. In our Cybercrime Report 2026, credential files and pointers were the largest group in 80 hand-read Combolist posts, at 36.8% (a weighted estimate, interval 25.8 to 47.7). The posts come from Brandefense Blackhole, dated 1 January to 27 October 2026, in a collection dominated by Telegram.

Where Continuous Monitoring Fits

Dorking is a quick, cheap check that you run by hand. It cannot warn you when something new appears between two checks. Brandefense External Attack Surface Management watches the asset side of this list continuously: forgotten subdomains, exposed services, exposed admin panels and public storage.

For a first look at your own domain, the free Domain Scanner returns a risk grade in about 30 seconds. The grade is built from leaked credentials, phishing domains, dark web mentions and data sales.

Frequently Asked Questions

What is a Google dork?

A Google dork is a search query that uses advanced operators, such as site:, filetype: or intitle:, to find specific pages or files in Google's index. The same query helps attackers find mistakes and helps defenders find them first.

Does Google dorking still work in 2026?

Yes, with fewer operators than old guides list. Google's own pages document quotes, site:, the minus sign, before:, after: and filetype:, and Google has retired cache: and related:. Operators such as intitle:, inurl: and allintitle: are not in Google's documentation, so compare their results with a plain query before you rely on them.

Is Google dorking illegal?

Running a search is not illegal in itself. Using the results to open, download or log in to systems you have no permission to use can be. Limit dorking to your own organization, or work with written permission.

How do I remove a result from Google?

First remove the file or put it behind a login. Then use the Removals tool in Search Console, which blocks the URL for about six months. To keep it out after that, the page must be gone, password-protected or marked noindex.

Does robots.txt hide files from dorking?

No: Google says robots.txt is not a way to keep a page out of its results. The file is also public, so it lists the very paths you wanted to hide. Use a login, or noindex for pages that must stay public.

Sources

  1. Google Search Help: Refine Google searches
  2. Google Search Central: Overview of Google search operators
  3. Google Search Central: Introduction to robots.txt
  4. Google Search Central: Block search indexing with noindex
  5. Search Console Help: Removals tool
  6. OWASP WSTG-INFO-01: Search Engine Discovery Reconnaissance
  7. MITRE ATT&CK T1593.002: Search Engines
  8. Exploit Database: Google Hacking Database
ShareLinkedInX
Brandefense logo

Stay Ahead of Digital Threats.

Take control of your digital security with an exclusive demo of our AI-driven threat intelligence platform.

Open The Full Demo Form →