←back to thread

980 points nkcmr | 2 comments | | HN request time: 0.421s | source
Show context
Cloudef ◴[] No.27418558[source]
I wonder how much it would've helped if the site was not python. The same thing can be replicated with just nginx something like this:

  location /remote_addr {
      default_type text/plain;
      return 200 "$remote_addr\n";
  }
It's possible to add rate limit there too to control some of the abuse, of course you could even go further and develop native program that's optimized just for this use case (as well as being a simple HTTP server).
replies(1): >>27418580 #
1. cbarrick ◴[] No.27418580[source]
They did move from Python to nginx circa 2011. It's mentioned in the post.
replies(1): >>27418619 #
2. Cloudef ◴[] No.27418619[source]
It seems you are right. I was confused by the github page only containing the old python based solution.