Recent submissions

Comment · 6 years ago
Just remember that authentication and origin checking is completely up to the websocket server. Any random page in a browser can talk to your websocket cross origin, and it's up to your server to check the "Origin" header to make sure it's actually your app on the other end.
Comment · 7 years ago
Why do you need a reverse proxy? The DNS challenge works without https.
Comment · 7 years ago
Yes you can. You control the DNS, just point that subdomain to 127.0.0.1.
Comment · 7 years ago
What's wrong with Lets Encrypt and DNS challenge? Then you get a globally recognised cert.
Comment · 8 years ago
The websocket server needs to check the "Origin" header from the client. The code then needs to know what is expected (eg localhost or 127.0.0.q). If the origin header is something like "evil.xyz.com", then it needs to reject the connection.
Comment · 8 years ago
Does it have any protection from malicious js on another site (say a bad ad on a news site) connecting to your application?

I have seen some applications like this, but they fail to check the origin header.

Comment · 8 years ago
With websockets, it's actually up to the server to implement the cross origin detection. The library used in this application does not implement any protection.

So it's possible for any page on the net (eg evil.com) to connect to your socket and exfiltrate any data.

Make sure all tabs are closed and never visit any sites with advertising on it while this is running.

Comment · 10 years ago
The numlock and capslock indicators can be used as confirmation signals coming back so it knows if it is working.
Comment · 10 years ago
We are also having issues resolving some .io domains from AWS Sydney (ap-southeast-2)
Comment · 10 years ago
This could potentially be simplified by using ws2812 style LEDs like this: https://learn.adafruit.com/neopixel-arcade-button/overview Plus a fade candy controller. Then you just need to build something to read the micro switches.

Haven't compared the costs, but it might reduce the complexity and barrier to entry.

Comment · 13 years ago
But if you host your site on your infrastructure, and it goes down, you can't post status updates to tell people what's going on/ when you will be back online. Its quite reasonable to not host your own homepage or mechanism of updating your customers IMO.
Comment · 13 years ago
If I understand correctly, there is a key in the DHT that is effectively a list of pointers to all your mail? If so, an attacker could control your inbox by starting a bunch of nodes around that key, couldn't they?

To disable a persons mail, you would start up some altered nodes around the address space you want to attack, have them respond normally until you control enough or all of the nodes covering the target address. Then flip a switch that makes them all start saying that inbox is empty. Then start backing off your nodes, and replacement regular nodes would replicate your altered state.

Would this be possible? Or am I missing something?

Comment · 13 years ago
When I send a message to a room, the others see it as "undefined".

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton