Google Hacking: Search Operators and the GHDB, Used Safely

Google hacking, or Google dorking, means combining search operators such as site:, filetype: and intitle: to find pages that were never meant to be public. The Google Hacking Database (GHDB), hosted on Exploit-DB, collects such queries by category.

Mar 29, 2025 - 13:35
Updated: 
111.9k

Security Tools, Authorized Labs & CTFs in Cybersecurity & Ethical Hacking · Explainer

Ethical Hacking, Penetration Testing

Google Hacking: Search Operators and the GHDB, Used Safely

Quick answer: Google hacking, or Google dorking, means combining search operators such as site:, filetype: and intitle: to find pages that were never meant to be public. The Google Hacking Database (GHDB), hosted on Exploit-DB, collects such queries by category. Used safely, these techniques become an exposure audit: you search only your own domains, under a written policy, record what you find, fix it at the source and ask search engines to drop cached copies. Running the same queries to open or download other organisations’ exposed files is a different matter and can breach the IT Act. This guide gives a simple policy for authorised audits.

Key takeaways

  • Search operators are ordinary features; how you use the results is what matters.
  • Limit every audit query to domains you own or are authorised to assess.
  • Treat the GHDB as a checklist of categories, not a list of targets.
  • Fix leaks at the source first, then request removal from search results.
  • Keep evidence and approvals, as for any security test.

Table of Contents

What Is Google Hacking?

Search engines index whatever their crawlers can reach. Misconfigured servers, open directories and forgotten documents end up in results. MITRE lists attacker use of search engines as T1593.002, and the OWASP Web Security Testing Guide includes search engine discovery as a test step. Defenders should do it first. For a full operator reference, see our Google dorking guide.

Which Operators Matter for an Audit?

OperatorAudit use
site:Restrict results to your domain or subdomains
filetype:Find indexed documents such as PDF, XLSX or LOG files
intitle:Find pages with telling titles such as directory listings
- (minus)Exclude known, expected pages to reduce noise
"exact phrase"Find internal labels such as a classification marking

Google documents supported operators on its Search Help page; some older operators have been retired, so test before relying on one.

How Should You Use the GHDB?

The GHDB groups queries into categories such as files containing passwords, sensitive directories and vulnerable servers. Use the categories to plan which kinds of exposure to check on your own estate, and always add your site: restriction. Our GHDB explainer covers its history and structure.

What Should an Exposure Audit Policy Say?

Policy elementExample content
ScopeList of owned domains and subdomains
ApprovalNamed owner signs off; dates recorded
Allowed actionsSearch and view result snippets; open only own pages
Data handlingScreenshots stored encrypted; personal data minimised
ReportingFindings to system owner with a fix deadline
FrequencyQuarterly and after major releases

This mirrors the planning stage in NIST SP 800-115.

How Do You Run the Audit?

Start broad, then narrow. Example queries for your own domain:

site:example.com filetype:pdf "internal use only"
site:example.com intitle:"index of"
site:example.com -site:www.example.com

The last query reveals indexed subdomains you may have forgotten. Record each finding with the URL, date, screenshot and owner. Repeat on other search engines, since indexes differ.

How Do You Fix and Remove Findings?

  1. Remove or protect the file on the server, or add authentication.
  2. Disable directory listing on the web server.
  3. Use a noindex header for pages that must stay public but unlisted.
  4. Request removal of outdated results through Google Search Central.
  5. Rotate any credentials or keys that were exposed.

Where Are the Legal and Ethical Lines?

Searching is legal. Downloading or using data from another organisation’s systems without permission can fall under Sections 43 and 66 of the IT Act, 2000. If you stumble on someone else’s leak, do not download it; report it to the organisation or to CERT-In. To learn authorised reconnaissance, ask about our ethical hacking training.

References

Frequently Asked Questions

Using advanced search operators to find pages and files that were indexed by mistake, such as open directories, documents or configuration files.

Searching is legal, but opening, downloading or using another organisation’s exposed data without permission can breach the IT Act.

The Google Hacking Database on Exploit-DB, a categorised collection of search queries that reveal common types of exposed information.

Restrict every query to your domains with site:, check for documents, directory listings and forgotten subdomains, then record and fix findings.

Remove or protect it on your server first, then use Google Search Central removal tools to request that outdated results are dropped.

No. Some have been retired or behave inconsistently, so check Google’s current Search Help page and test results before relying on them.

Do not download it. Notify the organisation through a security contact or report it to CERT-In so it can be fixed safely.

Quarterly is a reasonable baseline, plus after major website releases, migrations or when new subdomains and storage services go live.

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Wow Wow 0
Sad Sad 0
Angry Angry 0
Vaishnavi

Vaishnavi is a skilled tech professional at the Ethical Hacking Training Institute in Pune, responsible for managing and optimizing the technical infrastructure that supports advanced cybersecurity education. With deep expertise in network security, backend operations, and system performance, she ensures that practical labs, online modules, and assessments run smoothly and securely. Her behind-the-scenes contributions play a vital role in delivering a seamless and secure learning experience for aspiring ethical hackers.