These might be user-agent, unless requests sets its own user agent.
scanner-nickname
I'm not sure if there is a generic HTTP header for a nickname or other client identifier.
scanner-IP-address? (pro: discover users who haven't set nickname, con: discover users)
We should look for a generic HTTP header for the client IP address.
sbws doesn't guarantee any anonymity, and discovering rogue scanners is more important than the risk of malicious servers using the IP address.
Assigning to 1.0, because this is vital debugging info.
scanner-IP-address? (pro: discover users who haven't set nickname, con: discover users)
We should look for a generic HTTP header for the client IP address.
sbws doesn't guarantee any anonymity, and discovering rogue scanners is more important than the risk of malicious servers using the IP address.
I also can't find any. It could be: Tor-bwauth-Address:
scanner-IP-address? (pro: discover users who haven't set nickname, con: discover users)
We should look for a generic HTTP header for the client IP address.
sbws doesn't guarantee any anonymity, and discovering rogue scanners is more important than the risk of malicious servers using the IP address.
I also can't find any. It could be: Tor-bwauth-Address:
The standard proxy client address header is:
Forwarded: for=192.0.2.1
sbws doesn't guarantee any anonymity, and discovering rogue scanners is more important than the risk of malicious servers using the IP address.
Thinking more this, i'm not totally convinced. If we find rogue scanners, are we going to try to contact them?.
I'm also not sure if that might be a problem on the server side due data privacy laws.
What about creating a random unique identifier the first time that it's saved locally so the scanner can always send the same?.
I thought it would be useful to have Tor version and library version in the user-agent too.
I've added a uuid field for now. I can change it to IP address.
The header would looks like:
'Tor-Bandwidth-Scanner-UUID': '4c0cf773-46d9-4633-9c3e-57a26b250be1',
'User-Agent': 'sbws/1.0.3-dev0 (kernel-version-platform-os) Python/x.y.z Requests/2.19.1 Stem/1.7.0 Tor/0.x.y.z (git-sha)'
'Tor-Bandwidth-Scanner-Nickname': 'foo'