Blocking VPN access to cPanel


Hello ya!

So today I was discussing with a friend a serious problem: wanting to block cPanel access to VPN users and at the same time allow those who do so to access the site. A few random Google searches, and well, nothing.

I went to the cPanel documents and found its "Host access control" function. I can not say that I ever knew about this function, but this is EXACTLY what I'm looking for. Now would they get the IP list?

Github came to the rescue, https://github.com/ejrv/VPNs, now we have a list updated every two months of common VPN providers. Let's put it together!

https://github.com/mmuyskens/cpanel-…p-vpn-block.sh

Fact! A weekly cron should keep things up to date enough.

Thoughts? Comments? **** – Talking about my code? (I do not code), let's hear it!