You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
5. [Using with Firefox Containers](#using-with-firefox-containers)
51
52
6. [Reverse Proxying](#reverse-proxying)
52
53
1. [Nginx](#nginx)
53
-
7.[Contributing](#contributing)
54
-
8.[FAQ](#faq)
55
-
9.[Public Instances](#public-instances)
56
-
10.[Screenshots](#screenshots)
54
+
8.[Contributing](#contributing)
55
+
9.[FAQ](#faq)
56
+
10.[Public Instances](#public-instances)
57
+
11.[Screenshots](#screenshots)
57
58
58
59
## Features
59
60
- No ads or sponsored content
@@ -475,7 +476,6 @@ There are a few optional environment variables available for customizing a Whoog
475
476
| WHOOGLE_AUTOCOMPLETE | Controls visibility of autocomplete/search suggestions. Default on -- use '0' to disable. |
476
477
| WHOOGLE_MINIMAL | Remove everything except basic result cards from all search queries. |
477
478
| WHOOGLE_CSP | Sets a default set of 'Content-Security-Policy' headers |
478
-
| WHOOGLE_RESULTS_PER_PAGE | Set the number of results per page |
479
479
| WHOOGLE_TOR_SERVICE | Enable/disable the Tor service on startup. Default on -- use '0' to disable. |
480
480
| WHOOGLE_TOR_USE_PASS | Use password authentication for tor control port. |
481
481
| WHOOGLE_TOR_CONF | The absolute path to the config file containing the password for the tor control port. Default: ./misc/tor/control.conf WHOOGLE_TOR_PASS must be 1 for this to work.|
@@ -512,6 +512,103 @@ These environment variables allow setting default config values, but can be over
512
512
| WHOOGLE_CONFIG_ANON_VIEW | Include the "anonymous view" option for each search result |
513
513
| WHOOGLE_CONFIG_SHOW_USER_AGENT | Display the User Agent string used for search in results footer |
514
514
515
+
### Google Custom Search (BYOK) Environment Variables
516
+
517
+
These environment variables configure the "Bring Your Own Key" feature for Google Custom Search API:
| WHOOGLE_CSE_API_KEY | Your Google API key with Custom Search API enabled |
522
+
| WHOOGLE_CSE_ID | Your Custom Search Engine ID (cx parameter) |
523
+
| WHOOGLE_USE_CSE | Enable Custom Search API by default (set to '1' to enable) |
524
+
525
+
## Google Custom Search (BYOK)
526
+
527
+
If Google blocks traditional search scraping (captchas, IP bans), you can use your own Google Custom Search Engine credentials as a fallback. This uses Google's official API with your own quota.
528
+
529
+
### Why Use This?
530
+
531
+
-**Reliability**: Official API never gets blocked or rate-limited (within quota)
532
+
-**Speed**: Direct JSON responses are faster than HTML scraping
533
+
-**Fallback**: Works when all scraping workarounds fail
534
+
-**Privacy**: Your searches still don't go through third parties—they go directly to Google with your own API key
0 commit comments