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
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.
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.