Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Community
Technology
[TUT] Limit site access to domain! (Hotel Security Guide 2)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="thewicard" data-source="post: 202774" data-attributes="member: 8814"><p><em>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.</em></p><p> </p><p>What do you need?</p><p><em>Any site that uses either XAMPP or IIS.</em></p><p> </p><p><strong>(1) XAMPP (Tested with 1.7.3)</strong></p><p> </p><p>Step 1:</p><p>1) Open up the file C:\xampp\apache\httpd.conf</p><p>2) Search for [CODE]Include "conf/extra/httpd-vhosts.conf"[/CODE] make sure that this is no "#" sign before of this, if it is - remove it.</p><p><img src="http://puu.sh/2NdNz.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p> </p><p>Step 2:</p><p>1) Open up the file C:\xampp\apache\extra\httpd-vhosts.conf</p><p>2) Replace everything inside that file with this:</p><p>[CODE]NameVirtualHost *:80</p><p> </p><p> </p><p><VirtualHost *:80></p><p> ServerAdmin postmaster@dummy-host.localhost</p><p> DocumentRoot "none"</p><p> ServerName 127.0.0.1</p><p></VirtualHost></p><p><VirtualHost *:80></p><p> ServerAdmin postmaster@dummy-host.localhost</p><p> DocumentRoot "C:/xampp/htdocs"</p><p> ServerName YOURDOMAIN.COM</p><p> ServerAlias www.YOURDOMAIN.COM</p><p></VirtualHost></p><p>[/CODE]</p><p>3) Replace the YOURDOMAIN.COM with your domain name, (<em>you may enable access from multiple domains by adding serveralias'es)</em></p><p> </p><p>Step 3:</p><p>Restart apache in Xampp, <strong>and you're done!</strong></p><p> </p><p><strong>(2) IIS 7.5</strong></p><p> </p><p>Step 1:</p><p>1) Open up the sever manager.</p><p>2) Open up Roles > Web Server (IIS) > Internet Information Services (IIS) Manager > Sites</p><p> </p><p><img src="http://puu.sh/2Ne3i.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p> </p><p>3) Right click on "Default Web Site" and click "Edit Site Bindings"</p><p>Click on "Add" and first add the: YOURWEBSITEURL.EXAMPLE</p><p>Click on "Ok"</p><p>second add the: <a href="http://www.YOURWEBSITEURL.EXAMPLE" target="_blank">www.YOURWEBSITEURL.EXAMPLE</a></p><p>Click on "Ok"</p><p>Remove the original Site Binding content after you have added yours.</p><p> </p><p><img src="http://puu.sh/2Ne8i.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p> </p><p>4) <strong>Congratulations, you're done!</strong></p><p> </p><p><u><strong>Also see:</strong></u></p><p><a href="http://devbest.com/threads/create-your-own-tcp-proxy-hotel-security-guide-1.31392/" target="_blank">How to create your own TCP Proxy</a></p><p><a href="http://devbest.com/threads/limit-site-access-to-domain-hotel-security-guide-2.31394/" target="_blank">Limit site access to domain</a></p></blockquote><p></p>
[QUOTE="thewicard, post: 202774, member: 8814"] [I]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.[/I] What do you need? [I]Any site that uses either XAMPP or IIS.[/I] [B](1) XAMPP (Tested with 1.7.3)[/B] Step 1: 1) Open up the file C:\xampp\apache\httpd.conf 2) Search for [CODE]Include "conf/extra/httpd-vhosts.conf"[/CODE] make sure that this is no "#" sign before of this, if it is - remove it. [IMG]http://puu.sh/2NdNz.png[/IMG] 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 postmaster@dummy-host.localhost DocumentRoot "none" ServerName 127.0.0.1 </VirtualHost> <VirtualHost *:80> ServerAdmin postmaster@dummy-host.localhost DocumentRoot "C:/xampp/htdocs" ServerName YOURDOMAIN.COM ServerAlias www.YOURDOMAIN.COM </VirtualHost> [/CODE] 3) Replace the YOURDOMAIN.COM with your domain name, ([I]you may enable access from multiple domains by adding serveralias'es)[/I] Step 3: Restart apache in Xampp, [B]and you're done![/B] [B](2) IIS 7.5[/B] Step 1: 1) Open up the sever manager. 2) Open up Roles > Web Server (IIS) > Internet Information Services (IIS) Manager > Sites [IMG]http://puu.sh/2Ne3i.png[/IMG] 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: [URL='http://www.YOURWEBSITEURL.EXAMPLE']www.YOURWEBSITEURL.EXAMPLE[/URL] Click on "Ok" Remove the original Site Binding content after you have added yours. [IMG]http://puu.sh/2Ne8i.png[/IMG] 4) [B]Congratulations, you're done![/B] [U][B]Also see:[/B][/U] [URL='http://devbest.com/threads/create-your-own-tcp-proxy-hotel-security-guide-1.31392/']How to create your own TCP Proxy[/URL] [URL='http://devbest.com/threads/limit-site-access-to-domain-hotel-security-guide-2.31394/']Limit site access to domain[/URL] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Community
Technology
[TUT] Limit site access to domain! (Hotel Security Guide 2)
Top