Live data from Hacker News

I can see your local web servers

http.jameshfisher.com

11–20 of 198 posts

Re: I can see your local web servers

#12
I started a local webserver listening on localhost:80 just to see what happens, but this thing seems to not detect it. It shows me "Scanning localhost ... localhost complete."

Edit: My guess is that this thing can only detect servers that send a CORS header that permits cross domain access.

It could probably do way better detection if it did not do xhr requests but added script/css/whatever elements to its own page pointing to localhost and detects if those error out.

Re: I can see your local web servers

#13

I started a local webserver listening on localhost:80 just to see what happens, but this thing seems to not detect it. It shows me "Scanning localhost ... localhost complete." Edit: My guess is that this thing can only detect servers that send a CORS header that permits cross domain access. It could probably do way better detection if it did not do xhr requests but added script/css/whatever elements to its own page p…

It's not that it doesn't detect it, but it's not open to external networks, which I guess is a good thing.

Re: I can see your local web servers

#14

I started a local webserver listening on localhost:80 just to see what happens, but this thing seems to not detect it. It shows me "Scanning localhost ... localhost complete." Edit: My guess is that this thing can only detect servers that send a CORS header that permits cross domain access. It could probably do way better detection if it did not do xhr requests but added script/css/whatever elements to its own page p…

It's not that it doesn't detect it, but it's not open to external networks, which I guess is a good thing.

What do you mean?

Re: I can see your local web servers

#17

Earlier quoted context omitted.

It's not that it doesn't detect it, but it's not open to external networks, which I guess is a good thing.

What do you mean?

Probably that your browser is blocking access to the local domain, from the context of an external domain. I'm just guessing here, of course.

Re: I can see your local web servers

#18

I started a local webserver listening on localhost:80 just to see what happens, but this thing seems to not detect it. It shows me "Scanning localhost ... localhost complete." Edit: My guess is that this thing can only detect servers that send a CORS header that permits cross domain access. It could probably do way better detection if it did not do xhr requests but added script/css/whatever elements to its own page p…

CORS is a security mechanism for browsers to prevent leaking user information (e.g. cookies) when doing cross domain requests from a browser. CORS does not prevent accessing the server at all. You can always curl a CORS protected server but you won't be able to make a requests including the user's cookies from a disallowed domain.
Post reply on HN