Using .htaccess to block folders and subdomains

There are a lot of ways to protect and lock down subdomains, folders, and even specific files. The preferred, reliable, and easiest way to do this is using .htaccess and .htpasswd files. Block All, Except IPs you set Order Deny,Allow Deny from all Allow from 111.222.333.444 # Single IP Allow from 111.222.333.0/99 # Range from […]