<?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>Allan McRae &#187; WebSite</title>
	<atom:link href="http://allanmcrae.com/category/website/feed/" rel="self" type="application/rss+xml" />
	<link>http://allanmcrae.com</link>
	<description>One day this will feature a witty tagline…</description>
	<lastBuildDate>Thu, 26 Jan 2012 10:31:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Secure WordPress Administration For Free</title>
		<link>http://allanmcrae.com/2012/01/secure-wordpress-administration-for-free/</link>
		<comments>http://allanmcrae.com/2012/01/secure-wordpress-administration-for-free/#comments</comments>
		<pubDate>Mon, 02 Jan 2012 00:23:27 +0000</pubDate>
		<dc:creator>Allan</dc:creator>
				<category><![CDATA[WebSite]]></category>

		<guid isPermaLink="false">http://allanmcrae.com/?p=1388</guid>
		<description><![CDATA[Many months ago I noticed that I logged into my blog over plain HTTP and thought to myself that I really must do something about that one day. And that day is&#8230; well&#8230; a couple of days ago! I honestly was never really too concerned about logging in insecurely as the chances of anyone actually [...]]]></description>
			<content:encoded><![CDATA[<p>Many months ago I noticed that I logged into my blog over plain HTTP and thought to myself that I really must do something about that one day.  And that day is&#8230; well&#8230; a couple of days ago!  I honestly was never really too concerned about logging in insecurely as the chances of anyone actually wanting to gain access to this blog and being in a position to exploit the insecure login is minimal.  My guess would be that the majority of self-managed WordPress installs are administered over plain HTTP.</p>
<p>So apart from general apathy, what kept me from fixing this?  Cost was probably the main issue&#8230;  Any cost for a SSL certificate would not be particularly justified in my case.  I also did not want to use a self-signed certificate as I find the security warnings that all web browsers give about untrusted certificates annoying enough to not want them on my site.  That also rules out the free SSL certificates from CAcert, as the CAcert root certificate is not included by most browsers by default.</p>
<p>Then I saw a post somewhere about the free certificates given out by <a href="https://www.startssl.com/?app=1">StartSSL</a>.  The price is right and the root certificate is commonly included so all seems good.  There is not much actual validation that goes on to get one of these &#8211; my email and domain name were &#8220;verified&#8221; by sending emails&#8230; &#8211; so they would not be good for any site where trust is actually needed (such as anything where any personal and financial data are being collected).</p>
<p>Once validated, all I had to do was provide a <a href="http://en.wikipedia.org/wiki/Certificate_signing_request">CSR</a> and they provided me the certificate.  My webhost then uploaded that certificate and broke everything!  The HTTPS version of my site was giving the error &#8220;ssl_error_rx_record_too_long&#8221;, which is actually quite uninformative as it covers a wide range of actual issues, and the HTTP version for some reason lost all access to files even thought they were clearly still there when I checked.  This took me a few hours to notice as I had to wait for the DNS entries to propagate, so the issue was reported at 5pm on Friday the 30th of December&#8230;  I really thought my website would be down until the 3nd of January when the support desk reopened, but everything was fixed a few hours later.  So good service given what I pay, but the whole issue could have been avoided with a simple check at their end once the SSL certificate was installed.</p>
<p>Once you have your SSL certificate installed and ready to go, making WordPress enforce SSL usage for all administration tasks is simple.  Simply add the following to your <tt>wp-config.php</tt> file:</p>
<p><code>define('FORCE_SSL_ADMIN', true);</code></p>
<p>Now all your blog administration is secure(ish). The final thing to do was to check whether browsing my website using HTTPS worked&#8230;   No, it did not!  I was getting messages about the site only being partially encrypted.  A quick search showed I serve all my images using the full URL rather than a relative one.  I did this because a certain Linux distribution&#8217;s Planet feed did not show images otherwise (or at least that was the case a long time ago &#8211; I have not tested lately).  I could go through and adjust all my image links to use HTTPS, or just disable HTTPS access to my website.  I chose the latter as nothing on my site is that important that it needs to be encrypted and I thought it would be the quicker option&#8230;   Several hours later and this is the rule you need to add to your <tt>.htaccess</tt> file to achieve this:</p>
<p><code>RewriteCond %{ENV:HTTPS} on [NC]<br />
RewriteRule !^wp-(admin/|login.php|includes/|content/)(.*)$ http://allanmcrae.com%{REQUEST_URI} [R,L]</code></p>
<p>The only real trick there is that the WordPress login and administration interface uses files from the <tt>wp-includes</tt> and <tt>wp-contents</tt> directories so they need to be excluded from the <tt>RewriteRule</tt>.</p>
<p>So&#8230; remember how I said self-signed certificates were annoying as all visitors to the site would get a warning.  Well, now I force HTTP usage, that whole argument is irrelevant as only I would see the SSL certificate when I access the administration interface.  But I at least have the option of serving parts of the site over HTTPS using a recognized certificate if I ever feel the need.</p>
]]></content:encoded>
			<wfw:commentRss>http://allanmcrae.com/2012/01/secure-wordpress-administration-for-free/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Where Did My Bandwidth Go?</title>
		<link>http://allanmcrae.com/2011/07/where-did-my-bandwidth-go/</link>
		<comments>http://allanmcrae.com/2011/07/where-did-my-bandwidth-go/#comments</comments>
		<pubDate>Sat, 23 Jul 2011 09:06:14 +0000</pubDate>
		<dc:creator>Allan</dc:creator>
				<category><![CDATA[WebSite]]></category>

		<guid isPermaLink="false">http://allanmcrae.com/?p=1267</guid>
		<description><![CDATA[Here is what happens when you make a post with around 2MB of images in it&#8230; That was a spike from my usual 100MB bandwidth use a day to over 2GB! I usually only use about 2 or 3GB for the whole month, so that was a bit of a surprise. Also, I only pay [...]]]></description>
			<content:encoded><![CDATA[<p>Here is what happens when you make a post with around 2MB of images in it&#8230;</p>
<p style="text-align: center;"><img align="center" src="http://allanmcrae.com/images/bandwidth.png" alt="Bandwidth Usage" /></p>
<p>That was a spike from my usual 100MB bandwidth use a day to over 2GB!  I usually only use about 2 or 3GB for the whole month, so that was a bit of a surprise.  Also, I only pay for 25GB a month so if it sustained at over 800MB a day I was going to be in trouble&#8230;   (well, it would only be $2 more for an additional 50GB, so not too much trouble!)</p>
<p>So where did all that bandwidth go?  Looking at my blog access stats, only about 20% of it is from people actually visiting my site. So the rest seems to come from people looking at my RSS feed, either directly or through sites like <a href="http://planet.archlinux.org/">Planet Arch Linux</a> that syndicate the feed.</p>
<p>That means I could drastically reduce my bandwidth usage by posting only a summary to my feed.  But given I really dislike seeing only article summaries in my feed reader, it is not something I would really want to do.  It is not as if my site has any advertising, so there is little point driving people here.  Also, I would probably need to spend a few hours getting WordPress to actually provide summaries in the feeds the way I would like them (because WordPress never does anything quite &#8220;right&#8221;&#8230;).</p>
]]></content:encoded>
			<wfw:commentRss>http://allanmcrae.com/2011/07/where-did-my-bandwidth-go/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Site Fully Restored</title>
		<link>http://allanmcrae.com/2011/02/site-fully-restored/</link>
		<comments>http://allanmcrae.com/2011/02/site-fully-restored/#comments</comments>
		<pubDate>Sat, 19 Feb 2011 12:02:59 +0000</pubDate>
		<dc:creator>Allan</dc:creator>
				<category><![CDATA[WebSite]]></category>

		<guid isPermaLink="false">http://allanmcrae.com/?p=706</guid>
		<description><![CDATA[After some interesting attempts at importing my old posts and comments, followed by some manual post recovery and editing of the MySQL database, it appears my site is completely restored and running on my new host. All files should hopefully have migrated too&#8230; but let me know if you spot anything missing. While I was [...]]]></description>
			<content:encoded><![CDATA[<p>After some interesting attempts at importing my old posts and comments, followed by some manual post recovery and editing of the MySQL database, it appears my site is completely restored and running on my new host.  All files should hopefully have migrated too&#8230;  but let me know if you spot anything missing.</p>
<p>While I was restoring everything, I took the time to update my <a href="http://wordpress.org/extend/themes/simplex">theme</a> and make my modifications the proper way using a <a href="http://codex.wordpress.org/Child_Themes">child theme</a>.  I&#8217;m still not 100% satisfied with the adjustments; the menu at the top could be reduced in height by a few pixels and the line under the header should always span the page.  I am entirely stuck on how to achieve those, so I would be very appreciative if any CSS experts out there want to post fixes for those.</p>
<p>Now, on to posting the insightful blog posts I am so well known for!</p>
]]></content:encoded>
			<wfw:commentRss>http://allanmcrae.com/2011/02/site-fully-restored/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Moving Hosting Providers</title>
		<link>http://allanmcrae.com/2011/02/moving-hosting-providers/</link>
		<comments>http://allanmcrae.com/2011/02/moving-hosting-providers/#comments</comments>
		<pubDate>Wed, 09 Feb 2011 00:28:34 +0000</pubDate>
		<dc:creator>Allan</dc:creator>
				<category><![CDATA[WebSite]]></category>

		<guid isPermaLink="false">http://allanmcrae.com/?p=6</guid>
		<description><![CDATA[After struggling with my current provider and their unstable MySQL server for the past couple of months, the final straw was broken when the the posts table from my WordPress database became gone. So it is goodbye to 000webhost and your free hosting (hence not too much complaining from me&#8230;). Given my total website requirements [...]]]></description>
			<content:encoded><![CDATA[<p>After struggling with my current provider and their unstable MySQL server for the past couple of months, the final straw was broken when the the posts table from my WordPress database became gone.   So it is goodbye to <a href="http://www.000webhost.com/">000webhost</a> and your free hosting (hence not too much complaining from me&#8230;).</p>
<p>Given my total website requirements are modest &#8211; WordPress (PHP-4.3 and MySQL-4.1.2) and some file hosting &#8211; there is little point in me getting a VPS (and having to figure out how to set all that up!).  So I am giving <a href="http://laughingsquid.us/">Laughing Squid</a> a go.  I figure you can not go too far wrong at $6 a month.</p>
<p>So now I just have to restore everything&#8230;  These things always happen when you have critical deadlines for work, so this will take a few weeks.  I have backups to restore from (although a couple of my recent blog posts are missing and require rescuing from the Google cache), so everything will be back eventually.</p>
<p>Edit: comments have been temporarily disabled to make my restore easier.</p>
]]></content:encoded>
			<wfw:commentRss>http://allanmcrae.com/2011/02/moving-hosting-providers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spam, Spam, Spam</title>
		<link>http://allanmcrae.com/2009/06/spam-spam-spam/</link>
		<comments>http://allanmcrae.com/2009/06/spam-spam-spam/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 09:16:58 +0000</pubDate>
		<dc:creator>Allan</dc:creator>
				<category><![CDATA[WebSite]]></category>

		<guid isPermaLink="false">http://allanmcrae.com/?p=151</guid>
		<description><![CDATA[I had turned off the need to moderate comments before their appearance on this blog as an experiment to see how long it took for spammers to start posting. Turns out, it was not very long&#8230; but taking 25 days is still slightly longer than I had expected. So comment moderation is turned back on. [...]]]></description>
			<content:encoded><![CDATA[<p>I had turned off the need to moderate comments before their appearance on this blog as an experiment to see how long it took for spammers to start posting.  Turns out, it was not very long&#8230; but taking 25 days is still slightly longer than I had expected. So comment moderation is turned back on.</p>
<p>While most spam is obvious posting of links to websites, I just do not understand some of the spam that I have received.  One IP address (which is well know for its spam), posted messages like &#8220;<em>The best information i have found exactly here. Keep going Thank you</em>&#8221; and &#8220;<em>Hi, very nice post. I have been wonder’n bout this issue,so thanks for posting</em>&#8220;.  Do a <a href="http://www.google.com/#hl=en&#038;safe=off&#038;q=%22The+best+information+i+have+found+exactly+here.+Keep+going+Thank+you%22&#038;aq=f&#038;oq=&#038;aqi=&#038;fp=285LlMnhyJ8">google</a> <a href="http://www.google.com/#hl=en&#038;safe=off&#038;q=%22Hi%2C+very+nice+post.+I+have+been+wonder%E2%80%99n+bout+this+issue%2Cso+thanks+for+posting%22&#038;aq=f&#038;oq=&#038;aqi=&#038;fp=1&#038;cad=b">search</a> for those phrases and note how frequent those exact comments are.  What is strange is that the &#8220;people&#8221; posting these comments seem to have nothing to gain, at least initially.  They listed website their website as google.com and their email address is not shown so no-one can reply to them. I suppose they want to get through that initial moderation phase so that they can posted unhindered crap in the future. You have got to admire their determination&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://allanmcrae.com/2009/06/spam-spam-spam/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>New Site!</title>
		<link>http://allanmcrae.com/2009/05/new-site/</link>
		<comments>http://allanmcrae.com/2009/05/new-site/#comments</comments>
		<pubDate>Mon, 18 May 2009 13:48:10 +0000</pubDate>
		<dc:creator>Allan</dc:creator>
				<category><![CDATA[WebSite]]></category>

		<guid isPermaLink="false">http://allanmcrae.com/?p=3</guid>
		<description><![CDATA[The death of Google Page Creator (and the inability to do anything decent with Google Sites) has finally pushed me to get my own domain and make a &#8220;proper&#8221; website.  Now all I have to do is figure out how to make my WordPress install look semi-decent.  This could take a while&#8230; Edit: decided to [...]]]></description>
			<content:encoded><![CDATA[<p>The death of Google Page Creator (and the inability to do anything decent with Google Sites) has finally pushed me to get my own domain and make a &#8220;proper&#8221; website.  Now all I have to do is figure out how to make my WordPress install look semi-decent.  This could take a while&#8230;</p>
<p>Edit: decided to go with a slightly modified <a href="http://wordpress.org/extend/themes/simplex">simpleX</a> theme for the time being.  There are a few things I still do not like about it but it is better than the default WordPress theme.</p>
]]></content:encoded>
			<wfw:commentRss>http://allanmcrae.com/2009/05/new-site/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

