Firefox 浏览器附加组件
  • 扩展
  • 主题
    • 适用于 Firefox
    • 字典和语言包
    • 其他浏览器网站
    • 适用于 Android 的附加组件
登录
fhosts 预览

fhosts 作者: 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 条评价)0(0 条评价)
12 个用户12 个用户
下载 Firefox 并安装扩展
下载文件

扩展元数据

屏幕截图
Settings
关于此扩展
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
评分 0(1 位用户)
登录以评价此扩展
目前尚无评分

已保存星级评分

5
0
4
0
3
0
2
0
1
0
尚无评价
权限与数据

必要权限:

  • 与 Firefox 之外的其他程序交换信息
  • 控制浏览器的代理设置
  • 获取浏览器标签页

可选权限:

  • 访问您在所有网站的数据

收集的数据:

  • 开发者称此扩展无需收集数据。
详细了解
更多信息
附加组件链接
  • 主页
  • 用户支持网站
  • 支持邮箱
版本
1.0.1
大小
26.51 KB
上次更新
4 个月前 (2025年12月4日)
相关分类
  • 网页开发
  • 标签页
许可证
MIT 许可证
版本历史
  • 查看所有版本
添加到收藏集
举报此附加组件
转至 Mozilla 主页

附加组件

  • 关于
  • Firefox 附加组件博客
  • 扩展工坊
  • 开发者中心
  • 开发者政策
  • 社区博客
  • 论坛
  • 报告缺陷
  • 评价指南

浏览器

  • Desktop
  • Mobile
  • Enterprise

产品

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • 隐私
  • Cookie
  • 法律

除非另有注明,否则本网站上的内容可按知识共享 署名-相同方式共享 3.0 或更新版本使用。