Giter Site home page Giter Site logo

torelay's Issues

Support gzip compression

http://www.reddit.com/r/webdev/comments/382vw9/a_simple_tor_relay_website_i_coded_over_the/crs611c

This is a really cool idea.
I tried it at work with kickass.to but I just got back a bunch of garbled text (this is just a small sample):
��}�v�H��s�+�ٷ�Ҕ��J�G���d�E���z||�@�DXXD���2g�d�b�<���������I� "�봻K$�̈"#c��W�8�xx���1$#���+� �#?�_7I2~��;�L��F�]ն��k,� ��n�I��Z��{��{5� #X��_S��u�0$�r:� ��_� �Nv�K�X��u����ؽP'���VpN/W؈�n\y|2�d���s��k�_y����/��Oc�����T�.���'^,��p9�

User agent randomization

Hi!

It looks like you use a certain set of user agents to obscure the fact that the data is coming from torelay.com instead of a regular client. As of my understanding of the TOR network it would be better to send the user agent of the latest TOR Browser Bundle ("Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Firefox/31.0"), which is used by all TOR Browser instances on all platforms to make the torelay.com traffic more difficult to differentiate from regular TOR traffic.

--rec0de

White list some urls

Some url such as jquery cdn and bootstrap cdn doesn't need to go through URL injection.

Roboto font loaded over plaintext HTTP

Hi!

I just looked trough your code and noticed that the Roboto Webfont is loaded over plaintext HTTP even if the main connection is TLS encrypted.
This causes a 'mixed content' warning in Firefox (and perhaps Chrome?)

Additionaly I would suggest enabling HSTS headers to prevent downgrading attacks.

Thanks for creating this :)

-- rec0de

User Agent / HTTP Header not sent properly

Hi!

It looks like your use of 'CURLOPT_HTTPHEADER' is incorrect as you only set the Useragent, not the entire header. Viewing ipnumber.info trough torelay shows that an empty user agent is sent.
If you want to send header values you have to prefix them with the name of the value you want to change (see http://curl.haxx.se/libcurl/c/CURLOPT_HTTPHEADER.html).
As you are only sending the user agent for now, I would suggest replacing 'CURLOPT_HTTPHEADER' with 'CURLOPT_USERAGENT'.

--rec0de

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.