[TUT] Limit site access to domain! (Hotel Security Guide 2)

thewicard

Member
Nov 4, 2011
41
3
Want to minimize your risk when running a hotel? Well I'm going to show you how to host a website without your serverprovider seeing it when accessing ip in url bar.

What do you need?
Any site that uses either XAMPP or IIS.

(1) XAMPP (Tested with 1.7.3)

Step 1:
1) Open up the file C:\xampp\apache\httpd.conf
2) Search for
Code:
Include "conf/extra/httpd-vhosts.conf"
make sure that this is no "#" sign before of this, if it is - remove it.
2NdNz.png


Step 2:
1) Open up the file C:\xampp\apache\extra\httpd-vhosts.conf
2) Replace everything inside that file with this:
Code:
NameVirtualHost *:80
 
 
<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "none"
    ServerName 127.0.0.1
</VirtualHost>
<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "C:/xampp/htdocs"
    ServerName YOURDOMAIN.COM
    ServerAlias www.YOURDOMAIN.COM
</VirtualHost>
3) Replace the YOURDOMAIN.COM with your domain name, (you may enable access from multiple domains by adding serveralias'es)

Step 3:
Restart apache in Xampp, and you're done!

(2) IIS 7.5

Step 1:
1) Open up the sever manager.
2) Open up Roles > Web Server (IIS) > Internet Information Services (IIS) Manager > Sites

2Ne3i.png


3) Right click on "Default Web Site" and click "Edit Site Bindings"
Click on "Add" and first add the: YOURWEBSITEURL.EXAMPLE
Click on "Ok"
second add the:
Click on "Ok"
Remove the original Site Binding content after you have added yours.

2Ne8i.png


4) Congratulations, you're done!

Also see:

 

Users who are viewing this thread

Top