The Wayback Machine - https://web.archive.org/web/20260507201517/https://www.geeksforgeeks.org/ethical-hacking/what-is-google-dorking/

Google Dorking

Last Updated : 27 Mar, 2026

Google Dorking, also known as Google Hacking, is a technique that uses advanced Google search operators to discover sensitive information that may be publicly exposed on the internet. It helps cybersecurity professionals identify security misconfigurations, hidden files, or vulnerable systems during the reconnaissance phase of security testing.

  • Uses advanced Google search operators (e.g., site:, filetype:, intitle:) to filter search results.
  • Helps discover sensitive files, login pages, and exposed directories indexed by search engines.
  • Commonly used in cybersecurity, penetration testing, and ethical hacking for information gathering.
  • Assists security researchers in identifying vulnerabilities and misconfigured systems before attackers exploit them.

Google Dork

A Google Dork is a specialized search query that uses advanced Google search operators to refine search results and locate specific information on the internet. These queries help users quickly identify particular files, pages, or data that may be publicly accessible.

Examples of information that can be found using Google Dorks:

  • Specific file types such as PDF, DOC, XLS, or SQL files.
  • Login pages or admin panels of websites.
  • Sensitive documents and configuration files accidentally exposed online.
  • Directory listings, error messages, and database backups are indexed by search engines.

Example:

site: geeksforgeeks.com filetype:pdf

This query searches for PDF files available only within the domain geeksforgeeks.org

file

Common Google Dork Operators

1. site:

The site: operator restricts search results to a specific website or domain. It is useful for finding indexed pages within a particular site.

Example:

site: geeksforgeeks.org
  • This query returns only pages indexed from the domain geeksforgeeks.org

You can also combine it with other operators:

site: geeksforgeeks.org login
  • This searches for login-related pages within the geeksforgeeks.org domain.

2. filetype:

The filetype: operator searches for specific types of files available on the internet. It is commonly used to locate documents, reports, backups, or data files.

Example:

filetype:pdf "confidential"
  • This query finds PDF documents that contain the word "confidential".

Common file types used in Google Dorking:

  • pdf: documents
  • doc / docx: Word files
  • xls / xlsx: Excel spreadsheets
  • txt: text files
  • log: system logs
  • sql: database backup files

3. intitle:

The intitle: operator searches for keywords within the title of a webpage. It helps identify pages with specific titles.

Example 1:

intitle:"index of"

This may reveal open directory listings.

Example 2:

intitle:"index of" "backup"
  • This may reveal directories containing backup files.
file

4. inurl:

The inurl: operator searches for specific keywords within the URL of a webpage. It is useful for locating certain pages such as admin panels or login portals.

Example 1:

inurl:admin
  • This may reveal admin control panels.

Example 2:

inurl:login.php
  • This finds pages that contain login.php in their URL.

5. intext:

The intext: operator searches for specific words or phrases inside the content of webpages.

Example:

intext:"username" "password"
  • This searches for pages containing both the words username and password in the page content.

6. cache:

The cache: operator displays the cached version of a webpage stored by Google. This can help view pages even if they are temporarily unavailable.

Example:

cache:example.com
  • This shows Google’s stored snapshot of the website example.com.

The link: operator shows pages that link to a specific website or webpage.

Example:

cache:example.com
  • This query lists webpages that contain links pointing to example.com.

Operators in Google Dorking

Apart from the above-mentioned operator, there are also some logical operators which can be used to filter the search engine results according to the need. You will definitely get the stuff on seeing these operators. Here are these:

OperatorDescriptionExample
ORThis self-explanatory operator searches for a given search term OR an equivalent term.site:geeksforgeeks.org | site:www.geeksforgeeks.org
ANDSimilarly, this operator searches for a given search term AND an equivalent term.site:geeksforgeeks.com & site:www.geeksforgeeks.org
Search TermThis operator only looks for the precise phrase within speech marks."GeeksForGeeks POTD"
Glob Pattern (*)This works best when you don't know what goes on in the place of the asterisk (*).site: *.geeksforgeeks.org
Including ResultsWill include the results.site:linkedin.com +site:linkedin.*
Exclude ResultsWill exclude the results.site:linkedin.* -site:linkedin.com
  • Google search operators help refine search results and find specific information more efficiently.
  • They can be combined with Google Dorks to discover publicly available data indexed by search engines.
  • Attackers may misuse this technique to find sensitive information like login pages, files, or credentials.
  • Therefore, organizations should secure sensitive data and prevent it from being publicly accessible online.

Use of Google Dorking in Cybersecurity

Google Dorking is an important technique during the reconnaissance phase of penetration testing. Security professionals use it to:

  • Discover exposed sensitive files
  • Identify vulnerable web applications
  • Locate login portals
  • Find misconfigured servers
  • Identify exposed databases
  • Gather intelligence about a target organization

Prevention From Google Dorking

As an owner/developer, you will wish your website to be secure from google dorking. You can do so by following the below-mentioned stuff:

  • Use Robots.txt: You may tell search engines not to index particular web pages or directories on your website using a robots.txt file.
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
// This meta tag will prevent all
robots from scanning your website
  • Disable Directory Indexing: Web servers frequently permit directory crawling by default, allowing anybody to see a directory's contents. You can stop it from happening by turning off directory indexing in your web server settings.
  • Use a Firewall: You can use a WAF (Web Application Firewall) to enhance the security of your website. It will provide you with an extra layer of security.
  • Use Access Control: You can use authentication or MFA (Multi-Factor Authentication) on the pages if you don't want let anyone to have access. It will prevent unauthorized access to the website.

Google Dorking Tools and Automation

Performing Google Dorking manually is possible, but cybersecurity experts and ethical hackers use powerful tools to automate it for quicker vulnerability scanning.

Top Google Dorking Tools:

  • Google Hacking Database (GHDB): A set of premade Google Dork queries that are utilized by security experts during OSINT and vulnerability scanning.
  • DorkScanner: An automated tool that scans Google search results for exposed information, such as login pages, admin panels, and security flaws
  • SQLmap: It is a powerful tool that helps to exploit SQL injection vulnerabilities using Google Dorks to find vulnerable databases.
  • GoogD0rker: A script that makes it easier to search for indexed sensitive files such as password documents, API keys and other exposed configurations.
  • Google Dork Automation (GDA): A framework for scraping Google search results, identifying vulnerabilities, and automating OSINT tasks.

Google Hacking Database (GHDB)

The Google Hacking Database (GHDB) is a collection of advanced Google search queries, known as Google Dorks, used to identify sensitive information and potential vulnerabilities exposed on the internet. It is maintained by the cybersecurity community and hosted on Exploit Database, where researchers regularly contribute new dorks to support security testing and research.

Common GHDB Categories:

  • Files containing passwords: Documents or files that may expose login credentials.
  • Sensitive directories: Open folders containing backups, logs, or configuration files.
  • Login portals: Administrative or authentication pages of websites and applications.
  • Vulnerable servers: Servers that may reveal outdated software or security misconfigurations.
  • Network devices: Web interfaces of routers, cameras, and other connected devices.
  • Database files: Exposed database backups such as SQL dumps or configuration files.

The GHDB is widely used by ethical hackers and penetration testers to identify potential security risks and help organizations secure their systems before malicious attackers can exploit them.

Examples

Below are some example Google Dorks from GHDB that demonstrate how sensitive information or specific resources can be discovered using advanced search operators.

1. Finding exposed password files

Filetype:txt "password"
  • This query searches for text files that contain the word "password", which may reveal exposed credentials.

2. Finding open directory listings

intitle:"index of" "backup"
  • This may reveal public directories containing backup files.

3. Finding login pages

inurl:admin login
  • This searches for admin login portals of websites.

4. Finding database backup files

filetype:sql "dump"
  • This query looks for SQL database dump files that may be publicly accessible.

5. Finding network device interfaces

intitle:"webcamXP 5"
  • This may reveal webcam or network camera interfaces available online.
Comment