Skip to content

Deploying Whoogle

Introduction

Whoogle is a self-hosted, privacy-focused search engine that acts as a proxy for Google Search. It provides Google’s search results without the tracking, ads, JavaScript, and privacy-invasive features that come with using Google directly. Your searches are made from your server’s IP address, not your own.

Built with Python and Flask, Whoogle offers a clean, fast interface that works without JavaScript and respects your privacy completely.

Key features of Whoogle include:

  • No Ads: Google search results without advertisements
  • No Tracking: No cookies, no JavaScript tracking
  • No JavaScript Required: Full functionality without JS
  • IP Anonymity: Searches made from your server, not your IP
  • Customizable: Themes, languages, and search preferences
  • Bang Operators: DuckDuckGo-style !bangs for quick searches
  • View Images: Direct links to images without visiting sites
  • Dark Mode: Built-in dark theme support
  • Search Suggestions: Optional autocomplete suggestions
  • Tor Support: Route searches through Tor
  • Container Friendly: Designed for Docker deployment
  • Lightweight: Minimal resource usage

This guide walks you through deploying Whoogle on Klutch.sh using Docker for private Google searching.

Prerequisites

Before deploying Whoogle on Klutch.sh, ensure you have:

Repository Structure

Create a GitHub repository with the following structure:

whoogle-deploy/
├── Dockerfile
└── .dockerignore

Dockerfile

Create a Dockerfile in your repository:

FROM benbusby/whoogle-search:latest
# Web interface port
EXPOSE 5000
# The base image handles the entrypoint

Environment Variables

VariableRequiredDefaultDescription
WHOOGLE_CONFIG_COUNTRYNo-Default country for search results
WHOOGLE_CONFIG_LANGUAGENo-Interface language
WHOOGLE_CONFIG_SEARCH_LANGUAGENo-Search results language
WHOOGLE_CONFIG_THEMENosystemTheme (dark, light, system)
WHOOGLE_CONFIG_SAFENooffSafe search (on, moderate, off)
WHOOGLE_CONFIG_ALTSNofalseUse alternative frontends for links
WHOOGLE_CONFIG_TORNofalseUse Tor for requests
WHOOGLE_CONFIG_NEW_TABNofalseOpen links in new tab
WHOOGLE_CONFIG_DISABLENo-Disable specific features
WHOOGLE_ALT_TWNonitter.netAlternative Twitter frontend
WHOOGLE_ALT_YTNoinvidious.ioAlternative YouTube frontend
WHOOGLE_ALT_RDNolibreddit.spike.codesAlternative Reddit frontend
WHOOGLE_ALT_IGNobibliogram.artAlternative Instagram frontend

Deployment on Klutch.sh

  1. Push your Dockerfile to your GitHub repository.
  2. Log in to Klutch.sh and create a new project.
  3. Create a new app within your project and connect your GitHub repository containing the Dockerfile.
  4. Configure the deployment settings: - Select **HTTP** as the traffic type - Set the internal port to **5000**
  5. Add environment variables (all optional): - `WHOOGLE_CONFIG_THEME`: Your preferred theme - `WHOOGLE_CONFIG_COUNTRY`: Your country code (e.g., `US`) - `WHOOGLE_CONFIG_LANGUAGE`: Your language (e.g., `lang_en`)
  6. Click **Deploy** and wait for the build to complete.
  7. Access your Whoogle instance and start searching privately.

Configuration

Setting as Default Search Engine

Add Whoogle as your browser’s default search engine:

https://your-whoogle.klutch.sh/search?q=%s

Using Alternative Frontends

Whoogle can redirect links to privacy-respecting alternatives:

  • Twitter links go to Nitter
  • YouTube links go to Invidious
  • Reddit links go to Libreddit

Enable this by setting WHOOGLE_CONFIG_ALTS=true.

Bang Commands

Use DuckDuckGo-style bangs:

  • !w Python - Search Wikipedia
  • !gh Docker - Search GitHub
  • !so JavaScript - Search Stack Overflow

Usage Tips

Click on images to view them directly without visiting the source website.

Quick Settings

Access the gear icon to adjust settings on-the-fly without environment variables.

Troubleshooting

Search Results Not Loading

Google may occasionally block requests. Wait a few minutes and try again. Consider enabling Tor for more anonymity.

Rate Limiting

Heavy usage may trigger Google’s rate limiting. Spread searches over time or deploy multiple instances.

CAPTCHAs Appearing

If you see CAPTCHAs, Google has detected unusual traffic. Using Tor or waiting can help.

Security Considerations

  • Access Control: Consider adding authentication if the instance is public
  • Tor Usage: Enable Tor for additional privacy
  • No Logging: Whoogle does not log searches, but your server logs may

Additional Resources