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: docs/custom-headers.md
+145-2Lines changed: 145 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -13,10 +13,12 @@ site_name: LambdaTest
13
13
slug: custom-headers/
14
14
---
15
15
16
-
# Bypassing Firewalls with CustomHeaders
16
+
# Overcoming Firewalls: A Deep Dive into LambdaTest's customHeaders and customUrlFilters Capabilities
17
17
---
18
18
19
-
With thе dеvеlopmеnt еnvironmеnt bеcoming incrеasingly complеx, thе tools wе usе for tеsting must also еvolvе to kееp pacе. Howеvеr, thеrе arе timеs whеn obstaclеs arisе that makе tеsting morе challеnging. Among thеsе obstaclеs is thе corporatе firеwall. Although thеsе firеwalls arе dеsignеd to kееp nеtworks sеcurе, thеy may occasionally intеrfеrе with thе tеsting procеss.
19
+
Every modern software company knows the importance of robust testing. As the development environment becomes increasingly complex, the tools we use for testing have to evolve to keep up. But sometimes, obstacles arise that make testing more difficult—one such obstacle being corporate firewalls. Designed to keep networks secure, these firewalls can occasionally interfere with your testing process.
20
+
21
+
However, the software testing industry is nothing if not innovative. One solution that's gaining traction is the use of custom headers to bypass firewalls. Specifically, we'll explore how LambdaTest's customHeaders and customUrlFilters capabilities give developers precise control over network requests and firewall bypassing during testing.
20
22
21
23
In this documеntation, wе will look at LambdaTеst CustomHеadеrs, a capability that allows you to add custom hеadеrs to your tеsts and bypass firеwall rеstrictions whilе pеrforming automatеd browser tеsting.
22
24
@@ -131,6 +133,147 @@ X-Session-ID: 1234567890 //custom header X-Session-ID to track user sessions.
131
133
X-Session-ID:1234567890//custom header X-Session-ID to track user sessions.
132
134
```
133
135
136
+
## LambdaTest: Testing Redefined
137
+
138
+
LambdaTest is a cloud-based cross-browser testing platform that allows you to perform both automated and live interactive testing on your web applications. The platform supports over 2,000 browser and operating system environments, making it a go-to tool for developers seeking comprehensive coverage.
139
+
140
+
## CustomHeader Capability: Your Key to Bypass Firewalls
141
+
142
+
Among LambdaTest's many features, the customHeaders capability stands out for teams dealing with firewall constraints. This capability allows you to inject custom headers into your HTTP requests, which can be used to bypass firewalls or simulate specific client behavior.
143
+
144
+
Custom headers are an integral part of HTTP requests and responses. They can carry essential information such as authentication tokens, user agents, API versioning, and more. By modifying these headers in your tests, you can adjust the network behavior of the browser and ensure compatibility with restricted environments.
145
+
146
+
## Targeted Control with customUrlFilters
147
+
148
+
To provide even more precise control, LambdaTest introduces the customUrlFilters capability. When used in conjunction with customHeaders, it allows you to specify exactly which URLs should receive the custom headers. This ensures that headers are not indiscriminately applied to every request—only those matching your defined filters will carry the custom headers.
149
+
150
+
### Key Behavior:
151
+
152
+
- If customHeaders are defined without customUrlFilters, the headers apply globally to all outgoing network requests.
153
+
- If customUrlFilters are provided, the customHeaders only apply to requests matching the filter criteria.
154
+
- Filters can be exact URLs or regular expressions, providing flexible targeting.
The headers `WebView: Enable` and `X-Custom-Token: secure-token-123` will only be applied to:
177
+
178
+
-`https://www.xhaus.com/headers`
179
+
- Any subpaths of domains like `https://api.example.com/`, etc.
180
+
181
+
A request to `https://lambdatest.github.io/sample-todo-app/` will not contain any of the custom headers since it is not listed in customUrlFilters.
182
+
183
+
## A Responsible Approach to Bypassing Firewalls
184
+
185
+
While the ability to add and control custom headers is powerful, it's crucial to use it responsibly. Always follow your organization's security and compliance policies. These capabilities are designed to facilitate secure, realistic testing—not to bypass security controls inappropriately.
186
+
187
+
## Use Cases
188
+
189
+
🔐 **User Identification and Session Management**
190
+
191
+
Send tokens or session IDs with headers like:
192
+
193
+
```java
194
+
X-Session-ID:1234567890
195
+
```
196
+
197
+
📦 **Content Negotiation**
198
+
199
+
Specify expected response formats:
200
+
201
+
```java
202
+
Accept: application/json
203
+
```
204
+
205
+
📉 **Rate Limiting**
206
+
207
+
Get limits and usage from APIs:
208
+
209
+
```java
210
+
X-RateLimit-Remaining:10
211
+
```
212
+
213
+
🐞 **Debugging and Performance Tracking**
214
+
215
+
Include trace info or timing metrics:
216
+
217
+
```java
218
+
X-Execution-Time: 150ms
219
+
```
220
+
221
+
🌍 **CORS (Cross-Origin Resource Sharing)**
222
+
223
+
Enable cross-origin requests:
224
+
225
+
```java
226
+
Access-Control-Allow-Origin:*
227
+
```
228
+
229
+
⚙️ **Custom Application Logic**
230
+
231
+
Pass app-level config:
232
+
233
+
```java
234
+
X-App-Version: v2.3.1
235
+
```
236
+
237
+
🔐 **Bypassing Firewalls/Proxies**
238
+
239
+
Mask the request with common headers:
240
+
241
+
```java
242
+
User-Agent:Mozilla/5.0 (WindowsNT10.0...)
243
+
```
244
+
245
+
🩺 **Server Health**
246
+
247
+
Return backend state:
248
+
249
+
```java
250
+
X-Server-Status:All systems operational
251
+
```
252
+
253
+
📈 **SEO Optimization**
254
+
255
+
Guide search engines:
256
+
257
+
```java
258
+
Link:<https://example.com/page>; rel="canonical"
259
+
```
260
+
261
+
🔬 **A/B Testing**
262
+
263
+
Track experimental groups:
264
+
265
+
```java
266
+
X-Experiment-ID: variant_b
267
+
```
268
+
269
+
## Conclusion
270
+
271
+
LambdaTest’s customHeaders and customUrlFilters capabilities empower you to simulate complex request scenarios, bypass firewalls responsibly, and selectively apply network rules—providing a flexible, developer-centric approach to browser testing.
272
+
273
+
By turning obstacles like firewalls into controllable conditions, LambdaTest not only simplifies testing but enhances the realism and effectiveness of your QA process.
LambdaTest Tunnel provides out-of-the-box support for HTTP/2, enabling users to test their web applications using the latest web protocol without any additional configuration. HTTP/2 support is essential for performance testing, as it includes improvements such as multiplexing, server push, and header compression. This document provides an overview of HTTP/2 support within LambdaTest Tunnel and its benefits.
24
+
25
+
## Key Features
26
+
27
+
-**Automatic HTTP/2 Proxying:** LambdaTest Tunnel automatically proxies both HTTP/1 and HTTP/2 traffic, simplifying the testing process for applications that use the latest web protocols.
28
+
-**Improved Performance Testing:** With HTTP/2 support, users can test their applications' performance characteristics, such as load times and response behavior, under conditions that mirror modern browser-server communication.
29
+
-**Seamless Integration:** No additional flags or configurations are required to enable HTTP/2 support, ensuring a smooth integration into existing testing workflows.
30
+
31
+
## Usage
32
+
33
+
Using HTTP/2 with LambdaTest Tunnel does not require any special configuration or flags. The tunnel automatically detects and proxies HTTP/2 traffic alongside HTTP/1, ensuring that your tests accurately reflect the behavior of web applications under real-world conditions.
34
+
35
+
To start using LambdaTest Tunnel with HTTP/2 support, simply initiate the tunnel as you normally would:
With the tunnel running, any HTTP/2 traffic between your local development environment and the LambdaTest cloud platform will be automatically proxied, allowing you to conduct thorough performance and functionality testing on your web applications.
42
+
43
+
## Conclusion
44
+
45
+
The inherent support for HTTP/2 in LambdaTest Tunnel is a testament to LambdaTest's commitment to providing developers and QA professionals with cutting-edge tools for web application testing. By automating the proxying of HTTP/2 traffic, LambdaTest Tunnel ensures that users can effortlessly test their applications in environments that utilize the latest web protocols, leading to faster, more reliable web applications.
Copy file name to clipboardExpand all lines: docs/selenium-geolocation-capabilities.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
id: selenium-geolocation-capabilities
3
3
title: Selenium Testing from different Geolocations
4
4
hide_title: false
5
-
sidebar_label: Geolocation
5
+
sidebar_label: IP Geolocation
6
6
description: Selenium Geolocation capabilities documentation provides you the insights about the countries and region with their timezone LambdaTest supports so that you can test your application in that particular timezone.
LambdaTest Tunnel offers comprehensive support for SOCKS5 proxy, enabling secure and private connections between your local development environment and the LambdaTest cloud platform. This support is crucial for users operating within networks that require advanced proxy configurations for security and privacy. This document outlines the key features, benefits, and usage of the SOCKS5 proxy support in LambdaTest Tunnel.
24
+
25
+
## Key Features
26
+
27
+
-**Enhanced Security:** By using a SOCKS5 proxy, LambdaTest Tunnel facilitates more secure data transmission by routing traffic through a proxy server, providing an additional layer of security.
28
+
-**Easy Configuration:** The LambdaTest Tunnel can be easily configured to use a SOCKS5 proxy with minimal setup, allowing for straightforward integration into your testing workflow.
29
+
-**Bypass Network Restrictions:** The SOCKS5 proxy support helps navigate corporate firewalls and network restrictions, enabling testing of local and internal web applications seamlessly.
30
+
31
+
## Usage
32
+
33
+
To use LambdaTest Tunnel with a SOCKS5 proxy, follow the steps outlined below:
34
+
35
+
1.**Start LambdaTest Tunnel:** Open your command-line interface (CLI) and navigate to the directory where the LambdaTest Tunnel is installed.
36
+
2.**Activate SOCKS5 Proxy:** Use the `--proxy-type` flag with the value `socks5` to specify the SOCKS5 proxy type for tunneling. Here is an example command:
Replace `YourLambdaTestUsername` and `YourLambdaTestAccessKey` with your actual LambdaTest credentials.
42
+
43
+
3.**Run Your Tests:** With the tunnel running and configured to use a SOCKS5 proxy, you can now execute your tests against local or internal web applications as if they were accessible on the public internet.
44
+
45
+
## Conclusion
46
+
47
+
The SOCKS5 proxy support in LambdaTest Tunnel is an essential feature for users who require secure, encrypted traffic transmission and the ability to bypass network restrictions during the testing process. By leveraging this feature, developers and QA professionals can ensure that their web applications are thoroughly tested in environments that closely mimic real-world scenarios.
0 commit comments