Skip to content

Implement a CheckTor API #221

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

Closed
evilaliv3 opened this issue Feb 21, 2015 · 3 comments
Closed

Implement a CheckTor API #221

evilaliv3 opened this issue Feb 21, 2015 · 3 comments

Comments

@evilaliv3
Copy link
Contributor

The aim of this ticket is to design and and implement a CheckTor API useful for allowing clients to detect if they are using Tor or not, by simply making requests to a Tor2web domain.

This would allow to perfom this check on the same domain of a Tor2web instance without requiring user to perform requests to different domain, or to implement the check on an existing domain of an initiative without leaking any requests to external services.

@evilaliv3
Copy link
Contributor Author

Current specification discussed with @fpietrosanti is the following:

evilaliv3 added a commit that referenced this issue Feb 21, 2015
with this commit Tor2web introduces a CheckTor API.
Current implementation acts as following:

- the API permits requests to a /gettor resource
- the resource provide an output compliant to current Tor API implemented at: https://check.torproject.org/api/ip
- the HTTP response injects an x-check-tor header returning a simple boolean value depending if the user is detected to be using Tor or not
- the resource allows CORS as specified in https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS
evilaliv3 added a commit that referenced this issue Feb 21, 2015
with this commit Tor2web introduces a CheckTor API.
Current implementation acts as following:

- the API permits requests to a /gettor resource
- the resource provide an output compliant to current Tor API implemented at: https://check.torproject.org/api/ip
- the HTTP response injects an x-check-tor header returning a simple boolean value depending if the user is detected to be using Tor or not
- the resource allows CORS as specified in https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS
evilaliv3 added a commit that referenced this issue Feb 22, 2015
with this commit Tor2web introduces a CheckTor API.
Current implementation acts as following:

- the API permits requests to a /gettor resource
- the resource provide an output compliant to current Tor API implemented at: https://check.torproject.org/api/ip
- the HTTP response injects an x-check-tor header returning a simple boolean value depending if the user is detected to be using Tor or not
- the resource allows CORS as specified in https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS

Conflicts:
	tor2web/t2w.py
evilaliv3 added a commit that referenced this issue Feb 22, 2015
with this commit Tor2web introduces a CheckTor API.
Current implementation acts as following:

- the API permits requests to a /gettor resource
- the resource provide an output compliant to current Tor API implemented at: https://check.torproject.org/api/ip
- the HTTP response injects an x-check-tor header returning a simple boolean value depending if the user is detected to be using Tor or not
- the resource allows CORS as specified in https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS
evilaliv3 added a commit that referenced this issue Feb 22, 2015
with this commit Tor2web introduces a CheckTor API.
Current implementation acts as following:

- the API permits requests to a /gettor resource
- the resource provide an output compliant to current Tor API implemented at: https://check.torproject.org/api/ip
- the HTTP response injects an x-check-tor header returning a simple boolean value depending if the user is detected to be using Tor or not
- the resource allows CORS as specified in https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS

Conflicts:
	tor2web/t2w.py
@fpietrosanti
Copy link
Contributor

Finalize documentation on the different use-case of Tor2web CheckTor Javascript https://github.com/globaleaks/Tor2web-3.0/wiki/CheckTor

@fpietrosanti
Copy link
Contributor

Done

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

No branches or pull requests

2 participants