Let's say I got 100.000 different hidden services all connecting to localhost on port 8080.
Would there be a way for my server to know which service the connection came from? Maybe by looking up the port number used by the socket and check with Tor which service created it? Is something like that possible using the tor control protocol?
I know it's a silly scenario, but I do wonder about this. The idea is to have a different hidden service address for each user of my server (which would be invite only). Then I could easily mitigate DoS attacks by just disabling the address the traffic is coming from.
Or is there a way to just get data about the incoming traffic volume coming from my services?