metamask-extension icon indicating copy to clipboard operation
metamask-extension copied to clipboard

[Bug]: HTTP(S) URLs that looks like an ENS name get resolved through MetaMask

Open SamWilsn opened this issue 3 years ago • 1 comments

Describe the bug

I would expect all URLs that begin with http or https to be resolved with one of those protocols, but if I put example.eth in my /etc/hosts and try to navigate to it, I end up on the ENS dapp.

Only URLs that use the IPFS scheme should be resolved using the IPFS protocol.

This is especially important for ENS names that are both a valid DNS name and a valid ENS name.

Steps to reproduce

  1. sudo sh -c 'echo 93.184.216.34 example.eth >> /etc/hosts'
  2. Navigate to https://example.eth in a browser.
  3. Get redirected to ENS.

Error messages or log output

No response

Version

10.18.1

Build type

No response

Browser

Firefox

Operating system

Linux

Hardware wallet

No response

Additional context

https://twitter.com/SamWilsn/status/1555596847393247232

SamWilsn avatar Aug 06 '22 03:08 SamWilsn

This issue has been automatically marked as stale because it has not had recent activity in the last 90 days. It will be closed in 45 days. Thank you for your contributions.

github-actions[bot] avatar Jul 20 '23 18:07 github-actions[bot]

This issue was closed because there has been no follow up activity in the last 45 days. If you feel this was closed in error, please reopen and provide evidence on the latest release of the extension. Thank you for your contributions.

github-actions[bot] avatar Sep 03 '23 22:09 github-actions[bot]