<?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>Guimkie &#187; .htaccess</title>
	<atom:link href="http://guimkie.com/tag/htaccess/feed/" rel="self" type="application/rss+xml" />
	<link>http://guimkie.com</link>
	<description>Tutorials and great Mac software!</description>
	<lastBuildDate>Sun, 04 Dec 2011 21:05:22 +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 iWeb Sites</title>
		<link>http://guimkie.com/iweb/password-protect-iweb-sites/</link>
		<comments>http://guimkie.com/iweb/password-protect-iweb-sites/#comments</comments>
		<pubDate>Sun, 11 May 2008 07:07:14 +0000</pubDate>
		<dc:creator>Max (from Guimkie)</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[iTweak]]></category>
		<category><![CDATA[iWeb]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Password]]></category>

		<guid isPermaLink="false">http://guimkie.com/?p=123</guid>
		<description><![CDATA[The ability to password-protect iWeb-Sites is only available to those that publish to .Mac. Even though iWeb does not offer this ability to those who publish to a folder, it does not mean that it is not possible. This tutorial will show you how to easily protect your site with a password and an username.
For [...]]]></description>
			<content:encoded><![CDATA[<p>The ability to password-protect iWeb-Sites is only available to those that publish to .Mac. Even though iWeb does not offer this ability to those who publish to a folder, it does not mean that it is not possible. This tutorial will show you how to easily protect your site with a password and an username.</p>
<p>For this tutorial, we will be using a free application called <a href="http://itweak.guimkie.com" target="_blank">iTweak</a>. It has been made to simplify such additions to the iWeb application and so it is just perfect to use.</p>
<p>Please note that this tutorial is only available to those who publish to a folder and upload to a server that is capable of running .htaccess files. Please ask your hosting service first before you start this tutorial.</p>
<p>View a the final result (a demo) <a href="http://guimkie.com/iwebdemos/passwordprotectiwebsite/">here</a> or get right started.</p>
<p><span id="more-123"></span></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7241091367075931";
//Guimkie Header for Bubbled Theme
google_ad_slot = "4991557821";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<ol>
<li>As stated earlier, you will have to have downloaded the latest version of <a href="http://itweak.guimkie.com" target="_blank">iTweak</a> (this tutorial requires at least version 1.4.7). Publish your site from iWeb as well.<br />To protect your site, you need to have a password, a username and the absolute path to another file (more on that later).</li>
<li>We will start off with the login data.<br />htAccess, the method for the password protection, requires the login data to be encrypted. .<br />To encrypt your login data, visit <a target="_blank" href="http://www.kxs.net/support/htaccess_pw.html">this</a> site. Enter your username and your preferred password into the two provided textfields. For this tutorial I will be using &#8220;Hello&#8221; as my username and &#8220;World&#8221; as my password. See this example:
<p style="text-align: center;"><img src="http://guimkie.com/files/images/pps1.png" class="GUIMKIE-image-list" /></p>
<p>Click &#8220;Create Password&#8221; and continue to the next step.
</li>
<li>Now you will get a page with your username and you password jammed between two dark blue bars. It should say your username and then a combination of weird letters and symbols separated from the username through a colon.
<p style="text-align: center;"><img src="http://guimkie.com/files/images/pps1.1.png" class="GUIMKIE-image-list" /></p>
<p>Copy this whole encryption and get ready to paste it into iTweak (Shortcut: Apple + C).</li>
<li>Open up iTweak and navigate to the &#8220;Security&#8221; tab. Tick the option to password-protect your site and in the text-field labeled &#8220;Login Data&#8221; paste in the encrypted data from the previous step. Make sure you copy/type this password 100% correctly!!!<br />You can now type in your username in iTweak as well. Your window should now look something like this:
<p style="text-align: center;"><img src="http://guimkie.com/files/images/pps2.png" class="GUIMKIE-image-list" /></p>
</li>
<li>Now we have to deal with filling the last text-field; the absolute path to the .htpasswd file. There are two options to solve this. Either you can use a file I made to easily get the absolute path (requires a PHP-capable server) or you have to contact your hosting service and ask them about the absolute path.
<p>» Option A: Go ahead and download <a target="_blank" href="http://guimkie.com/downloads/load.php?id=32">this</a> file. Place the file named &#8220;info.php&#8221; inside the published folder from iWeb. Upload the whole folder (or just the contents, depending on how you like it) to your server. Now visit the file in your browser by typing a URL similar to this:</p>
<p><code>http://domain.com/Sitename/info.php</code></p>
<p>or if you only upload folder contents then type something similar to this:</p>
<p><code>http://domain.com/info.php</code></p>
<p>When you view the file you should find a huge blue table outlining all sorts of geeky stuff. Search for &#8220;SCRIPT_FILENAME&#8221; and to the right of that you will see the absolute path to the &#8220;info.php&#8221; file.<br />
Now copy the whole path except for the first slash and the &#8220;/info.php&#8221; extension:</p>
<p style="text-align: center;"><img src="http://guimkie.com/files/images/pps3.png" class="GUIMKIE-image-list" /></p>
<p>» Option B: If you server does not support PHP, then simply contact your hosting provider and ask them for the absolute path to be used inside your .htaccess file. They will know what your talking about.</p>
<p>In both cases, please note that the path varies from each person! There is no scheme or pattern that you can follow.
 </li>
<li>Having acquired the absolute path in the previous step, copy and paste it into the provided text-field in iTweak. See this image:
<p style="text-align: center;"><img src="http://guimkie.com/files/images/pps4.png" class="GUIMKIE-image-list" /></p>
</li>
<li>Now choose your published site by hitting the &#8220;Choose Published Site&#8221; button and then hit &#8220;Process Site.&#8221; iTweak will now protect your site with the 100% secure .htaccess method. It will create two invisible files that you won&#8217;t see in the Finder. If you upload your site to your server by simply grabbing the whole published folder, then thats fine and the protection will work fine. On the other hand, if you just upload the contents of a published folder, then you have to use something like <a target="_blank" href="http://panic.com/coda/">Coda</a> to view invisible files in your Mac and make sure they get uploaded as well!</li>
<li>Done! The next time you publish, simply reuse iTweak to add the protection and your ready to go.<br />If you run into any problems, please contact me via email and do NOT use the comments form below.</li>
</ol>
<p>Looking for iWeb Templates? Check out my huge collection right <a href="http://iweb.guimkie.com">here</a>.</p>
<p>If you have enjoyed this article and you wish to make a small donation, then feel free to do so by clicking <a href="http://guimkie.com/about/">here</a>.</p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-7241091367075931";
//Guimkie Header for Bubbled Theme
google_ad_slot = "4991557821";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://guimkie.com/iweb/password-protect-iweb-sites/feed/</wfw:commentRss>
		<slash:comments>52</slash:comments>
		</item>
	</channel>
</rss>

