The HTTP Proxy Stripper is a robust and lightweight Node.js application designed to optimize and secure your web browsing experience. Acting as a dynamic web proxy, it specializes in modifying incoming HTTP requests. The core functionality revolves around the removal of certain query parameters that are often used for tracking and marketing analytics, such as Urchin Tracking Module (UTM) parameters. By stripping these parameters, the proxy not only streamlines URL structures but also enhances user privacy and data protection.
- Dynamic Proxy Capabilities: The application efficiently handles requests to any server, ensuring flexibility and broad applicability.
- Selective Query Parameter Removal: Targets and removes specific query parameters predefined in the
paramsToRemovearray, including:utm_sourceutm_mediumutm_campaignutm_termutm_contentrefref_tag
- Enhanced User Privacy: By removing tracking parameters, it helps in maintaining the privacy of the users, preventing unnecessary data exposure.
- Lightweight and User-Friendly: Developed using Node.js for minimal resource consumption, and designed for ease of setup and use.
- Security Enhanced with Helmet: Implements Helmet for setting various HTTP headers, improving security against common web vulnerabilities.
- Node.js
- npm (Node Package Manager)
-
Clone the repository:
git clone https://github.com/lucaspretti/http-proxy-stripper
-
Navigate to the cloned directory:
cd http-proxy-stripper -
Install the necessary packages:
npm install
To start the proxy server, run the following command:
node proxy-server.jsThe server will begin listening on localhost at port 3000, dynamically processing and modifying incoming HTTP requests as configured.
The server will start on localhost at port 3000.
To route your web traffic through the proxy server, you need to configure your browser's proxy settings. Here's how you can do it for different browsers:
- Go to Settings > Advanced > System > Open your computer’s proxy settings.
- Under "Manual proxy setup," turn on "Use a proxy server."
- Enter
localhostin the "Address" field and3000in the "Port" field. - Save your changes.
- Go to Options > General > Network Settings.
- Select "Manual proxy configuration."
- Enter
localhostin the "HTTP Proxy" field and3000in the "Port" field. - Check "Also use this proxy for HTTPS."
- Click "OK" to save your changes.
For other browsers, the steps are similar. You generally need to find the network or proxy settings and then specify localhost as the proxy address and 3000 as the port.
Detailed instructions for configuring your browser or HTTP client to use this proxy are included in the subsequent sections of this README. Once set up, you can test the functionality by navigating to URLs containing the specified query parameters and observing their removal.
This proxy server is intended for development or internal use. Deploying it in a production environment may require additional security measures.