<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>gHacks technology news &#187; password protection</title>
	<atom:link href="http://www.ghacks.net/tag/password-protection/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ghacks.net</link>
	<description>A technology blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description>
	<lastBuildDate>Tue, 24 Nov 2009 23:31:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Password Protect Programs</title>
		<link>http://www.ghacks.net/2009/09/11/password-protect-programs/</link>
		<comments>http://www.ghacks.net/2009/09/11/password-protect-programs/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 22:31:02 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[desklock]]></category>
		<category><![CDATA[password protect programs]]></category>
		<category><![CDATA[password protection]]></category>
		<category><![CDATA[protect exe]]></category>
		<category><![CDATA[protect files]]></category>
		<category><![CDATA[windows software]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=16196</guid>
		<description><![CDATA[It might be necessary to password protect programs &#8211; and other files &#8211; if other people have access to a computer system. This can be true for families who share one computer system but also in dorms and even for businesses. The password protection should ensure that a certain program is not executed on a [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.ghacks.net/wp-content/uploads/2009/09/windows_software.jpg" alt="windows software" title="windows software" width="128" height="128" class="alignleft size-full wp-image-16120" />It might be necessary to password protect programs &#8211; and other files &#8211; if other people have access to a computer system. This can be true for families who share one computer system but also in dorms and even for businesses. The password protection should ensure that a certain program is not executed on a computer system without supplying the password first. This can be to protect certain programs from being executed while not at the computer system, e.g. limiting access to World of Warcraft, Internet browsers, other games or executables.</p>
<p>Desklock is a simple application for the Windows operating system that can be used to password protect programs. It places an icon in the system tray after startup which can be right-click to open a context menu with option to configure the programs that should be password protected. The default password to access the settings and password protected programs is 2.</p>
<p><span id="more-16196"></span><img src="http://www.ghacks.net/wp-content/uploads/2009/09/password_protect_programs.jpg" alt="password protect programs" title="password protect programs" width="283" height="96" class="alignnone size-full wp-image-16197" /></p>
<p>The main menu with all password protected programs will be displayed after entering the right password in the form. The same password prompt will be displayed if a user tries to open a protected program.</p>
<p><img src="http://www.ghacks.net/wp-content/uploads/2009/09/password_protection-500x283.jpg" alt="password protection" title="password protection" width="500" height="283" class="alignnone size-medium wp-image-16198" /></p>
<p>Additional options can be configured for each program including hotkeys, transparency and to hide the program icon when the program gets minimized by the user. How safe is the password protection? Desklock appears in the Windows Task Manager from where it can be killed easily with the appropriate rights. Terminating the process would enable access to all password protected files. It is therefor recommended to install this software on limited user accounts that do not have admin rights to kill processes.</p>
<p>Desklock is <a href="http://www.dee-u.site90.net/desklock.php">available</a> at the developer&#8217;s website.</p>

	Tags: <a href="http://www.ghacks.net/tag/desklock/" title="desklock" rel="tag">desklock</a>, <a href="http://www.ghacks.net/tag/password-protect-programs/" title="password protect programs" rel="tag">password protect programs</a>, <a href="http://www.ghacks.net/tag/password-protection/" title="password protection" rel="tag">password protection</a>, <a href="http://www.ghacks.net/tag/protect-exe/" title="protect exe" rel="tag">protect exe</a>, <a href="http://www.ghacks.net/tag/protect-files/" title="protect files" rel="tag">protect files</a>, <a href="http://www.ghacks.net/tag/windows-software/" title="windows software" rel="tag">windows software</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2008/11/25/protect-games-with-passwords/" title="Protect Games With Passwords (November 25, 2008)">Protect Games With Passwords</a> (4)</li>
	<li><a href="http://www.ghacks.net/2009/02/11/password-protect-files/" title="Password Protect Files (February 11, 2009)">Password Protect Files</a> (4)</li>
	<li><a href="http://www.ghacks.net/2009/08/10/how-to-password-protect-data-on-cds-or-dvds/" title="How To Password Protect Data On CDs or DVDs (August 10, 2009)">How To Password Protect Data On CDs or DVDs</a> (9)</li>
	<li><a href="http://www.ghacks.net/2008/10/21/zonescreen-finally-gets-64-bit-update/" title="ZoneScreen Finally Gets 64-bit Update (October 21, 2008)">ZoneScreen Finally Gets 64-bit Update</a> (7)</li>
	<li><a href="http://www.ghacks.net/2009/10/07/zc-dvd-creator-platinum-free-full-version/" title="ZC DVD Creator Platinum [Free Full Version] (October 7, 2009)">ZC DVD Creator Platinum [Free Full Version]</a> (19)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/09/11/password-protect-programs/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How To Password Protect Data On CDs or DVDs</title>
		<link>http://www.ghacks.net/2009/08/10/how-to-password-protect-data-on-cds-or-dvds/</link>
		<comments>http://www.ghacks.net/2009/08/10/how-to-password-protect-data-on-cds-or-dvds/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 18:24:31 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[encrypt cd]]></category>
		<category><![CDATA[encrypt dvd]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[password protect cd]]></category>
		<category><![CDATA[password protect dvd]]></category>
		<category><![CDATA[password protection]]></category>
		<category><![CDATA[true-crypt]]></category>
		<category><![CDATA[windows software]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=15223</guid>
		<description><![CDATA[A recent comment here at Ghacks asked for help in finding a software program or solution to password protect CDs or DVDs. The following post explains how to password protect data on CDs and DVDs. Please note that this method is only working with data CDs or DVDs and not audio or video CDs or [...]]]></description>
			<content:encoded><![CDATA[<p>A recent comment here at Ghacks asked for help in finding a software program or solution to password protect CDs or DVDs. The following post explains how to password protect data on CDs and DVDs. Please note that this method is only working with data CDs or DVDs and not audio or video CDs or DVDs that shall be played in standalone players. You can however use the method to encrypt a video DVD or audio CD and play it on the computer.</p>
<p>The only way to password protect data is to use encryption. It would theoretically be possible to zip or compress the files and use a password to protect them which would however mean that the data would need to be uncompressed before it could be used.</p>
<p><span id="more-15223"></span>All you need to password protect CDs or DVDs is True Crypt (or another software that can create encrypted containers). The Open Source encryption software can create so called containers that can be filled with data. These containers are password protected and can only be accessed if the correct password is supplied. The user does need True Crypt on the other hand to access the CDs and DVDs.</p>
<p>Start by <a href="http://www.truecrypt.org/">downloading</a> True Crypt from the official website. Click on the Create Volume button after installation. This opens a wizard that can be used to create an encrypted file container.</p>
<p><img src="http://www.ghacks.net/wp-content/uploads/2009/08/password_protect_cd-500x305.jpg" alt="password protect cd" title="password protect cd" width="500" height="305" class="alignnone size-medium wp-image-15224" /></p>
<p>Select to create a standard True Crypt volume.</p>
<p><img src="http://www.ghacks.net/wp-content/uploads/2009/08/password_protect_dvd-500x305.jpg" alt="password protect dvd" title="password protect dvd" width="500" height="305" class="alignnone size-medium wp-image-15225" /></p>
<p>Now select a filename and location on the hard drive for the container.</p>
<p><img src="http://www.ghacks.net/wp-content/uploads/2009/08/password_protect_data-500x305.jpg" alt="password protect data" title="password protect data" width="500" height="305" class="alignnone size-medium wp-image-15226" /></p>
<p>Keep the algorithms and select an appropriate size for the container. You might need to experiment with the sizes a bit. If sizes do not matter that much select 650 Megabytes for a CD container and 4000 Megabytes for a DVD container.</p>
<p><img src="http://www.ghacks.net/wp-content/uploads/2009/08/password_protection-500x305.jpg" alt="password protection" title="password protection" width="500" height="305" class="alignnone size-medium wp-image-15227" /></p>
<p>Now select a password and use the format button to format the container.</p>
<p><img src="http://www.ghacks.net/wp-content/uploads/2009/08/password_protect_media-500x305.jpg" alt="password protect media" title="password protect media" width="500" height="305" class="alignnone size-medium wp-image-15228" /></p>
<p>Now that the container is created it needs to be mounted which basically means to use the password to make it accessible in Windows. Click on the select file button in the True Crypt main menu and locate the created container. Now select the Mount button. True Crypt will ask for a password. Just enter the password supplied to access the container. The container becomes available as a drive letter in Windows then. You can now transfer data in the container. Once all data has been added it can be burned to CD or DVD depending on the size of the container.</p>
<p><img src="http://www.ghacks.net/wp-content/uploads/2009/08/mounted-499x203.jpg" alt="mounted" title="mounted" width="499" height="203" class="alignnone size-medium wp-image-15229" /></p>
<p>The user then needs to select the file on the CD or DVD whenever data on the disc should be accessed. Everything else will remain the same.</p>

	Tags: <a href="http://www.ghacks.net/tag/encrypt-cd/" title="encrypt cd" rel="tag">encrypt cd</a>, <a href="http://www.ghacks.net/tag/encrypt-dvd/" title="encrypt dvd" rel="tag">encrypt dvd</a>, <a href="http://www.ghacks.net/tag/open-source/" title="Open Source" rel="tag">Open Source</a>, <a href="http://www.ghacks.net/tag/password-protect-cd/" title="password protect cd" rel="tag">password protect cd</a>, <a href="http://www.ghacks.net/tag/password-protect-dvd/" title="password protect dvd" rel="tag">password protect dvd</a>, <a href="http://www.ghacks.net/tag/password-protection/" title="password protection" rel="tag">password protection</a>, <a href="http://www.ghacks.net/tag/true-crypt/" title="true-crypt" rel="tag">true-crypt</a>, <a href="http://www.ghacks.net/tag/windows-software/" title="windows software" rel="tag">windows software</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/10/21/xkcd-comic-wallpaper-changer/" title="Xkcd Comic Wallpaper Changer (October 21, 2009)">Xkcd Comic Wallpaper Changer</a> (2)</li>
	<li><a href="http://www.ghacks.net/2009/07/03/wireless-network-scanner-inssider/" title="Wireless Network Scanner inSSIDer (July 3, 2009)">Wireless Network Scanner inSSIDer</a> (3)</li>
	<li><a href="http://www.ghacks.net/2008/11/22/windows-tabbed-browsing/" title="Windows Tabbed Browsing (November 22, 2008)">Windows Tabbed Browsing</a> (4)</li>
	<li><a href="http://www.ghacks.net/2009/05/05/windows-run-aliases/" title="Windows Run Aliases (May 5, 2009)">Windows Run Aliases</a> (8)</li>
	<li><a href="http://www.ghacks.net/2009/05/12/windows-management-super-maximize-windows/" title="Windows Management: Super Maximize Windows (May 12, 2009)">Windows Management: Super Maximize Windows</a> (9)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/08/10/how-to-password-protect-data-on-cds-or-dvds/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Password Protect Files</title>
		<link>http://www.ghacks.net/2009/02/11/password-protect-files/</link>
		<comments>http://www.ghacks.net/2009/02/11/password-protect-files/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 16:06:52 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[encrypt files]]></category>
		<category><![CDATA[fileprotector]]></category>
		<category><![CDATA[password protect files]]></category>
		<category><![CDATA[password protection]]></category>
		<category><![CDATA[portable software]]></category>
		<category><![CDATA[protect data]]></category>
		<category><![CDATA[protect files]]></category>
		<category><![CDATA[windows software]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=10477</guid>
		<description><![CDATA[The Windows operating system does not ship with a program that can be used to password protect files easily. There are on the other hand several reasons why someone would want to password protect files. This can be to protect children by preventing their access to certain applications or files, protecting files in case they [...]]]></description>
			<content:encoded><![CDATA[<p>The Windows operating system does not ship with a program that can be used to password protect files easily. There are on the other hand several reasons why someone would want to password protect files. This can be to protect children by preventing their access to certain applications or files, protecting files in case they get lost and basically any kind of files that should not be opened by unauthorized users.</p>
<p><a href="http://www.androsasoft.net/download.htm">Androsa</a> FileProtector is a software to password protect files in the Windows operating system. It can be downloaded as a portable version or one that has to be installed on the computer system. Three different encryption algorithms can be selected to password protect the files including 256 bit AES encryption.</p>
<p>Using the software program is actually pretty straightforward. Files can be added by the file browser. The files that have been added can then be password protected in the next step. The FileProtector will then encrypt the selected files and change their file extension to .afp. That file extension is automatically assigned to the software if it was installed on the computer system. Portable users will have to assign it or select the program from a list if they want to decrypt protected files.</p>
<p><span id="more-10477"></span><img src="http://www.ghacks.net/wp-content/uploads/2009/02/password_protect_files-500x325.jpg" alt="password protect files" title="password protect files" width="500" height="325" class="alignnone size-medium wp-image-10478" /></p>
<p>The software can also delete files securely by overwriting them a number of times. This is an important step as the original files will be deleted after the encrypted copy has been created. Androsa FileProtector will display a password prompt if the file is executed on the computer system.</p>

	Tags: <a href="http://www.ghacks.net/tag/encrypt-files/" title="encrypt files" rel="tag">encrypt files</a>, <a href="http://www.ghacks.net/tag/fileprotector/" title="fileprotector" rel="tag">fileprotector</a>, <a href="http://www.ghacks.net/tag/password-protect-files/" title="password protect files" rel="tag">password protect files</a>, <a href="http://www.ghacks.net/tag/password-protection/" title="password protection" rel="tag">password protection</a>, <a href="http://www.ghacks.net/tag/portable-software/" title="portable software" rel="tag">portable software</a>, <a href="http://www.ghacks.net/tag/protect-data/" title="protect data" rel="tag">protect data</a>, <a href="http://www.ghacks.net/tag/protect-files/" title="protect files" rel="tag">protect files</a>, <a href="http://www.ghacks.net/tag/windows-software/" title="windows software" rel="tag">windows software</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2008/11/25/protect-games-with-passwords/" title="Protect Games With Passwords (November 25, 2008)">Protect Games With Passwords</a> (4)</li>
	<li><a href="http://www.ghacks.net/2009/09/11/password-protect-programs/" title="Password Protect Programs (September 11, 2009)">Password Protect Programs</a> (7)</li>
	<li><a href="http://www.ghacks.net/2009/09/01/youtube-video-search-is-a-barebone-youtube-downloader/" title="Youtube Video Search Is A Barebone Youtube Downloader (September 1, 2009)">Youtube Video Search Is A Barebone Youtube Downloader</a> (2)</li>
	<li><a href="http://www.ghacks.net/2009/10/21/xkcd-comic-wallpaper-changer/" title="Xkcd Comic Wallpaper Changer (October 21, 2009)">Xkcd Comic Wallpaper Changer</a> (2)</li>
	<li><a href="http://www.ghacks.net/2009/04/10/wireless-networking-software-homedale/" title="Wireless Networking Software Homedale (April 10, 2009)">Wireless Networking Software Homedale</a> (13)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/02/11/password-protect-files/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Protect Games With Passwords</title>
		<link>http://www.ghacks.net/2008/11/25/protect-games-with-passwords/</link>
		<comments>http://www.ghacks.net/2008/11/25/protect-games-with-passwords/#comments</comments>
		<pubDate>Tue, 25 Nov 2008 18:27:43 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[child protection]]></category>
		<category><![CDATA[game protection]]></category>
		<category><![CDATA[game protector]]></category>
		<category><![CDATA[parental controls]]></category>
		<category><![CDATA[password protection]]></category>
		<category><![CDATA[protect files]]></category>
		<category><![CDATA[protect games]]></category>
		<category><![CDATA[windows software]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=8537</guid>
		<description><![CDATA[Sharing a computer with children can be a great way for them to get started early on. It does however raise a few concerns that have to be addressed. One area of concern are games. Everyone can play games on a computer if they are installed on it. Sure, there are the parental controls in [...]]]></description>
			<content:encoded><![CDATA[<p>Sharing a computer with children can be a great way for them to get started early on. It does however raise a few concerns that have to be addressed. One area of concern are games. Everyone can play games on a computer if they are installed on it. Sure, there are the parental controls in Windows but most parents don&#8217;t know about this feature or feel that it is to complicated to setup.</p>
<p><a href="http://www.gameprotector.com/">Game Protector</a> could be the solution here. (There are many others like creating separate user profiles for example). The application can password protect any executable that you select. While it is called Game Protector it can virtually protect any other executable as well. Usage is simple and straightforward.</p>
<p>The user browses to the folder the executable is in and selects it in the file browser. He then enters the password to protect the file from users who do not have the password. It is also possible to change the icon of the executable and to rename it. </p>
<p><span id="more-8537"></span><img src="http://www.ghacks.net/wp-content/uploads/2008/11/game_protector-447x500.gif" alt="game protector" title="game protector" width="447" height="500" class="alignnone size-medium wp-image-8538" /></p>
<p>A click on Protect will protect the executable with the password. The main interface contains options to create a backup first and to unprotect an executable again.</p>
<p><img src="http://www.ghacks.net/wp-content/uploads/2008/11/enter_password.jpg" alt="" title="enter password" width="360" height="152" class="alignnone size-medium wp-image-8539" /></p>
<p>A password box is displayed whenever a protected executable is launched. Entering the password will start the executable normally while a false password will simply display the form again. One advantage of this service is that Game Protector does not have to be running in the background to protect the executable.</p>

	Tags: <a href="http://www.ghacks.net/tag/child-protection/" title="child protection" rel="tag">child protection</a>, <a href="http://www.ghacks.net/tag/game-protection/" title="game protection" rel="tag">game protection</a>, <a href="http://www.ghacks.net/tag/game-protector/" title="game protector" rel="tag">game protector</a>, <a href="http://www.ghacks.net/tag/parental-controls/" title="parental controls" rel="tag">parental controls</a>, <a href="http://www.ghacks.net/tag/password-protection/" title="password protection" rel="tag">password protection</a>, <a href="http://www.ghacks.net/tag/protect-files/" title="protect files" rel="tag">protect files</a>, <a href="http://www.ghacks.net/tag/protect-games/" title="protect games" rel="tag">protect games</a>, <a href="http://www.ghacks.net/tag/windows-software/" title="windows software" rel="tag">windows software</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/09/11/password-protect-programs/" title="Password Protect Programs (September 11, 2009)">Password Protect Programs</a> (7)</li>
	<li><a href="http://www.ghacks.net/2009/02/11/password-protect-files/" title="Password Protect Files (February 11, 2009)">Password Protect Files</a> (4)</li>
	<li><a href="http://www.ghacks.net/2009/08/10/how-to-password-protect-data-on-cds-or-dvds/" title="How To Password Protect Data On CDs or DVDs (August 10, 2009)">How To Password Protect Data On CDs or DVDs</a> (9)</li>
	<li><a href="http://www.ghacks.net/2008/10/21/zonescreen-finally-gets-64-bit-update/" title="ZoneScreen Finally Gets 64-bit Update (October 21, 2008)">ZoneScreen Finally Gets 64-bit Update</a> (7)</li>
	<li><a href="http://www.ghacks.net/2009/10/07/zc-dvd-creator-platinum-free-full-version/" title="ZC DVD Creator Platinum [Free Full Version] (October 7, 2009)">ZC DVD Creator Platinum [Free Full Version]</a> (19)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2008/11/25/protect-games-with-passwords/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Secure your server with htaccess</title>
		<link>http://www.ghacks.net/2008/03/31/secure-your-server-with-htaccess/</link>
		<comments>http://www.ghacks.net/2008/03/31/secure-your-server-with-htaccess/#comments</comments>
		<pubDate>Mon, 31 Mar 2008 17:08:47 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[The Web]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[basic auth]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[htpasswd]]></category>
		<category><![CDATA[password protection]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[website security]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=3672</guid>
		<description><![CDATA[I apologize if this topic drifts a bit away from the usual ones you find here at ghacks but I thought it would be extremely useful for everyone who has a server or webspace that supports htaccess and htpasswd. Htaccess files can do much more than just secure a directory on your server or website but I want to concentrate on this topic because it is something that I have been using on some of my websites for a very long time to increase security.]]></description>
			<content:encoded><![CDATA[<p>I apologize if this topic drifts a bit away from the usual ones you find here at ghacks but I thought it would be extremely useful for everyone who has a server or webspace that supports htaccess and htpasswd. Htaccess files can do much more than just secure a directory on your server or website but I want to concentrate on this topic because it is something that I have been using on some of my websites for a very long time to increase security.</p>
<p>I use it mainly to secure certain directories on my websites from being accessed without the proper authorization. This is the admin directory in the case of Wordpress for instance but could also be used to secure a directory that hosts some valuable files.</p>
<p>I would like to point out two possibilities that secure a directory with .htacess. The first is to protect the directory by only allowing users with a certain IP or IP range access to it. Everyone else would receive an access denied error message.</p>
<p><span id="more-3672"></span>The second possibility would be to create usernames and passwords that have to be supplied before accessing the content.</p>
<p><strong>IP Protection:</strong></p>
<p>Create a .htaccess file and add the following code to it:</p>
<p><code>AuthName "Protected Content"<br />
AuthType Basic<br />
<Limit GET POST><br />
order deny,allow<br />
deny from all<br />
#Comment<br />
allow from 255.255.255.255<br />
</Limit></code></p>
<p>Change the IP address in the last line to the one used by the user / users. You can use wildcards * if the user is receiving dynamic IPs from his ISP. It is possible to add as many allow from lines to the .htaccess file as you want. Place that htaccess file in the directory that you want to protect. (all subdirectories are affected as well.</p>
<p>The problem with this kind of protection is twofold. If your IP changes, say you are on holiday or accessing from a different location, you need to add or change the IPs in the htaccess code. Users who happen to have a IP of that range can access the content without problems. This is usually a user from the same ISP. </p>
<p>A more secure protection is the basic auth protection.</p>
<p><strong>Password Protection:</strong></p>
<p>Whenever a user tries to access a directory or file a popup will appear asking the user for a username and password. This method requires two files, a htaccess file and a htpasswd file. The htpasswd file stores the usernames and encrypted passwords and should be placed outside of the root directory of the website.</p>
<p><code>AuthName "Restricted Area"<br />
AuthType Basic<br />
AuthUserFile /path/to/.htpasswd<br />
AuthGroupFile /dev/null<br />
require valid-user</code></p>
<p>Since the passwords are encrypted you need to use a script to do that. A working one is the <a href="http://home.flash.net/cgi-bin/pw.pl">htpasswd</a> Content Generator. Just enter a username and password and click on encrypt. Paste the line on the results page into the htpasswd file and place it exactly in the path that you specified in AuthUserFile.</p>
<p>It is possible to combine both protections for added security. I would begin by evaluating if your webhost is allowing those kind of files.</p>

	Tags: <a href="http://www.ghacks.net/tag/apache/" title="apache" rel="tag">apache</a>, <a href="http://www.ghacks.net/tag/basic-auth/" title="basic auth" rel="tag">basic auth</a>, <a href="http://www.ghacks.net/tag/htaccess/" title="htaccess" rel="tag">htaccess</a>, <a href="http://www.ghacks.net/tag/htpasswd/" title="htpasswd" rel="tag">htpasswd</a>, <a href="http://www.ghacks.net/tag/password-protection/" title="password protection" rel="tag">password protection</a>, <a href="http://www.ghacks.net/tag/security/" title="Security" rel="tag">Security</a>, <a href="http://www.ghacks.net/tag/website/" title="website" rel="tag">website</a>, <a href="http://www.ghacks.net/tag/website-security/" title="website security" rel="tag">website security</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2008/12/16/website-security-check/" title="Website Security Check (December 16, 2008)">Website Security Check</a> (4)</li>
	<li><a href="http://www.ghacks.net/2006/04/21/how-secure-is-my-banks-website/" title="How secure is my banks website ? (April 21, 2006)">How secure is my banks website ?</a> (1)</li>
	<li><a href="http://www.ghacks.net/2007/01/31/host-your-own-webserver/" title="Host your own webserver (January 31, 2007)">Host your own webserver</a> (18)</li>
	<li><a href="http://www.ghacks.net/2008/08/05/zoundry-raven-portable-blog-editor/" title="Zoundry Raven portable Blog Editor (August 5, 2008)">Zoundry Raven portable Blog Editor</a> (6)</li>
	<li><a href="http://www.ghacks.net/2008/05/07/yahoo-marks-dangerous-search-results/" title="Yahoo marks dangerous search results (May 7, 2008)">Yahoo marks dangerous search results</a> (4)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2008/03/31/secure-your-server-with-htaccess/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
