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
Copy file name to clipboardExpand all lines: README.md
+122Lines changed: 122 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,23 @@ If you are using a password protected SearxNG instance you can set a username an
76
76
77
77
**Note:** Authentication is only required for password-protected SearxNG instances. See the usage examples below for how to configure authentication with different installation methods.
78
78
79
+
### Custom User-Agent (Optional)
80
+
81
+
You can set a custom User-Agent header for requests to the SearXNG instance:
82
+
83
+
- Set the `USER_AGENT` environment variable to your desired User-Agent string
84
+
85
+
**Note:** If `USER_AGENT` is not set, no User-Agent header will be added to requests. This is useful when the SearXNG instance requires a specific User-Agent or when you want to identify your requests. See the usage examples below for how to configure the User-Agent with different installation methods.
86
+
87
+
**Examples:**
88
+
```bash
89
+
# Custom User-Agent
90
+
export USER_AGENT="MyBot/1.0"
91
+
92
+
# Browser-like User-Agent
93
+
export USER_AGENT="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"
94
+
```
95
+
79
96
### Proxy Support (Optional)
80
97
81
98
The server supports HTTP and HTTPS proxies through environment variables. This is useful when running behind corporate firewalls or when you need to route traffic through a specific proxy server.
0 commit comments