Google Dorking - Find Hidden Information with Search Engines
What is Google Dorking?
Google Dorking is the procedure of using advanced search operators to find information that shouldn't be public. Penetration testers and journalists use it daily to discover exposed databases, login pages, configuration files, security cameras.
⚠️ Read this first: Everything you search for today is publicly indexed by Google. You're not bypassing any security — you're just searching smarter than most people. However, accessing a system you find this way without permission is illegal. Search, observe, learn. Don't click on things you shouldn't.
First Operator: site:
Limit results to a single website.
site:stanford.edu
What this does: Shows only pages from stanford.edu. No subdomains excluded — everything under that domain.
Find Specific File Types: filetype:
site:stanford.edu filetype:pdf
What this does: Shows every PDF Google found on Stanford's domain.
Common file types:
filetype:pdffiletype:docxfiletype:xlsx— spreadsheets (sometimes contains passwords or user lists)filetype:pptfiletype:txt— plain text files (often config files or notes)filetype:sql— database dumps (extremely dangerous if exposed)
Search Inside Page Titles: intitle:
The page title is what appears in your browser tab. It's different from the body text, and you can search it specifically.
intitle:"index of" "parent directory"
What this does: Finds web servers with directory listing enabled — pages that show every file in a folder like a file browser. These often contain backups, old versions, or files that were never meant to be public.
Search Inside URLs: inurl:
Search for keywords that appear in the web address itself.
inurl:admin login
What this does: Finds login pages where the word "admin" appears in the URL. Many admin panels are hidden behind URLs like /admin, /administrator, /wp-admin, or /panel.
Common inurl targets:
inurl:admin— admin panelsinurl:phpmyadmin— database management interfacesinurl:config— configuration filesinurl:backup— backup files
The minus sign removes results containing a specific word or operator.
site:stanford.edu -inurl:www
What this does: Shows pages from stanford.edu that are NOT on www.stanford.edu.
Exact Phrase Matching: "quotes"
Putting words in quotes tells Google to find that exact phrase, not just those words scattered across a page.
site:stanford.edu "password" filetype:txt
What this does: Finds text files on Stanford's domain that contain the word "password." This occasionally turns up configuration files, notes, or scripts with credentials in them.
Combine Everything: Build a Real Dork
The power of dorking comes from combining operators. Here's a search that finds exposed database backup files:
intitle:"index of" "backup" filetype:sql
Or one that finds login pages on education sites:
site:.edu inurl:login
How Defenders Protect Against Dorking
If you run a website, you don't want your admin panel or backup files showing up in Google. Defenders use several techniques:
robots.txt— a file that tells search engines what not to index. But it's voluntary — malicious crawlers ignore it.- Authentication — put admin panels behind a login page. Google can't index what it can't reach.
- Noindex meta tags — HTML tags that tell Google to exclude a specific page.
- Regular dorking audits — search for your own domain with these operators and see what comes up. Better you find it than an attacker.