Is it possible to block Tor users?

后端 未结 14 2146
没有蜡笔的小新
没有蜡笔的小新 2021-01-30 04:03

Would it be possible to block Tor users? (https://www.torproject.org/)

Due to the nature of the site I run I should do all I can to stop multiple accounts and block cert

14条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-30 04:57

    Here (see https://github.com/RD17/DeTor) is a simple REST API to determine whether a request was made from TOR network or not.

    The request is: curl -X GET http://detor.ambar.cloud/.

    The response is:

    { 
      "sourceIp": "104.200.20.46",
      "destIp": "89.207.89.82",
      "destPort": "8080",
      "found": true 
    }
    

    As a bonus you can add a badge to your site to detect whether a user comes from TOR or not:

提交回复
热议问题