<?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>Holy Shmoly! &#187; logins</title>
	<atom:link href="http://ocaoimh.ie/tag/logins/feed/" rel="self" type="application/rss+xml" />
	<link>http://ocaoimh.ie</link>
	<description>Look what I found today!</description>
	<lastBuildDate>Fri, 25 May 2012 17:12:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Why you should limit login attempts</title>
		<link>http://ocaoimh.ie/2009/07/15/why-you-should-limit-login-attempts/</link>
		<comments>http://ocaoimh.ie/2009/07/15/why-you-should-limit-login-attempts/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 09:03:18 +0000</pubDate>
		<dc:creator>Donncha O Caoimh</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[irishblogs]]></category>
		<category><![CDATA[logins]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://ocaoimh.ie/?p=89495164</guid>
		<description><![CDATA[Some idiot at 213.155.4.184 hit all my websites over the last few days trying to login to my blogs. He fired off hundreds of automated requests probing and searching and testing my admin login. Each request had a different password. I use difficult to guess passwords but seeing the attempts was disconcerting. I went searching [...]]]></description>
			<content:encoded><![CDATA[<div align='center'><a href="http://ocaoimh.ie/ocaoimh/2009/07/limit-logins.gif"><img src="http://ocaoimh.ie/ocaoimh/2009/07/limit-logins-300x202.gif" style='border: 1px solid #333' alt="limit-logins" width="300" height="202" class="aligncenter size-medium wp-image-89495165" /></a></div>
<p>Some idiot at 213.155.4.184 hit all my websites over the last few days trying to login to my blogs. He fired off hundreds of automated requests probing and searching and testing my admin login. Each request had a different password. I use difficult to guess passwords but seeing the attempts was disconcerting.</p>
<p>I went searching and found the <a href="http://devel.kostdoktorn.se/limit-login-attempts/">Limit Login Attempts</a> plugin. After installing, a new page appears under Settings with a wealth of options:</p>
<div align='center'><a href="http://ocaoimh.ie/ocaoimh/2009/07/lockout.gif"><img style='border: 1px solid #333' src="http://ocaoimh.ie/ocaoimh/2009/07/lockout-250x300.gif" alt="lockout" width="250" height="300" class="aligncenter size-medium wp-image-89495167" /></a></div>
<p>I&#8217;m glad I did install it, it caught the same guy when he hit this blog a few hours later! You should probably install it too.</p>
<p>PS. Matt <a href="http://twitter.com/mattfreedman/status/2648524091">asked me</a> to explain how I recorded those requests. There is a WordPress plugin that sends an email when a POST request is made but I threw this code into a file and load it with the &#8220;auto_prepend_file&#8221; directive in my php.ini (saves adding it to every installation of WordPress on my server)</p>
<blockquote><p><code>if ( ( isset( $HTTP_RAW_POST_DATA ) || !empty( $_POST ) ) &amp;&amp; $_SERVER[ 'REQUEST_URI' ] != '/wp-cron.php?doing_wp_cron' &amp;&amp; $_SERVER[ 'SCRIPT_NAME' ] != '/wp-comments-post.php' &amp;&amp; substr( $_SERVER[ 'REQUEST_URI' ], -10 ) != '/trackback' &amp;&amp; substr( $_SERVER[ 'REQUEST_URI' ], -11 ) != '/trackback/' ) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;mail( "MYEMAIL@gmail.com", $_SERVER[ 'HTTP_HOST' ] . " POST request: " . $_SERVER[ 'REMOTE_ADDR' ], "URL: {$_SERVER[ 'REQUEST_URI' ]}\nPOST: " . print_r( $_POST, 1 ) . "\nCOOKIES: " . print_r( $_COOKIE, 1 ) . "\nHTTP_RAW_POST_DATA: $HTTP_RAW_POST_DATA" );<br />
}</code></p></blockquote>
 <img src="http://ocaoimh.ie/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=89495164" width="1" height="1" style="display: none;" />
<p><strong>Related Posts</strong><ul><li> <a href="http://ocaoimh.ie/2012/01/13/xbox-360-vulnerability-no-just-weak-passwords/" rel="bookmark" title="Permanent Link: Xbox 360 vulnerability? No, just weak passwords!">Xbox 360 vulnerability? No, just weak passwords!</a></li><li> <a href="http://ocaoimh.ie/2002/11/28/ok-so-you-have-to-b/" rel="bookmark" title="Permanent Link: Ok, so you have to bring the s &#8230;">Ok, so you have to bring the s &#8230;</a></li><li> <a href="http://ocaoimh.ie/2005/01/08/wpmu-update-improved-caching/" rel="bookmark" title="Permanent Link: WPMU Update &#8211; Improved Caching">WPMU Update &#8211; Improved Caching</a></li></ul></p>]]></content:encoded>
			<wfw:commentRss>http://ocaoimh.ie/2009/07/15/why-you-should-limit-login-attempts/feed/</wfw:commentRss>
		<slash:comments>62</slash:comments>
		</item>
	</channel>
</rss>

