# fhosts

> 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.

Canonical page: [https://chrome-stats.com/d/fhosts](https://chrome-stats.com/d/fhosts)

## Overview

- **ID:** `fhosts`
- **Platform:** Firefox
- **Type:** Firefox add-on
- **Status:** Available
- **Publisher:** Amal Graafstra
- **Category:** web-development,tabs
- **Daily users:** 43
- **Weekly downloads:** 16
- **Version:** 1.0.1
- **Last updated:** 2025-12-07
- **First published:** 2025-12-03
- **Size:** 27 KB
- **Data as of:** 2026-09-07
- **Store listing:** [Firefox Add-ons Store](https://addons.mozilla.org/firefox/addon/fhosts/)
- **Website:** [https://github.com/amalg/fhosts](https://github.com/amalg/fhosts)

## Description

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.

<strong>Why use fhosts?</strong>

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., <a href="https://prod.outgoing.prod.webservices.mozgcp.net/v1/3deda88568cc7ddb70b1a7b54378b422fcc6b629e3bd73a0e85c35398c4ced1b/http%3A//myapp.com" rel="nofollow">myapp.com</a> → 127.0.0.1)
  • Enable overrides per-tab - test local and production side-by-side
  • Keep your system hosts file clean

<strong>How it works</strong>
<ol><li>Add hostname mappings (e.g., <a href="https://prod.outgoing.prod.webservices.mozgcp.net/v1/2141eac2eacda036b00afc30fd0a7e6f24e9bddf402cf4393fe5144f468147e8/http%3A//example.com" rel="nofollow">example.com</a> → 127.0.0.1)</li><li>Click the toggle to enable overrides for the current tab</li><li>Navigate to your mapped domain - requests route to your specified IP</li></ol>
The toolbar icon turns cyan when overrides are active for the active tab.

<strong>Requirements</strong>

This extension requires a companion proxy helper to perform the actual IP substitution. Download the installer from the GitHub releases page: <a href="https://prod.outgoing.prod.webservices.mozgcp.net/v1/43b4d20aaaf045f0b1717d588e218318c444b517630f4f356538c762504778cb/https%3A//github.com/amalg/fhosts/releases" rel="nofollow">https://github.com/amalg/fhosts/releases</a>

<strong>HTTPS Note</strong>

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.

<strong>Open Source</strong>

fhosts is open source under the MIT license. View the code, report issues, or contribute at: <a href="https://prod.outgoing.prod.webservices.mozgcp.net/v1/3bb31a30b0672ffb023f1ab31287c7aa8e52f644cadcf0998e298819ca6e4800/https%3A//github.com/amalg/fhosts" rel="nofollow">https://github.com/amalg/fhosts</a>

## Rankings

- #17,320 — Overall
- #48 — override
- #133 — environment
- #140 — cost

## Permissions and access

### Permissions

- `proxy`
- `storage`
- `tabs`
- `nativeMessaging`

### Host permissions

- `<all_urls>`

## Safety

- **Risk impact:** High risk impact
- **Risk likelihood:** Moderate risk likelihood

### Analysis details

- Grants access to browser tabs, which can be used to track user browsing habits and history, presenting a privacy concern.
- This extension has low user count. Unpopular extensions may not be stable or safe.

> Some risk analysis details are omitted from this free response. [Upgrade to view the full analysis](https://chrome-stats.com/pricing).

## Similar extensions and apps

- [Host File Override Plugin](https://chrome-stats.com/d/host-file-override-plugin) — 2 users
- [Virtual Hosts](https://chrome-stats.com/d/vhost-simulator) — 231 users, 4.00 / 5
- [LiveHosts](https://chrome-stats.com/d/livehosts) — 908 users, 3.24 / 5
- [Location Switcher - Advanced](https://chrome-stats.com/d/location-switcher-advanced) — 4 users, 5.00 / 5
- [FF Overrides](https://chrome-stats.com/d/ff-overrides) — 1 users
- [Cookie/LocalStorage Switcher](https://chrome-stats.com/d/cookie-storage-switcher)
- [localivelize](https://chrome-stats.com/d/localivelize) — 1 users
- [Environment Cookie/LocalStorage Switcher](https://chrome-stats.com/d/cookie-local-switcher)
- [Cookie Transfer](https://chrome-stats.com/d/cookie-transfer) — 3 users, 5.00 / 5
- [CORS Bypass Hosts](https://chrome-stats.com/d/cors-bypass-hosts) — 10 users
- [l-switch](https://chrome-stats.com/d/l-switch) — 2 users
- [Env-based FF browser color](https://chrome-stats.com/d/env-based-ff-browser-color)

---

Source: [Chrome-Stats](https://chrome-stats.com/d/fhosts)
