You can block auto-downloads from a specific website on Windows, macOS, Linux, and ChromeOS by adjusting browser settings or using firewall rules:
For Google Chrome (Windows, macOS, Linux, ChromeOS)
- Open Chrome.
- Click the three-dot menu in the top-right corner and select Settings.
- Navigate to Privacy and security → Site settings.
- Scroll down to Additional permissions → Automatic downloads.
- Click Add under the Block section.
- Enter the website URL (e.g., https://example.com) and click Add.
For Microsoft Edge (Windows, macOS, Linux)
- Open Edge.
- Click the three-dot menu → Settings.
- Go to Cookies and site permissions → Automatic downloads.
- Toggle “Ask when a site tries to download multiple files automatically” to On.
- Click Add under the Block section and enter the website URL.
For Mozilla Firefox (Windows, macOS, Linux)
- Open Firefox.
- Type about:config in the address bar and press Enter.
- Search for browser.download.autohideButton.
- Set it to false (optional: this keeps the download button visible).
- Install an extension like uBlock Origin to block auto-download scripts for a specific site.
For Safari (macOS)
- Open Safari.
- Click Safari → Settings (or Preferences).
- Go to the Websites tab → Downloads.
- Locate the website and set it to Deny.
- If the site is not listed, visit it first, then return to this setting.
For Windows (System-Level Block)
If you want a more aggressive block, you can use Windows Defender Firewall:
- Open Windows Security → Firewall & network protection.
- Click Advanced settings.
- Select Outbound Rules → New Rule.
- Choose Custom → This program path → Browse to the browser’s .exe file.
- Click Next → Select Block the connection.
- Apply the rule to Public, Private, and Domain networks.
- Under Which IP addresses this rule applies to, add the website’s IP address (use nslookup example.com in Command Prompt to find it).
For Linux (Using UFW Firewall)
- Open a terminal and run: sudo ufw deny out to example.com
- To find the site’s IP, use: nslookup example.com
- If using a hosts file block, add the domain to /etc/hosts: sudo nano /etc/hosts
Add: 127.0.0.1 example.com
Save and exit.
For ChromeOS (Chromebook)
- Open Chrome and go to chrome://settings/content/automaticDownloads.
- Toggle “Ask when a site tries to download multiple files automatically” to On.
- Add the unwanted site under the Block list.