Firefox Browser Add-ons
  • Extensions
  • Themes
    • for Firefox
    • Dictionaries & Language Packs
    • Other Browser Sites
    • Add-ons for Android
Log in
Preview of fhosts

fhosts by Amal Graafstra

Override DNS resolution for specific domains on a per-tab basis for local development or staging environments - test your app with production hostnames without editing system files.

0 (0 reviews)0 (0 reviews)
Download Firefox and get the extension
Download file

Extension Metadata

Screenshots
Settings
About this extension
fhosts lets you override hostname-to-IP resolution for any domain, directly in Firefox, on a per-tab basis. Perfect for staging or local web development when you need to test with production hostnames.

Why use fhosts?

When developing, you often need production hostnames to work correctly - for cookies, CORS policies, OAuth callbacks, or SSL certificates. Instead of editing your system hosts file (which affects your entire computer), fhosts lets you:

• Map any hostname to any IP address (e.g., myapp.com → 127.0.0.1)
• Enable overrides per-tab - test local and production side-by-side
• Keep your system hosts file clean

How it works
  1. Add hostname mappings (e.g., example.com → 127.0.0.1)
  2. Click the toggle to enable overrides for the current tab
  3. Navigate to your mapped domain - requests route to your specified IP

The toolbar icon turns cyan when overrides are active for the active tab.

Requirements

This extension requires a companion proxy helper to perform the actual IP substitution. Download the installer from the GitHub releases page: https://github.com/amalg/fhosts/releases

HTTPS Note

When accessing HTTPS sites, you'll see certificate warnings since the certificate won't match the IP. For local development, use tools like mkcert for local SSL certificates.

Open Source

fhosts is open source under the MIT license. View the code, report issues, or contribute at: https://github.com/amalg/fhosts
Rated 0 by 0 reviewers
Log in to rate this extension
There are no ratings yet

Star rating saved

5
0
4
0
3
0
2
0
1
0
No reviews yet
Permissions and data

Required permissions:

  • Exchange messages with programs other than Firefox
  • Control browser proxy settings
  • Access browser tabs

Optional permissions:

  • Access your data for all websites

Data collection:

  • The developer says this extension doesn't require data collection.
Learn more
More information
Add-on Links
  • Homepage
  • Support site
  • Support Email
Version
1.0.1
Size
26.51 KB
Last updated
24 days ago (Dec 4, 2025)
Related Categories
  • Web Development
  • Tabs
License
MIT License
Version History
  • See all versions
Add to collection
Report this add-on
Go to Mozilla's homepage

Add-ons

  • About
  • Firefox Add-ons Blog
  • Extension Workshop
  • Developer Hub
  • Developer Policies
  • Community Blog
  • Forum
  • Report a bug
  • Review Guide

Browsers

  • Desktop
  • Mobile
  • Enterprise

Products

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Privacy
  • Cookies
  • Legal

Except where otherwise noted, content on this site is licensed under the Creative Commons Attribution Share-Alike License v3.0 or any later version.