Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce API to Check if client is behind Tor or not #85

Open
fpietrosanti opened this issue Mar 1, 2013 · 2 comments
Open

Introduce API to Check if client is behind Tor or not #85

fpietrosanti opened this issue Mar 1, 2013 · 2 comments

Comments

@fpietrosanti
Copy link
Contributor

fpietrosanti commented Mar 1, 2013

This ticket is to implement an API that can be queried by HTTP client (also with CORS) to know if he is behind Tor or not.

This API should use the cached information of onionoo coming from #10 implementation .


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@hellais
Copy link
Collaborator

hellais commented Mar 1, 2013

The API should implement a JSONP (CORS headers are not required) interface that will allow the requester to obtain if their publicly exposed IP address appears to be from the Tor network or not.

The API should return at minimum the following JSON dict:

{
    'tor': true | false
        if the IP address appears to be coming from the Tor network

    'ip': string
         the ipv4 dotted quad or ipv6 address

    'country': string
         (optional) two letter country code from which the request has originated
}

@fpietrosanti
Copy link
Contributor Author

Didn't we received some criticism about the risks related to JSONP, being
able to inject JS code into the client's browser (maybe there was a thread
on tor-talk)?

Wouldn't be safer something different than jsonp?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants