Skip to main content
Scraper API

How to Deactivate Proxy Settings on Windows, macOS, and Browsers (2026)

8 min read

Comprehensive Guide to Deactivating Proxy Settings

In the realm of web scraping and network management, a proxy server acts as an intermediary. However, there are critical scenarios where maintaining an active proxy degrades performance or blocks legitimate traffic. Whether you are troubleshooting connection errors, preparing a clean environment for development, or simply need to revert to a direct connection for speed testing, knowing how to properly deactivate a proxy is a fundamental skill.

This guide covers the removal of manual configurations, PAC scripts, and environment variables across all major operating systems and browsers in 2025.

---

Understanding Proxy States: System vs. Browser

Before deactivating, it is vital to understand *where* the proxy is enabled.

1. System-Level Proxies: Configured in the OS (Windows/Mac/Linux). All browsers (Chrome, Edge, Safari) inherit these settings unless configured otherwise. 2. Browser-Level Proxies: Configured specifically within the application (common in Firefox). 3. Environment Variables: Set in the terminal (HTTP_PROXY, HTTPS_PROXY). These affect command-line tools like Python, Curl, and Git.

---

Method 1: How to Deactivate Proxy on Windows 10/11

Windows provides a centralized hub for network settings. If your browser is routing traffic through a proxy without a specific browser extension, it is likely set here.

Step-by-Step Manual Deactivation

1. Open the Start Menu and type "Proxy Settings". 2. Select Proxy settings from the results (System Settings). 3. Under the Manual proxy setup section, locate the "Use a proxy server" toggle. 4. Toggle the switch to OFF. 5. *Expert Tip:* While you are here, ensure "Automatically detect settings" is ON. This allows Windows to intelligently determine if a proxy is needed locally (common in corporate environments) without forcing a global route.

Deactivating via Command Line (PowerShell)

For automation experts, using the registry is faster. *Warning: Editing the registry requires care.*

Command to disable proxy server settings via Registry

Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name ProxyEnable -Value 0

Clear the server address

Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name ProxyServer -Value ""

---

Method 2: How to Deactivate Proxy on macOS (Sonoma & Sequoia)

macOS proxy settings are configured per network interface (Wi-Fi vs. Ethernet). You must deactivate them on the specific interface you are currently using.

Graphical User Interface (GUI)

1. Click the Apple Icon > System Settings. 2. In the sidebar, select Network. 3. Select the active service on the right (e.g., Wi-Fi or Ethernet). 4. Click the Details... button. 5. Select the Proxies tab. 6. You will see a list of protocols (HTTP, HTTPS, FTP, SOCKS). To fully deactivate: * Uncheck "Auto-Proxy Discovery". * Uncheck "Automatic Proxy Configuration". * Uncheck all specific protocols (Web Proxy (HTTP), Secure Web Proxy (HTTPS)). 7. Click OK, then click Apply.

---

Method 3: Deactivating Proxies in Web Browsers

Google Chrome & Microsoft Edge

Chrome and Edge do not maintain their own proxy settings files; they are "chromium-based" and adhere strictly to the operating system's configuration. If you need to deactivate the proxy in Chrome, follow the Windows or macOS instructions above.

*However*, if you are using a Chrome Extension (like a scraping tool or VPN), you must deactivate the extension:

1. Go to chrome://extensions/. 2. Find the proxy or VPN extension. 3. Toggle the switch to Remove or turn it off.

Mozilla Firefox

Firefox is the outlier; it allows independent proxy configuration. You may have a system proxy active but Firefox set to 'No Proxy', or vice versa.

Steps to Deactivate: 1. Open the Menu (three horizontal lines) > Settings. 2. In the General panel, scroll to the bottom and click Network Settings > Settings.... 3. Select the radio button for No proxy. 4. Click OK.

Comparison: Browser Proxy Inheritance

| Feature | Chrome / Edge / Safari | Firefox | | :--- | :--- | :--- | | Default Behavior | Inherits System Proxy Settings | Inherits System Proxy Settings | | Override Capability | No (requires OS change or Extension) | Yes (Built-in settings panel) | | PAC Script Support | Yes (System Level) | Yes (Browser Level) |

---

Method 4: Deactivating Environment Variables (For Developers)\n

If you are a developer running Python scripts, CURL, or Node.js, your applications may ignore the browser/OS GUI settings and instead read Environment Variables. Even if you disable the proxy in Windows Settings, your terminal might still try to route traffic through a dead proxy.

Checking and Removing on Windows

1. Search for "Edit the system environment variables" in the Start menu. 2. Click the Environment Variables button. 3. Look under User variables and System variables for: * HTTP_PROXY * HTTPS_PROXY * NO_PROXY 4. Select these entries and click Delete.

Checking and Removing on macOS / Linux

Open your terminal and check the configuration:

Check current proxy variables

echo $HTTP_PROXY echo $HTTPS_PROXY

To deactivate these for the current session:

unset HTTP_PROXY

unset HTTPS_PROXY unset http_proxy unset https_proxy

To make the change permanent, you must edit your shell configuration file (e.g., ~/.zshrc or ~/.bash_profile) and remove the lines exporting these variables.

Python Example: Ensuring No Proxy is Used

If you are writing a scraper and want to ensure it ignores any system proxy, you can programmatically deactivate it within your script:

import os

import requests

Force the session to ignore system environment variables

by setting the proxies dict to None or empty

def get_direct_connection(url): # 1. Clear env vars programmatically (optional, not always recommended) os.environ.pop('http_proxy', None) os.environ.pop('https_proxy', None)

# 2. Explicitly tell requests to use no proxy response = requests.get(url, proxies={"http": None, "https": None}) return response.status_code

Usage

status = get_direct_connection('https://httpbin.org/ip') print(f"Connection Status: {status}")

---

Troubleshooting: Why Won't the Proxy Deactivate?

You have followed the steps, but the IP address is still masked. Here is what is likely happening:

1. The "Auto-Config" URL (PAC File) You may have unchecked "Manual Proxy," but left "Automatic Proxy Configuration" checked. If your organization or ISP uses a Proxy Auto-Config (PAC) file, your computer automatically decides which sites go through a proxy and which do not.

  • Solution: Uncheck "Automatic Proxy Configuration" in your OS network settings to fully deactivate this logic.
  • 2. VPN Software Running in Background Most VPNs act as a system-wide proxy. Even if the VPN GUI says "Disconnected," the network adapter (TAP adapter) might still be active in the OS background.

  • Solution: Open Task Manager (Windows) or Activity Monitor (Mac) and look for processes related to your VPN client. End them completely.
  • 3. Malware or Browser Hijackers Some malicious extensions force traffic through a proxy server to intercept data.

  • Solution: Reset your browser to factory settings. This clears all extensions and proxy overrides.

---

Summary Table: How to Deactivate Proxy

| Platform | Path to Deactivation | Action Required | | :--- | :--- | :--- | | Windows 11 | Settings > Network & Internet > Proxy | Toggle "Use a proxy server" to OFF | | macOS | System Settings > Network > Details > Proxies | Uncheck all boxes (HTTP, SOCKS, Auto) | | Firefox | Menu > Settings > Network Settings | Select No Proxy | | Chrome | (OS Dependent) | Change OS Settings or Remove Extension | | Linux/Terminal| Terminal | unset http_proxy & unset https_proxy |

Deactivating a proxy restores your machine to its raw, direct connection state. This is essential for accurate speed testing, accessing local network resources that block proxies, or simply isolating network connectivity issues.

Share: