Dismiss Notice
Plesk Onyx 17.5 is now available for everyone and we'd love to hear your thoughts on the new Plesk version. Visit this thread for more details.

Question Block access from the TOR network to my domains

Discussion in 'Plesk 12.x for Linux' started by Tize, Feb 12, 2017.

  1. Tize

    Tize Basic Pleskian

    9
    20%
    Messages:
    58
    Likes Received:
    2
    Trophy Points:
    92
    Hello everyone, I would like to know if anyone.
    How to block access to the domains hosted in Plesk of the TOR network?
    I currently have CSF installed since it is a bit more advanced than iptables.

    SO: CentOS 6.5 (Final)‬
    Versión de Plesk: 12.5.30 Actualización #59, última actualización 31/Ene/2017 03:44

    Thank you very much.
     
  2. serverpoint

    serverpoint Basic Pleskian

    8
    60%
    Messages:
    55
    Likes Received:
    5
    Trophy Points:
    86
    Location:
    US
    Hi,

    You can get the list with IPs of all the exit nodes that can access your service from this link

    https://check.torproject.org/cgi-bin/TorBulkExitList.py

    Then you can add the IP's to :
    vi /etc/csf/csf.deny

    Restart CSF.

    Also If you need to whitelist or block a range of IP addresses using CSF, it can be done, but you need to use the CIDR format.

    For example, to block 192.168.0.0 to 192.168.0.255 you would add 192.168.0.0/24 to the blocked list.

    You can use the following tool: http://ip2cidr.com/

    and use the following command

    csf -d IP/Range

    Thanks,
     
    Tize likes this.
  3. Tize

    Tize Basic Pleskian

    9
    20%
    Messages:
    58
    Likes Received:
    2
    Trophy Points:
    92


    Hello, thank you very much for your help and for your time.
    I have been looking at what you mention but I think there must be another way to do it without having to block iP addresses.
    Because by blocking the addresses as you tell me by ranges that are thousands of the TOR network.

    It would take a long time.

    If you are so kind to enter here from TOR www.tdbank.com you can check what I mean, directly block TOR DNS or something else, and now many banks and prestigious websites use this same technology.

    I hope you can help me, and thank you very much for your time.


    Captura de pantalla 2017-02-17 a las 9.50.23.png
     
Loading...