Create & Self-Host Websites in 60 Seconds!

With Advanced, High-Performance Web Server Software using Apache, PHP, MySQL - for Windows

WampDeveloper Pro enables professionals, average users, and businesses to rapidly create & deploy websites using Apache (web server), PHP (language), and MySQL (database).

With WampDeveloper Pro creating websites is a 1-click process.

  • A complete web development and website hosting platform on which to create standards-based dynamic HTML + CSS + JavaScript sites running on PHP and MySQL!
  • Performance Optimized. Secured. And Fully Supported!
  • Built on standards and best-practices, with 7+ years of web-development and website hosting experience! (since 2003)
  • Now comes standard with WordPress, Drupal, Joomla, Magento, phpBB and MediaWiki (1-click install in any website and URL)!
  • Host websites after a simple 60 seconds 1-click installation!
  • System Tab - Control Apache, MySQL, and other Services. Get web server status reports. IP information. And much more.
  • Websites Tab - Add and manage websites with a single click.
  • Local DNS Tab - Select DNS settings for your websites.
  • Web Applications Tab - Automatically install WordPress, Drupal, Joomla, Magento, phpBB3, and MediaWiki.
  • Proxy Pass Tab - Proxy specific requests to backend Tomcat, IIS, and Nginx servers.
  • Components Tab - Select versions of Apache, PHP, and MySQL to use with a single click.

Restricting Access to Websites and Directories with WampDeveloper Pro

Summery

Access is granted/restricted to websites via...

  1. WampDeveloper Pro - the website's .htaccess file (default is to allow all).
  2. Windows - Windows firewall rules (default is to block incoming port 80 requests).
  3. Router - Router "port forward" settings (to route requests coming in, you must log in and set up "port forward" of WAN:80 to LAN:80 of server IP).

This how-to is for #1.

.htaccess Files

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:

  1. Set up the order: process all "deny" lines first, then "allow" lines afterwards.
  2. Deny all IPs by default.
  3. Allow access from local system.
  4. Allow access from anyone who is coming from the typical local LAN network range: 192.186.*.*

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.

Notes

Syntax: http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html

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.