How to block visitors to website if they are using vpn/proxies?

Discussion in 'Traffic Analysis' started by lapidus, May 3, 2025.

  1. #1
    Hello folks

    I am curious how can i block certain visitors to my website if they are using vpn or proxies to hide their's IP.
    I check some websites through VPN and when i want to open site then i see only blank screen(i need that)

    So, i need some Javascript code,hml or whatever is a thing, which i can upload to my server example in Cpanel and to users who using vpn just see white screen or some message.

    Please just do not provide some paying solutions here. I hope so that some developer can share free Javascript code here about this issue.

    Thanks in advance
     
    lapidus, May 3, 2025 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,789
    Likes Received:
    4,528
    Best Answers:
    123
    Trophy Points:
    665
    #2
    If you can identify them using their user agent info then you can redirect them to a blank page. You may be able to use their .htaccess.

    But

    I think you're going to be on a never-ending quest to identify them and people will always slip through.

    What is more likely to be happening is that websites detect you're from a particular country and block you for that.

    Although I did use to have issues with Snapchat when I was using Nord VPN and they'd locked out the nord ip addresses.
     
    sarahk, May 3, 2025 IP
  3. Spoiltdiva

    Spoiltdiva Acclaimed Member

    Messages:
    7,830
    Likes Received:
    2,966
    Best Answers:
    53
    Trophy Points:
    520
    #3
    You can block various ports often used by VPN's. And you can also use geolocation tracking to block access to your site from certain regions where VPN's are commonly used.
     
    Spoiltdiva, May 3, 2025 IP