Close circuits based on User Agent

I want the name of the file in Tor source code that sends HTTP requests to my Nginx

I’m under a heavy DDoS attack and I want to block some User Agents from hitting my Nginx (nginx can’t handle the number of GET requests I’m getting and PoW didn’t help)

Right now, I’m checking Tor source code to find the right place to do this and I really appreciate it if you could help me to find the right place sooner

1 Like