How to make your website VPN Only Accessible

Hi
Create an .htaccess file at the root of the subdomain
(under condition that you have a static IP from the VPN)

#Allow only VPN IP
Order Allow,Deny
Allow from 123.456.789.123

Where 123.456.789.123 is VPN IP address.


More info and variations depending on your preferences
mod_authz_host - Apache HTTP Server Version 2.2


6 Likes