<?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>Lair360 Blog &#187; Wordpress</title>
	<atom:link href="http://lair360.co.uk/blog/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://lair360.co.uk/blog</link>
	<description></description>
	<lastBuildDate>Sat, 19 May 2012 09:14:20 +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>Slap that spammers in the face!</title>
		<link>http://lair360.co.uk/blog/1078/slap-that-spammers-in-the-face/</link>
		<comments>http://lair360.co.uk/blog/1078/slap-that-spammers-in-the-face/#comments</comments>
		<pubDate>Sat, 30 Apr 2011 22:58:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mini - Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://lair360.co.uk/blog/?p=1078</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://lair360.co.uk/blog/1078/slap-that-spammers-in-the-face/' addthis:title='Slap that spammers in the face! ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>Slap that spammers in the face! When I was maintaining my ‘Wordpress’ account, I was a little confuse and frustrated. For example, I already altered individual settings from the ‘Discussion’ area. But, these spammers (which are stupid), they just want to play dirty and never leave my blog alone and my brain from exploding. So, [...]]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://lair360.co.uk/blog/1078/slap-that-spammers-in-the-face/' addthis:title='Slap that spammers in the face! ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div><p><strong>Slap that spammers in the face!</strong></p>
<p>When I was maintaining my ‘Wordpress’ account, I was a little confuse and frustrated. For example, I already altered individual settings from the ‘Discussion’ area. But, these spammers (which are stupid), they just want to play dirty and never leave my blog alone and my brain from exploding. So, I decided to drop the bomb on these hooligans and teach them a lesson!</p>
<p>For those who had these problem, then listen carefully &#8211; if we are going to kick those spam-bots a lesson! But, don’t worry, these technique are SAFE and secure for everyone…</p>
<p><strong>Method 01 – Utilize 3rd party plugins</strong></p>
<p>1.] Direct your browser to this site and download ‘Bad Behavior’ plugins.</p>
<p>http://bad-behavior.ioerror.us/download/</p>
<p>2.] Login to Cpanel / Plesk and direct yourself to this directory. However, your current directory may be different from the given example.</p>
<p>../blog/wp-content/plugins</p>
<p>3.] Upload the package and extract it. After that, you must login to WP account and activate this plugin. For more information, you may direct yourself to the given link (above) and learn how to use this plugin by yourself…</p>
<p><strong>Method – Rename a FILE!</strong></p>
<p>1.] Login to the root directory (Cpanel / Plesk) and rename this file. However, don’t be stupid and delete it.</p>
<p>File to rename: “wp-comments-post.php”</p>
<p>2.] Right click on this file and add this phrase in front: “backup.” and accept the change.</p>
<p>3.] Logout and let the hooligans hit their 404 jackpot!</p>
<p><strong>Important:</strong> if there is on-going issues about &#8216;spam comment&#8217;, then don&#8217;t hesitate to trash &#8211; dump &#8211; delete &#8216;wp-comments-post.php&#8217;. This is because, spammers are now capable looking for this file (it doesn&#8217;t matter if they are modify or hidden). They will eventually find it and bombard you once more.</p>
<p>Tips &#038; Tricks: regarding to security and safety, please use &#8216;htaccess&#8217; to block offensive hostname / IP addresses. However, please don&#8217;t play stupid and input your own IP address&#8230;</p>
<pre class="brush: plain; title: ; notranslate">
order allow,deny
deny from 123.45.6.7
deny from 012.34.5.6
deny from .bad-site.com
deny from .evil-hackers.org
allow from all
</pre>
<p>Lair360 &#8211; &#8220;It&#8217;s NICE to play Evil!&#8221;</p>
<p><strong>Copyrighted By Lair360</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://lair360.co.uk/blog/1078/slap-that-spammers-in-the-face/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Source – Simple ADS Rotator!</title>
		<link>http://lair360.co.uk/blog/1067/php-source-%e2%80%93-simple-ads-rotator/</link>
		<comments>http://lair360.co.uk/blog/1067/php-source-%e2%80%93-simple-ads-rotator/#comments</comments>
		<pubDate>Thu, 10 Mar 2011 18:23:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP & HTML Script]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://lair360.co.uk/blog/?p=1067</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://lair360.co.uk/blog/1067/php-source-%e2%80%93-simple-ads-rotator/' addthis:title='PHP Source – Simple ADS Rotator! ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>For those who is against “Adsense” and other advertised agency, then why don’t you try this script on your own site? It’s also simple and very easy to implement &#8211; if your server has “parsing – enabled” for HTML WebPages. Notes: this script will only work on webpages which utilize PHP source. Nevertheless, it will [...]]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://lair360.co.uk/blog/1067/php-source-%e2%80%93-simple-ads-rotator/' addthis:title='PHP Source – Simple ADS Rotator! ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div><p>For those who is against “Adsense” and other advertised agency, then why don’t you try this script on your own site? It’s also simple and very easy to implement &#8211; if your server has “parsing – enabled” for HTML WebPages.</p>
<p><strong>Notes:</strong> this script will only work on webpages which utilize PHP source. Nevertheless, it will also work on hybrid &#8211; website which deploys PHP parsing for HTML.</p>
<p>1.] Copy this script and save it as: “ads-block.php”. But, don’t forget to integrate this file on your server.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
$fcontents = join ('', file ('../ads-block/ads-block.txt'));
$s_con = split(&quot;#&quot;,$fcontents);

$banner_no = rand(0,(count($s_con)-1));
echo $s_con[$banner_no];
?&gt;
</pre>
<p>2.] Create a new ‘text’ file (*.txt) and give it a name. After that, you must integrate these sources and modify it to your hearth’s content. However, you must keep this ‘#’ symbol. This is basically used as a ‘break’ for each advert, instead of spacing.</p>
<pre class="brush: php; title: ; notranslate">
&lt;a href=&quot;Link01&quot; target=&quot;_blank&quot; &gt;
&lt;img src=&quot;/ad-sponsor/468x60_ads.jpg&quot; width=&quot;468&quot; height=&quot;60&quot; alt=&quot;Adverts Here!&quot; border=&quot;0&quot;&gt;&lt;/a&gt;
#
&lt;a href=&quot;Link02&quot; target=&quot;_blank&quot; &gt;
&lt;img src=&quot;/ad-sponsor/468x60_ads.jpg&quot; width=&quot;468&quot; height=&quot;60&quot; alt=&quot;Adverts Here!&quot; border=&quot;0&quot;&gt;&lt;/a&gt;
#
&lt;a href=&quot;Link03&quot; target=&quot;_blank&quot; &gt;
&lt;img src=&quot;/ad-sponsor/468x60_ads.jpg&quot; width=&quot;468&quot; height=&quot;60&quot; alt=&quot;Adverts Here!&quot; border=&quot;0&quot;&gt;&lt;/a&gt;
#
&lt;a href=&quot;Link04&quot; target=&quot;_blank&quot; &gt;
&lt;img src=&quot;/ad-sponsor/468x60_ads.jpg&quot; width=&quot;468&quot; height=&quot;60&quot; alt=&quot;Adverts Here!&quot; border=&quot;0&quot;&gt;&lt;/a&gt;
</pre>
<p>3.] Grab this script and place them anywhere on your webpage. However, you will need to replace &#8220;php_include&#8221; directory and point it to this file: &#8220;ads-block.php&#8221;. But, don&#8217;t forget to check your server if you want to use these within HTML environment.</p>
<p>WordPress</p>
<pre class="brush: php; title: ; notranslate">&lt;?php include (TEMPLATEPATH . '/ads-block.php'); ?&gt;</pre>
<p>HTML Webpage</p>
<pre class="brush: php; title: ; notranslate">&lt;?php include(&quot;../directory/ads-block.php&quot;); ?&gt;</pre>
<p>WordPress / HTML</p>
<pre class="brush: php; title: ; notranslate">&lt;?php include $_SERVER['DOCUMENT_ROOT'] . &quot;/directory/ads-block.php&quot;; ?&gt;</pre>
<p>4.] You are done!</p>
]]></content:encoded>
			<wfw:commentRss>http://lair360.co.uk/blog/1067/php-source-%e2%80%93-simple-ads-rotator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vol 4 – Get Wild with WordPress Security &amp; Spam!</title>
		<link>http://lair360.co.uk/blog/920/vol-4-%e2%80%93-get-wild-with-wordpress-security-spammers/</link>
		<comments>http://lair360.co.uk/blog/920/vol-4-%e2%80%93-get-wild-with-wordpress-security-spammers/#comments</comments>
		<pubDate>Sun, 26 Sep 2010 21:09:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Vol - Lair360 Episode]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://lair360.co.uk/blog/?p=920</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://lair360.co.uk/blog/920/vol-4-%e2%80%93-get-wild-with-wordpress-security-spammers/' addthis:title='Vol 4 – Get Wild with WordPress Security &#38; Spam! ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>Version: 11.2 Revision: 33 Build 21 Vol 4 – Get Wild with WordPress Security &#038; Spam! Yesterday &#8211; night, I had a short email regarding to php.ini or php.cgi access. But, when I did some research, it was a little frightening! For example, if we take a cat and the critter was able to penetrate [...]]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://lair360.co.uk/blog/920/vol-4-%e2%80%93-get-wild-with-wordpress-security-spammers/' addthis:title='Vol 4 – Get Wild with WordPress Security &amp; Spam! ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div><p><strong>Version: 11.2<br />
Revision: 33 Build 21</p>
<p>Vol 4 – Get Wild with WordPress Security &#038; Spam!<br />
</strong><br />
Yesterday &#8211; night, I had a short email regarding to php.ini or php.cgi access. But, when I did some research, it was a little frightening! For example, if we take a cat and the critter was able to penetrate your system server, just by altering any of your php.ini, php.cgi, *admin.php and other server &#8211; directory, then the chances are risky, if you are not around to keep these devils outside your door. They could also inject malicious codes or viruses that can alter any of your SQL database. Although, that sounds like a bunch of morons trying to kill our hard work! Now, if you excuse me, I have some coding – artillery for you to try out. I hope you like them. But, make sure to give these spammers, evil – bots and other devils a lesson! We don’t want them to kiss our server goodbye. We want them to kiss their ass goodbye!!</p>
<p>Have a good time…</p>
<p>1.] If you want to hide all of your errors from these idiots, then I would suggest you to hide your “Wordpress Revision Number” and Errors (which appears if you made a mistake in your theme directory).</p>
<p><strong>Hide WordPress Revision – functions.php</strong></p>
<pre class="brush: php; title: ; notranslate">
add_filter( 'the_generator', create_function('$a', &quot;return null;&quot;) );
</pre>
<p><strong>Hide WordPress Login Errors – functions.php</strong></p>
<pre class="brush: php; title: ; notranslate">
add_filter('login_errors',create_function('$a', &quot;return null;&quot;));
</pre>
<p>2.] If you are using “Admin” as your default username, then you will need to change it by copying this snippet into your SQL console (phpMyAdmin). </p>
<pre class="brush: php; title: ; notranslate">
UPDATE wp_users SET user_login = 'New Username' WHERE user_login = 'Admin';
</pre>
<p><strong>Notes:</strong> type in your new ‘username’ and keep ‘Admin’ as default in the process.<br />
After that, you will need to assign all articles and transfer them to your new username. Here is the source if you want to change the author’s name…</p>
<pre class="brush: php; title: ; notranslate">
UPDATE wp_posts SET post_author = ‘NEW_AUTHOR_ID’ WHERE post_author = ‘OLD_AUTHOR_ID’;
</pre>
<p>3.] Working on your blog and forgot to dump your spam comments? If you don’t trash your hooligans regularly, there may be security issue, especially your SQL database!</p>
<p>The biggest nightmare towards spam comment is “SQL injection; modification on your articles and server overload.” So, if I were you, would rather look at the spam area and erase them first before working.</p>
<pre class="brush: php; title: ; notranslate">
DELETE FROM wp_comments WHERE comment_approved = 'spam';
</pre>
<p>0 = Awaiting Moderation<br />
1 = Approved Comment<br />
spam = Area marked as Spam</p>
<p>If you don’t want to waist your time looking at your junk box, then take this script and slap them into “phpMyAdmin” to disable WordPress comments (this sql script will disable all comments on your articles).</p>
<pre class="brush: php; title: ; notranslate">
UPDATE posts p SET comment_status = 'closed', ping_status = 'closed' WHERE comment_status = 'open';
</pre>
<p>For some odd &#8211; reason, if you want to re-enable it for commenting, then take this script to revert back. But, I am warning you! Spammers will continue to bombard your site – regardless of your situation.</p>
<pre class="brush: php; title: ; notranslate">
UPDATE posts p SET comment_status = 'open', ping_status = 'open' WHERE comment_status = 'closed';
</pre>
<p>4.] For those who are using private server with dedicated IP addresses, then here is the fun bit for security lovers! Although, this session requires you to create a backup of your “wp-config.php” file. Once you are done with this process, you may continue and add these sources. But, don’t forget to refresh your website for the changes to take effect.</p>
<pre class="brush: php; title: ; notranslate">
For SSL Login, you will need this source: define ('FORCE_SSL_LOGIN', true);
For SSL Admin – panel, you will need apply this source: define ('FORCE_SSL_ADMIN', true);
</pre>
<p><strong>Notes:</strong> these script were taken from a previous article. It was written here: <a href="http://lair360.co.uk/blog/815/">http://lair360.co.uk/blog/815/</a></p>
<p>5.] If you want to block comment with another layer of protection, then staple these script into your .htaccess file.</p>
<pre class="brush: php; title: ; notranslate">
RewriteEngine On
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*/wp-comments-post\.php.*\ HTTP/ [NC]
RewriteRule .* - [F,NS,L]
</pre>
<p>^ This script will also try to block any comment attempts with a blank ‘HTTP_REFERER’ field. </p>
<pre class="brush: php; title: ; notranslate">
RewriteEngine On
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .wp-comments-post.php
RewriteCond %{HTTP_REFERER} !mydomain.co.uk [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) http://%{REMOTE_ADDR}/$ [R=301,L]
</pre>
<p>^ The above source will look for any particular referrers when the wp-comments-post.php file is accessed. If the referrer exists in your blog, then commenting is allowed. However, failing to provide proper referrers (real user) will result as a redirect.</p>
<p><strong>Notes:</strong> by any chance, you cannot access this file: “.htaccess”, then why not use this php-source and place them inside your “functions.php”, just to kick out these miserable hooligans?</p>
<pre class="brush: php; title: ; notranslate">
function check_referrer() {
    if (!isset($_SERVER['HTTP_REFERER']) || $_SERVER['HTTP_REFERER'] == “”) {
        wp_die( __('Please enable referrers in your browser!') );
    }
}
add_action('check_comment_flood', 'check_referrer');
</pre>
<p>6.] If you are using Google Analytics, then you will need to wrap all of your Google codes in-between, just to stop the tracking of your Admin pages or anything else that is important. In other terms, you really don’t want Google to track your footstep as you are trying to login…</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php if (!current_user_can('level_10')) { ?&gt;

	/* Paste your Google code in this box */

&lt;?php } ?&gt;
</pre>
<p>7.] Every-month, you will need to change your password. This will boost security measure and you can stop biting your fingers. Instead of that, you can tell hackers to get out of your door and stop harassing your Login page and your Admin directory.</p>
<pre class="brush: php; title: ; notranslate">
UPDATE `wp_users` SET `user_pass` = MD5('PASSWORD') WHERE `wp_users`.`user_login` =`admin` LIMIT 1;
</pre>
<p>8.] If you don’t want idiots modifying / reading any of your “.htaccess / .htpasswd” files, then get this little angel in your .htaccess directory.</p>
<pre class="brush: php; title: ; notranslate">
&lt;Files ~ &quot;^\.ht&quot;&gt;
Order allow,deny
Deny from all
&lt;/Files&gt;
</pre>
<p>Finally, this is the end of Lair360’s Volume 4. But, don’t forget to support this domain and RSS bookmark my site for more hilarious coding and freebies! Although, please be-aware, that these codes are only used for educational purposes only. In shorter terms, you can’t sell them and make profit.</p>
<p><strong>Copyrighted By Lair360</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://lair360.co.uk/blog/920/vol-4-%e2%80%93-get-wild-with-wordpress-security-spammers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Say goodbye to proxy offender!</title>
		<link>http://lair360.co.uk/blog/888/say-goodbye-to-proxy-offender/</link>
		<comments>http://lair360.co.uk/blog/888/say-goodbye-to-proxy-offender/#comments</comments>
		<pubDate>Sat, 12 Jun 2010 13:45:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mini - Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://lair360.co.uk/blog/?p=888</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://lair360.co.uk/blog/888/say-goodbye-to-proxy-offender/' addthis:title='Say goodbye to proxy offender! ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>Version: 11.1 Revision: 23 Build 9 Say goodbye to proxy offender! On the 9th of June, 2010, my website was bombarded by a suspicious hacker. They managed to access my server without my consent. Therefore, I have to shutdown / block any users from accessing my account / site. Anyway, when I arrived home, it [...]]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://lair360.co.uk/blog/888/say-goodbye-to-proxy-offender/' addthis:title='Say goodbye to proxy offender! ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div><p><strong>Version: 11.1<br />
Revision: 23 Build 9<br />
<br />
Say goodbye to proxy offender!</strong><br />
<br />
On the 9th of June, 2010, my website was bombarded by a suspicious hacker. They managed to access my server without my consent. Therefore, I have to shutdown / block any users from accessing my account / site. Anyway, when I arrived home, it was sorted and I can now write more articles for my readers.<br />
<br />
In this article, we are going to show you how to implement a &#8216;proxy blocker&#8217; for WordPress. However, if you implement this script, it will also block legit viewers and commentators. So, if I were you, I would think about it before implementing this script.<br />
<br />
1.] Login to Cpanel and locate your WordPress directory.<br />
2.] Find your &#8216;theme&#8217; directory and open this file: “functions.php”<br />
<br />
<strong>Tips:</strong> I would suggest you to backup your “functions.php” file before adding anymore scripts / codes.<br />
<br />
3.] Copy this source and place them inside. But, don’t forget your PHP tags!</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
/**
 * Block Proxies - PHP
 * Copyright 2010 - Lair360
 */

function checkProxy {
if($_SERVER['HTTP_X_FORWARDED_FOR'] || $_SERVER['HTTP_X_FORWARDED'] || $_SERVER['HTTP_FORWARDED_FOR'] || $_SERVER['HTTP_CLIENT_IP'] || $_SERVER['HTTP_VIA']) {
die('No proxies allowed');
	}
}
?&gt;
</pre>
<p>4.] Save the changes and refresh your webpage.<br />
<br />
<strong>Notes:</strong> this script will check your browser if the user is behind a proxy / proxy provider. After that, it will block the offending users (proxy users) from accessing your webpage or specific page. However, please be aware that this script can also block you if your workplace utilize proxies.</p>
]]></content:encoded>
			<wfw:commentRss>http://lair360.co.uk/blog/888/say-goodbye-to-proxy-offender/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to remove spam links in your comment area!</title>
		<link>http://lair360.co.uk/blog/886/how-to-remove-spam-links-in-your-comment-area/</link>
		<comments>http://lair360.co.uk/blog/886/how-to-remove-spam-links-in-your-comment-area/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 21:36:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://lair360.co.uk/blog/?p=886</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://lair360.co.uk/blog/886/how-to-remove-spam-links-in-your-comment-area/' addthis:title='How to remove spam links in your comment area! ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>Version: 11.4b Revision: 5 Build 11 How to remove spam links in your comment area! For those who had big problems with your next neighbours, your evil spammers. You could pretty much disable the entire link! However, this tactics will also disable legit links. So, my advice is, you got to think and make a [...]]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://lair360.co.uk/blog/886/how-to-remove-spam-links-in-your-comment-area/' addthis:title='How to remove spam links in your comment area! ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div><p><strong>Version: 11.4b<br />
Revision: 5 Build 11<br />
<br />
How to remove spam links in your comment area!</strong><br />
<br />
For those who had big problems with your next neighbours, your evil spammers. You could pretty much disable the entire link! However, this tactics will also disable legit links. So, my advice is, you got to think and make a decision. But, if you look at the good side, your blog will eventually be safer against link farms and code injection.<br />
<br />
1.] Login to your Cpanel and locate your WordPress directory.<br />
2.] Find your theme directory and open this file: “functions.php”<br />
3.] Copy these codes and place them inside. But, don’t forget your PHP tags!<br />

<pre class="brush: php; title: ; notranslate">
&lt;?php
function plc_comment_post( $incoming_comment ) {
	$incoming_comment['comment_content'] = htmlspecialchars($incoming_comment['comment_content']);
	$incoming_comment['comment_content'] = str_replace( &quot;'&quot;, '&amp;apos;', $incoming_comment['comment_content'] );
	return( $incoming_comment );
}

function plc_comment_display( $comment_to_display ) {
	$comment_to_display = str_replace( '&amp;apos;', &quot;'&quot;, $comment_to_display );
	return $comment_to_display;
}

add_filter( 'preprocess_comment', 'plc_comment_post', '', 1);
add_filter( 'comment_text', 'plc_comment_display', '', 1);
add_filter( 'comment_text_rss', 'plc_comment_display', '', 1);
add_filter( 'comment_excerpt', 'plc_comment_display', '', 1);
?&gt;</pre>
<p>
<strong>Notes:</strong> when this code is active, it will immediately stripped every HTML code and convert them into plain text. In other terms, the actual links will be visible. But, they are un-clickable. This would make your blog a lot safer from unwanted code – injections or modifications from cyber &#8211; criminals.<br />
<br />
<strong>Copyrighted By Lair360</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://lair360.co.uk/blog/886/how-to-remove-spam-links-in-your-comment-area/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress – Give your SPAM comments a good kick!</title>
		<link>http://lair360.co.uk/blog/885/block_spam_comments_sql/</link>
		<comments>http://lair360.co.uk/blog/885/block_spam_comments_sql/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 14:58:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://lair360.co.uk/blog/?p=885</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://lair360.co.uk/blog/885/block_spam_comments_sql/' addthis:title='WordPress – Give your SPAM comments a good kick! ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>Version: 1.1a Revision: 34 Build 11 Wordpress – Give your SPAM comments a good kick! In this tutorial, we are going to use SQL commands to delete all spam comments and approved comments which are no longer needed. However, these source were only written for WordPress users. Therefore, I would recommend you to stay away [...]]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://lair360.co.uk/blog/885/block_spam_comments_sql/' addthis:title='WordPress – Give your SPAM comments a good kick! ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div><p><strong>Version: 1.1a<br />
Revision: 34 Build 11<br />
<br />
Wordpress – Give your SPAM comments a good kick!</strong><br />
<br />
In this tutorial, we are going to use SQL commands to delete all spam comments and approved comments which are no longer needed. However, these source were only written for WordPress users. Therefore, I would recommend you to stay away from this script, if you haven’t got WordPress.<br />
<br />
Deleting comments in your “Admin Panel,” it can be frustrating, if you have a lot of SPAM and BULK comments. So, the only way to flush these hordes (messages) from your SPAM box and your Moderation box, then you will have to use these commands. To use these scripts, you will have to click on “phpMyAdmin”.<br />
</p>
<pre class="brush: php; title: ; notranslate">DELETE FROM wp_comments WHERE comment_approved = 'spam';</pre>
<p>
Code lists<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
0 = Comment Awaiting Moderation<br />
1 = Approved Comment<br />
spam = Comment marked as Spam<br />
<br />
Now, if you don’t want to keep these maniacs in your moderation queue / spam box, then, I would advise you to use these PHP source. However, you must place this script inside your “function.php” directory for it to work.<br />
</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
function verify_comment_referer() {
    if (!wp_get_referer()) {
        wp_die( __('You cannot post comment at this time,
as you will need to enable referrers in your browser.') );
    }
}
add_action('check_comment_flood', 'verify_comment_referer');
?&gt;</pre>
<p>
<strong>Copyrighted By Lair360</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://lair360.co.uk/blog/885/block_spam_comments_sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Give the thieves a good kick in the butt!</title>
		<link>http://lair360.co.uk/blog/871/give-the-thieves-a-good-kick-in-the-butt/</link>
		<comments>http://lair360.co.uk/blog/871/give-the-thieves-a-good-kick-in-the-butt/#comments</comments>
		<pubDate>Sat, 27 Mar 2010 16:48:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTA Script]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[htaccess rules]]></category>
		<category><![CDATA[image blocking]]></category>

		<guid isPermaLink="false">http://lair360.co.uk/blog/?p=871</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://lair360.co.uk/blog/871/give-the-thieves-a-good-kick-in-the-butt/' addthis:title='Give the thieves a good kick in the butt! ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>Version: 11.1 Revision: 33 Build 12 Give the thieves a good kick in the butt! For the passed months, I was reading a book about “Linux coding”. It really made me wanting to simplify the ‘htaccess’ by modifying parts of my blocking sequences. So that the server doesn’t get angry and overkill the resources. However, [...]]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://lair360.co.uk/blog/871/give-the-thieves-a-good-kick-in-the-butt/' addthis:title='Give the thieves a good kick in the butt! ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div><p><strong>Version: 11.1<br />
Revision: 33 Build 12<br />
<br />
Give the thieves a good kick in the butt!<br />
</strong><br />
For the passed months, I was reading a book about “Linux coding”. It really made me wanting to simplify the ‘htaccess’ by modifying parts of my blocking sequences. So that the server doesn’t get angry and overkill the resources. However, this source will only support ‘Linux’ servers with HTA backbone support.<br />
<br />
1.] Create a new ‘HTA script file’ and copy these codes…</p>
<pre class="brush: plain; title: ; notranslate">
RewriteCond %(HTTP_REFERER) !^http(s)?://(www\.)?your-domain\.com [NC]
RewriteCond %(HTTP_REFERER) !^$
RewriteCond %(HTTP_REFERER) ^http(s)?://.*$
RewriteRule \.(jpe?g|gif|png|bmp)$ - [F]
</pre>
<p>2.] Save your new ‘HTA file’ and delete your old revision. Nevertheless, if you want to keep your old file, you will need to rename it as ‘old.htaccess’ or something like that.<br />
<br />
3.] Upload your new ‘htaccess’ file and delete your internet temporary files.<br />
<br />
4.] You are done!<br />
<br />
<strong>Tips for confused users</strong><br />
<br />
&#8216;nocase | NC&#8217; [no case] – this source makes the test case-insensitive. In other terms, there is no similarity or difference between ‘upper-cases and lower-cases’. This flag is effective only for comparison, and it has no direct – effect on file systems and sub-request checks.<br />
<br />
&#8216;ornext | OR&#8217; [or next condition] – this source is useful if you want to link or combine individual rules with a local OR instead of the using AND.<br />
<br />
&#8216;forbidden | F&#8217; (force URL to be forbidden) – this source forces the Url to be forbidden for all users. So, if you ever add one of these commands, there is going to be a 403 (FORBIDDEN) message right at your door.<br />
<br />
‘^’ – this is the start of line anchoring.<br />
‘$’ – this is the end of line anchoring<br />
<br />
<strong>Copyrighted By Lair360</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://lair360.co.uk/blog/871/give-the-thieves-a-good-kick-in-the-butt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress &#8211; Which file is the most important?</title>
		<link>http://lair360.co.uk/blog/859/wordpress-which-file-is-the-most-important/</link>
		<comments>http://lair360.co.uk/blog/859/wordpress-which-file-is-the-most-important/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 15:40:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Backup & Restore]]></category>
		<category><![CDATA[important file]]></category>

		<guid isPermaLink="false">http://lair360.co.uk/blog/?p=859</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://lair360.co.uk/blog/859/wordpress-which-file-is-the-most-important/' addthis:title='WordPress &#8211; Which file is the most important? ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>Version: 13.1 Revision: 15 Build 33 Wordpress &#8211; Which file is the most important? Introduction: In this tutorial, we are going to learn the basic about files, directory and study how important these files can be! But, for those who already knew these, then I am not going to argue. But, you may want to [...]]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://lair360.co.uk/blog/859/wordpress-which-file-is-the-most-important/' addthis:title='WordPress &#8211; Which file is the most important? ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div><p><strong>Version: 13.1<br />
Revision: 15 Build 33<br />
<br />
Wordpress &#8211; Which file is the most important?<br />
<br />
<a href="http://lair360.co.uk/blog/wp-content/uploads/2010/02/acsii_pic.jpg"><img src="http://lair360.co.uk/blog/wp-content/uploads/2010/02/acsii_pic.jpg" alt="" title="acsii_pic" width="200" height="150" class="alignleft size-full wp-image-860" /></a>Introduction:</strong> In this tutorial, we are going to learn the basic about files, directory and study how important these files can be! But, for those who already knew these, then I am not going to argue. But, you may want to continue and learn something new… it’s your choice!<br />
<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
<br />
Everyday, when we login and operate WordPress, there is a file that controls your SQL database and your administrator panel. This file is called: “wp-config.php”. However, if there is a server problem or your blog was hacked, there is a chance that you may lose your “Wordpress password and SQL Database”. Therefore, you have to create a plan and keep these files in a safe place!<br />
<br />
On the other hand, your SQL database, it can be ‘backed up’ with your Cpanel and export it to your external devices, such as: removable drive or compact disk. But, please be aware about your internal hard drive. They can crash and cause serious problem! So, get yourself an external hard drive, if you don’t have one yet!<br />
<br />
Secondly, if you have a large collection of plug-ins, you may also want to compress all of these as a ZIP file and download them to your external hard drive. So, if your server had a crash… again… there is always a backup for you to upload! This will also reduce your time and bandwidth. Well… technically, if you are a busy guy, like me, you may want to learn this word “Logic” and keep yourself happy from these miserable nightmares! But, don’t forget about your “Themes” directory. There must be a lot of work going into these folders!<br />
<br />
Thirdly, if you have a large “htaccess” file, you will need to create a backup of that too. Don’t forget it! It will come in handy!!<br />
<br />
Finally, here is a short version, if you are confused or clueless…<br />
<br />
To make this short and simple, there are four areas that you need to back up. These are your “wp-config.php file, htaccess file, wp-plugin directory and your theme’s folder.” If you are not bother about these files, then you are on your own. But, I am not going to be around and flick my wand.<br />
<br />
That is today lesson! Better get working on my art profile…<br />
<br />
<strong>Copyrighted By Lair360</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://lair360.co.uk/blog/859/wordpress-which-file-is-the-most-important/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to repair WordPress from hackers!</title>
		<link>http://lair360.co.uk/blog/837/how-to-repair-wordpress-from-hackers/</link>
		<comments>http://lair360.co.uk/blog/837/how-to-repair-wordpress-from-hackers/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 22:14:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mini - Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[repair]]></category>

		<guid isPermaLink="false">http://lair360.co.uk/blog/?p=837</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://lair360.co.uk/blog/837/how-to-repair-wordpress-from-hackers/' addthis:title='How to repair WordPress from hackers! ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>Version: 12.1 Revision: 13 Build 11 How to repair WordPress from hackers! Introduction: When you are working really hard and gained good amount of visitors, then your blog is considered as a target practice for hackers and cyber-space criminals. In other terms, if you get hacked by these &#8216;god-who-knows&#8217;, then you are in big trouble! [...]]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://lair360.co.uk/blog/837/how-to-repair-wordpress-from-hackers/' addthis:title='How to repair WordPress from hackers! ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div><p><strong>Version: 12.1<br />
Revision: 13 Build 11<br />
<br />
How to repair WordPress from hackers!<br />
<br />
<a href="http://lair360.co.uk/blog/wp-content/uploads/2010/01/anti-wp-hk-DVD-NTSC.jpg"><img src="http://lair360.co.uk/blog/wp-content/uploads/2010/01/anti-wp-hk-DVD-NTSC.jpg" alt="" title="anti-wp-hk [DVD (NTSC)]" width="200" height="104" class="alignleft size-full wp-image-840" /></a>Introduction:</strong> When you are working really hard and gained good amount of visitors, then your blog is considered as a target practice for hackers and cyber-space criminals. In other terms, if you get hacked by these &#8216;god-who-knows&#8217;, then you are in big trouble! This can potentially effect your page-rank, offend honest readers and infect other reader’s computer; making you as an unwilling promoter to subject materials that are not related to the article or your blog. Nevertheless, this issue can also be classified into many categories, for example: “spamming with SQL injection, rude topics, swearing and pranks.” But, the worse dilemma is losing your articles and valuable contents. However, if you are a victim, it is best not to postpone on the clean up process, since a speedy restore will generally minimize the damage that was caused by the hackers.<br />
<br />
From the other hand, there are many sources that will suggest you to upgrade your WordPress to the latest version. However, there is a flaw in the upgrade, as most users will not notify you that the hacker may have left a backdoor (hidden file) in a directory where it wouldn’t get overwritten with the actually upgrade. Therefore, I am writing this article to completely clean and restore a WordPress installation that was hacked beyond repair.<br />
<br />
<strong>1.] Backup your website and database.</strong><br />
<br />
Backing up a hacked copy of your blog or database, it is still a crucial process as it contains valuable information, files and documents.<br />
You really don’t want to lose your data if something goes wrong with the cleanup process.<br />
<br />
<strong>2.] Create a copy of your uploaded files and images.</strong><br />
<br />
Images are generally safe from posing a security risk and ones which you uploaded, yourself (for example: the ones that was included with a theme, for instance) will be harder to trace and replace after things are fixed again. Therefore, I would recommend you to grab a copy of all the images in your uploaded folder to avoid broken images in your posts. If you have any non-image files that may possibly been compromised, such as zip files, plugins or php scripts that were offered to the public, it is best to grab fresh copies of those from the original source.<br />
<br />
<strong>3.] Download a fresh copy of WP, plugins and &#8216;clean&#8217; template.</strong><br />
<br />
Upgrading WordPress automatically, it will make life easier for you and everyone! However, it will only replace specific files and it doesn’t delete obsolete ones. It will also leave your current themes and plugins in its original place. This means, if you upgrade a blog that has already been compromised, it can very well leave attackers the same or different door to get back in. So, please understand and start from scratch as far as your file portion and installation goes.<br />
<br />
<strong>4.] Delete all files and folders in WP directory &#038; upload!</strong><br />
<br />
FTP protocol = Slower (depends on your file size and folders).<br />
Cpanel Manager = Faster (depends on your server responses).<br />
<br />
When you have a fresh copy of all your files and folders, you will need to completely wipe (Erase) the entire directory and structure of your blog. This is the only (possible) way to completely remove all infected files. You can do all of these through FTP protocol, but due to the way that FTP handle folder’s deletion, this can be slow as hell! This can also disconnect you from your server, due to flooding with FTP commands.<br />
If you have Cpanel, you can easily compress everything within a Zip file and extract them within the server.<br />
<br />
<strong>Notes:</strong> if you are planning to upload any files and folders within a compressed &#8216;Zip&#8217; file, then there is a good chance that your codes not broken or corrupted. So, please use Cpanel if you have large project. It will also save you time and bandwidth!<br />
<br />
<strong>6.] Run a database update!</strong><br />
<br />
At this stage, you will need to give WP a little boot in the backside. It means, you will need to point your browser at “/wp-admin/upgrade.php”.<br />
<br />
<strong>7.] Change your Admin password!</strong><br />
<br />
From this level, if you have more than one Admin, and you can’t get the others to change their passwords, then you will have to change their user levels (privileges) and notify them to change their password. However, if there is anyone in your user-list that has ‘editing’ capabilities, and you don’t recognize them, it’s best to kick (remove) them out of your blog. But, for best practice, I would recommend you to delete everyone and tell your staff to register again.<br />
<br />
<strong>8.] Check all posts and articles for ‘iframe’ hacks!</strong><br />
<br />
Inside your Cpanel, you will need to direct yourself to “phpMyAdmin” and run the following SQL scripts.<br />
<br />
This script will search your SQL database for hidden iframes, script injection and display.<br />
Also, please note that you can delete these rows if it exists (it should be rebuilt dynamically)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<pre class="brush: php; title: ; notranslate">
SELECT * FROM wp_posts WHERE post_content LIKE '%iframe%'

SELECT * FROM wp_posts WHERE post_content LIKE '%noscript%'

SELECT * FROM wp_posts WHERE post_content LIKE '%display:%'
</pre>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
<br />
If you want to combine the above script into a single batch &#8211; process, you can use this scripts as an alternative.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<pre class="brush: php; title: ; notranslate">SELECT * FROM wp_posts WHERE post_content LIKE '%iframe%' OR post_content LIKE  '%noscript%' OR post_content LIKE  '%display:%';</pre>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
<br />
<strong>9.] Double check your blog (for a second time) and look into your SQL database for anything suspicious!</strong><br />
<br />
Finally, keep a lookout at all time and manually update your WordPress!<br />
<br />
<strong>Copyrighted By Lair360</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://lair360.co.uk/blog/837/how-to-repair-wordpress-from-hackers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Encrypt your WordPress from attackers!</title>
		<link>http://lair360.co.uk/blog/815/encrypt-your-wordpress-from-attackers/</link>
		<comments>http://lair360.co.uk/blog/815/encrypt-your-wordpress-from-attackers/#comments</comments>
		<pubDate>Sat, 12 Dec 2009 14:32:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mini - Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[encrypt wordpress]]></category>
		<category><![CDATA[force ssl]]></category>
		<category><![CDATA[ssl encryption]]></category>
		<category><![CDATA[wp-config]]></category>

		<guid isPermaLink="false">http://lair360.co.uk/blog/?p=815</guid>
		<description><![CDATA[<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://lair360.co.uk/blog/815/encrypt-your-wordpress-from-attackers/' addthis:title='Encrypt your WordPress from attackers! ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>Version: 13.1 Revision: 43 Build 13 Encrypt your WordPress from attackers! Introduction: This year is nearly Christmas! Therefore, here is a short tutorial that can help publishers enable SSL or Secure Sockets Layer for WordPress. But, don’t panic! If you don’t know how to install it on your server, then why don’t you ask your [...]]]></description>
			<content:encoded><![CDATA[<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://lair360.co.uk/blog/815/encrypt-your-wordpress-from-attackers/' addthis:title='Encrypt your WordPress from attackers! ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div><p><strong>Version: 13.1<br />
Revision: 43 Build 13<br />
<br />
Encrypt your WordPress from attackers!<br />
<br />
Introduction:</strong> This year is nearly Christmas! Therefore, here is a short tutorial that can help publishers enable SSL or Secure Sockets Layer for WordPress. But, don’t panic! If you don’t know how to install it on your server, then why don’t you ask your hosting provider to install it for you? It’s not that bad&#8230;<br />
<br />
<strong>Advantages:</strong> Encrypting your admin pages, it will provide more security for your WordPress login – session and your control panel. In order to enforce SSL in your admin pages you need to apply some codes into your “wp-config.php” file.<br />
<br />
1.] In order to install SSL encryption, you will need to have a dedicated IP address. You can get this from your hosting provider. However, when you have your dedicated IP address, you will need to wait for another 24 hrs for your website to propagate.<br />
<br />
<strong>Notes:</strong> It’s best if you ask the staff to install your SSL encryption. It’s a lot safer and they can install it without a single &#8211; fuss! However, if you decide to install it by yourself, there might be a problems like… the page is not appearing correctly or the passport control is warning the users to stay away from your website. So, please be careful and ask the staff!<br />
<br />
2.] When you got a dedicated IP address and SSL encryption, you will need to modify your “wp-config.php” file. Here is the following code…</p>
<pre class="brush: php; title: ; notranslate">
define(’AUTH_KEY’, ‘the auth key’);
define(’SECURE_AUTH_KEY’, ‘the secure auth key’);
define(’LOGGED_IN_KEY’, ‘the logged in key’);
</pre>
<p><strong>Notes:</strong> you will need to generate your personal codes from this link: http://api.wordpress.org/secret-key/1.1/ and insert it into your “wp-config” file.<br />
<br />
3.] Now, you’ll need to add these codes and set it as: “TRUE”.</p>
<pre class="brush: php; title: ; notranslate">
define(’FORCE_SSL_ADMIN’, true); // integrate this if you want your admin site to use SSL
define(’FORCE_SSL_LOGIN’, true); // integrate this if you want the login page to use SSL
</pre>
<p><strong>Warning:</strong> “FORCE_SSL_ADMIN” is a little strict on your plug-ins. So, you will need to double – check your plug-ins, before you try this setting. But, don’t worry about “FORCE_SSL_LOGIN”. This setting will only encrypt your login page so that your login password will be encrypted.<br />
<br />
4.] You are done!<br />
<br />
<strong>Copyrighted By Lair360</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://lair360.co.uk/blog/815/encrypt-your-wordpress-from-attackers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

