Access is granted/restricted to websites via...
This how-to is for #1.
You can restrict access to any website by editing the website's .htaccess file (WampDeveloper Pro's Websites Tab, select website, click ".htaccess" button), which is located in the website's DocumentRoot (webroot) folder.
Adding the following lines will only allow access to the website when the request is coming from the local system or the local network:
order deny,allow deny from all allow from 127.0.0.1 allow from 192.168
These lines will:
Make sure to save this file after making changes.
You can also restrict access to only a specific directory (and all it's sub-directories) under a website (rather than to the entire website) by creating an '.htaccess' file in that specific directory.
Windows will not allow you to create a file starting with a "." via a folder right click > New > Text Document. You'll need to first create an "htaccess.txt" text file, edit it with Notepad, and then select 'Save As', 'Save as type: All Files', File name: .htaccess
You do not need to restart Apache after making changes to .htaccess files. These files will be re-read on every request received.