Make specific apache2 site only avertible through one subnet: ============================================================= *This will allow me to have a website only available through a specific subnet Such as my vpn. Make changes with this file with nano: sudo nano /etc/apache2/apache2.conf and add this block (or look alike): Options +Indexes +FollowSymLinks +MultiViews AllowOverride None Require ip 10.8.0.0/24 *Make sure that the old is now set to is own block Save with Ctrl+X Then reboot using command: sudo service apache2 restart Now that specific site is now secured. -------------------------------------------------------------------------------------------------------------------------- Sources: https://stackoverflow.com/questions/44041052/cannot-allow-only-particular-ip-address-access-my-website-with-apache-2-4 https://serverfault.com/questions/1084051/apache-allow-certain-users-only-from-specified-subnet Date: October 3rd 2023