← Back to context

Comment by escapecharacter

2 years ago

My quick hack would be to establish a websocket connection, and send a random stream of numbers to the client. If the client didn't return the number within a ping threshold, block their access.

hm but it would block your crazy next-door neighbor who only uses curl.

To get a good server-client-server roundtrip with only HTTP/1.1, I'd personally try using a temporary redirect, maybe a 307.

Sadly I imagine this would also block people on poor connections such as cellular, satellite or Tor.