pmarks-net / ipvfoo

Display the current page's IP version and addresses
Apache License 2.0
555 stars 51 forks source link

access denied instead of IP #31

Closed nshopik closed 1 year ago

nshopik commented 7 years ago

I've noticed recently that some sites give me access denied instead IP of hostname for example https://coin.dance/ but pretty much everything else works just fine

pmarks-net commented 7 years ago

Chrome's network debugger says:

Request URL:https://coin.dance/
Request Method:GET
Status Code:200 OK (from ServiceWorker)

The sequence of IPvFoo-relevant events is:

So coin.dance is using a ServiceWorker, which bypasses the onSendHeaders event that https://github.com/pmarks-net/ipvfoo/commit/45bfb4e0b1693c98894c5e616fa40710204c9d2a assumed would be present for all requests. That commit also broke file:// URLs.

This means that it's necessary to handle both onBeforeRequest and onSendHeaders to get the full picture.

pmarks-net commented 7 years ago

Note that version 1.39 still shows a ? for https://coin.dance/ because the ServiceWorker requests don't report any IP addresses.

But you should see all the domains now, instead of (access denied).

nshopik commented 7 years ago

Yeah it will now show (no address) for coin.dance at least, but also for all other domains on this page too not sure if it was intended? Like fonts.gstatic.com also reported as (no address) too

pmarks-net commented 1 year ago

Fixed in https://github.com/pmarks-net/ipvfoo/commit/d59dcf5227c2449da175d5629c1948c3d2f11f25