<?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>System Network Programming Solution - Linux - windows - centos- security- cpanel - plesk -directadmin helm&#187; WordPress</title>
	<atom:link href="http://thegioinguonmo.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://thegioinguonmo.com</link>
	<description>SHARING EVERYTHING</description>
	<lastBuildDate>Mon, 06 Feb 2012 09:45:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>WordPress </title>
		<link>http://thegioinguonmo.com/security/wordpress.html</link>
		<comments>http://thegioinguonmo.com/security/wordpress.html#comments</comments>
		<pubDate>Thu, 12 Jan 2012 09:43:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[TLD]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=275</guid>
		<description><![CDATA[I. VULNERABILITY WordPress &#60;= 2.8.3 Remote admin reset password II. BACKGROUND WordPress is a state-of-the-art publishing platform with a focus on aesthetics, web standards, and usability. WordPress is both free and priceless at the same time. More simply, WordPress is what you use when you want to work with your blogging software, not fight it. [...]]]></description>
			<content:encoded><![CDATA[<p>I. VULNERABILITY<br />
WordPress &lt;= 2.8.3 Remote admin reset password</p>
<p>II. BACKGROUND</p>
<p>WordPress is a state-of-the-art publishing platform with a focus on aesthetics, web standards, and usability. WordPress is both free and priceless at the same time. More simply, WordPress is what you use when you want to work with your blogging software, not fight it.<br />
III. DESCRIPTION</p>
<p>The way WordPress handle a password reset looks like this: You submit your email adress or username via this form /wp-login.php?action=lostpassword ;<br />
Wordpress send you a reset confirmation like that via email:</p>
<p>”<br />
Someone has asked to reset the password for the following site and username. http://DOMAIN_NAME.TLD/wordpress<br />
Username: admin<br />
To reset your password visit the following address, otherwise just ignore this email and nothing will happen</p>
<p>http://DOMAIN_NAME.TLD/wordpress/wp-login.php?action=rp&amp;key=o7naCKN3OoeU2KJMMsag ”</p>
<p>You click on the link, and then WordPress reset your admin password, and sends you over another email with your new credentials.</p>
<p>Let’s see how it works:</p>
<p>wp-login.php:<br />
…[snip]….<br />
line 186:<br />
function reset_password($key) {</p>
<p>global $wpdb;</p>
<p>$key = preg_replace(’/[^a-z0-9]/i’, ”, $key);</p>
<p>if ( empty( $key ) )</p>
<p>return new WP_Error(’invalid_key’, __(’Invalid key’));</p>
<p>$user = $wpdb-&gt;get_row($wpdb-&gt;prepare(”SELECT * FROM $wpdb-&gt;users WHERE user_activation_key = %s”, $key));</p>
<p>if ( empty( $user ) )</p>
<p>return new WP_Error(’invalid_key’, __(’Invalid key’)); …[snip]….<br />
line 276:<br />
$action = isset($_REQUEST['action']) ? $_REQUEST['action'] : ‘login’; $errors = new WP_Error();</p>
<p>if ( isset($_GET['key']) )</p>
<p>$action = ‘resetpass’;</p>
<p>// validate action so as to default to the login screen if ( !in_array($action, array(’logout’, ‘lostpassword’, ‘retrievepassword’, ‘resetpass’, ‘rp’, ‘register’, ‘login’)) &amp;&amp; false === has_filter(’login_form_’ . $action) )</p>
<p>$action = ‘login’;<br />
…[snip]….</p>
<p>line 370:</p>
<p>break;</p>
<p>case ‘resetpass’ :<br />
case ‘rp’ :</p>
<p>$errors = reset_password($_GET['key']);</p>
<p>if ( ! is_wp_error($errors) ) {<br />
wp_redirect(’wp-login.php?checkemail=newpass’);<br />
exit();</p>
<p>}</p>
<p>wp_redirect(’wp-login.php?action=lostpassword&amp;error=invalidkey’); exit();</p>
<p>break;<br />
…[snip ]…</p>
<p>You can abuse the password reset function, and bypass the first step and then reset the admin password by submiting an array to the $key variable.</p>
<p>Source:</p>
<p>IV. PROOF OF CONCEPT</p>
<p>A web browser is sufficiant to reproduce this Proof of concept: http://DOMAIN_NAME.TLD/wp-login.php?action=rp&amp;key[]= The password will be reset without any confirmation.</p>
<p>V. BUSINESS IMPACT</p>
<p>An attacker could exploit this vulnerability to compromise the admin account of any wordpress/wordpress-mu &lt;= 2.8.3</p>
<p>VI. SYSTEMS AFFECTED</p>
<p>All</p>
<p>VII. SOLUTION</p>
<p>No patch aviable for the moment.</p>
<p>VIII. REFERENCES</p>
<p>http://seclists.org/fulldisclosure/2009/Aug/0113.html</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://thegioinguonmo.com/security/wordpress.html" title="tar -xzf csf tgz CPANEL">tar -xzf csf tgz CPANEL</a> (1)</li><li><a href="http://thegioinguonmo.com/security/wordpress.html" title="wp-login php?action=resetpass login=admin key=">wp-login php?action=resetpass login=admin key=</a> (1)</li><li><a href="http://thegioinguonmo.com/security/wordpress.html" title="wp_login action wordpress">wp_login action wordpress</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/security/wordpress.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install a mod_rewrite on Ubuntu</title>
		<link>http://thegioinguonmo.com/os/linux/how-to-install-a-mod_rewrite-on-ubuntu.html</link>
		<comments>http://thegioinguonmo.com/os/linux/how-to-install-a-mod_rewrite-on-ubuntu.html#comments</comments>
		<pubDate>Fri, 16 Dec 2011 03:06:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Issue]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[mod]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[service]]></category>
		<category><![CDATA[smtp]]></category>
		<category><![CDATA[smtp service]]></category>
		<category><![CDATA[user]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=1442</guid>
		<description><![CDATA[The default LAMP installation on Ubuntu 10 server doesn’t include mod_rewrite module. This module is required by WordPress MU. I tried to install a WordPress MU on my Ubuntu server with LAMP. To install mod_rewrite, run command as below: sudo a2enmod rewrite There is still another issue for WordPress MU installation. It is need a [...]]]></description>
			<content:encoded><![CDATA[<p>The default LAMP installation on Ubuntu 10 server doesn’t include mod_rewrite module.</p>
<p>This module is required by <a rel="nofollow" target="_blank" href="http://mu.wordpress.org/">WordPress MU</a>.</p>
<p>I tried to install a WordPress MU on my Ubuntu server with LAMP.</p>
<p>To install mod_rewrite, run command as below:<br />
<code>sudo a2enmod rewrite</code><br />
There is still another issue for WordPress MU installation. It is need a smtp service to send password to registered user.</p>
<p>If you do not have a postfix server on your Ubuntu, you’d better install this server first. Otherwise you can not active your account and your WordPress MU.</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://thegioinguonmo.com/os/linux/how-to-install-a-mod_rewrite-on-ubuntu.html" title="install mod_rewrite ubuntu">install mod_rewrite ubuntu</a> (4)</li><li><a href="http://thegioinguonmo.com/os/linux/how-to-install-a-mod_rewrite-on-ubuntu.html" title="how to restart smtp service on linux directadmin">how to restart smtp service on linux directadmin</a> (2)</li><li><a href="http://thegioinguonmo.com/os/linux/how-to-install-a-mod_rewrite-on-ubuntu.html" title="how to install mod_rewrite ubuntu">how to install mod_rewrite ubuntu</a> (2)</li><li><a href="http://thegioinguonmo.com/os/linux/how-to-install-a-mod_rewrite-on-ubuntu.html" title="install mod_rewrite on ubuntu">install mod_rewrite on ubuntu</a> (2)</li><li><a href="http://thegioinguonmo.com/os/linux/how-to-install-a-mod_rewrite-on-ubuntu.html" title="mod_rewrite ubuntu">mod_rewrite ubuntu</a> (2)</li><li><a href="http://thegioinguonmo.com/os/linux/how-to-install-a-mod_rewrite-on-ubuntu.html" title="install mod_rewrite centos">install mod_rewrite centos</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/how-to-install-a-mod_rewrite-on-ubuntu.html" title="install mod_rewrite ubuntu post install">install mod_rewrite ubuntu post install</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/how-to-install-a-mod_rewrite-on-ubuntu.html" title="install the mod_rewrite">install the mod_rewrite</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/how-to-install-a-mod_rewrite-on-ubuntu.html" title="mod_rewrite directadmin">mod_rewrite directadmin</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/how-to-install-a-mod_rewrite-on-ubuntu.html" title="mod_rewrite module reinstall">mod_rewrite module reinstall</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/os/linux/how-to-install-a-mod_rewrite-on-ubuntu.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 3 Error: Briefly unavailable for scheduled maintenance. Check back in a minute</title>
		<link>http://thegioinguonmo.com/security/wordpress-3-error-briefly-unavailable-for-scheduled-maintenance-check-back-in-a-minute.html</link>
		<comments>http://thegioinguonmo.com/security/wordpress-3-error-briefly-unavailable-for-scheduled-maintenance-check-back-in-a-minute.html#comments</comments>
		<pubDate>Fri, 16 Dec 2011 02:58:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[home]]></category>
		<category><![CDATA[lt]]></category>
		<category><![CDATA[process]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[Update]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=1432</guid>
		<description><![CDATA[You’ll get this error when WordPress automatic update process, via svn or admin, fail or is incomplete. It leaves the file named “.maintenance” on your home or root directory, with info on maintenance. Sample content of .maintenance file: &#60;?php $upgrading = 1282258195; ?&#62; Just delete or rename that file and resume your update process, or [...]]]></description>
			<content:encoded><![CDATA[<p>You’ll get this error when WordPress automatic update process, via svn or admin, fail or is incomplete. It leaves the file named “<em>.maintenance</em>” on your home or root directory, with info on maintenance.</p>
<p>Sample content of .maintenance file: <code></code></p>
<pre class="brush:php">&lt;?php $upgrading = 1282258195; ?&gt;</pre>
<p>Just delete or rename that file and resume your update process, or you may want to restore your backup first and re-start the update process. Of course, check what cause the failed or incomplete update.</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://thegioinguonmo.com/security/wordpress-3-error-briefly-unavailable-for-scheduled-maintenance-check-back-in-a-minute.html" title="apache2 briefly unavailable for scheduled maintenance check back in a minute">apache2 briefly unavailable for scheduled maintenance check back in a minute</a> (1)</li><li><a href="http://thegioinguonmo.com/security/wordpress-3-error-briefly-unavailable-for-scheduled-maintenance-check-back-in-a-minute.html" title="directadmin svn">directadmin svn</a> (1)</li><li><a href="http://thegioinguonmo.com/security/wordpress-3-error-briefly-unavailable-for-scheduled-maintenance-check-back-in-a-minute.html" title="svn plesk windows">svn plesk windows</a> (1)</li><li><a href="http://thegioinguonmo.com/security/wordpress-3-error-briefly-unavailable-for-scheduled-maintenance-check-back-in-a-minute.html" title="wordpress 3 briefly unavailable for scheduled maintenance check back in a minute">wordpress 3 briefly unavailable for scheduled maintenance check back in a minute</a> (1)</li><li><a href="http://thegioinguonmo.com/security/wordpress-3-error-briefly-unavailable-for-scheduled-maintenance-check-back-in-a-minute.html" title="wordpress briefly unavailable for scheduled maintenance check back in a minute">wordpress briefly unavailable for scheduled maintenance check back in a minute</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/security/wordpress-3-error-briefly-unavailable-for-scheduled-maintenance-check-back-in-a-minute.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Top 10 ways to stop spam in WordPress</title>
		<link>http://thegioinguonmo.com/security/top-10-ways-to-stop-spam-in-wordpress.html</link>
		<comments>http://thegioinguonmo.com/security/top-10-ways-to-stop-spam-in-wordpress.html#comments</comments>
		<pubDate>Wed, 14 Dec 2011 10:44:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Install Akismet]]></category>
		<category><![CDATA[IP]]></category>
		<category><![CDATA[stop]]></category>
		<category><![CDATA[URL]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=1333</guid>
		<description><![CDATA[Spam is a nuisance, and as bloggers, we have all experienced a flood of spam every now and then. Not only is it a pain, but it can slow down your blog and use up your resources. In this post we’ll look at ten ways to combat spam. 1. Install Akismet This is the simple [...]]]></description>
			<content:encoded><![CDATA[<p>Spam is a nuisance, and as bloggers, we have all experienced a flood of spam every now and then. Not only is it a pain, but it can slow down your blog and use up your resources. In this post we’ll look at ten ways to combat spam.</p>
<h2><strong>1. Install Akismet</strong></h2>
<p>This is the simple one that everyone does. Akismet comes bundled with WordPress by default and does a good job of picking up spam – for the average blogger, install Akismet and your spam problems will be sorted. The trouble is though, it just stops spam getting displayed, it doesn’t get to the root of the problem. That’s where this post comes in. We’ll start with some simple methods of stopping spam being <em>displayed</em> and then we’ll move onto stopping the spammers getting on your site in the first place.</p>
<h2>2. reCAPTCHA</h2>
<p>The <a rel="nofollow" target="_blank" href="http://wordpress.org/extend/plugins/wp-recaptcha/">reCAPTCHA plugin</a> is one you’ve probably seen around on sites such as <a rel="nofollow" target="_blank" href="http://facebook.com/">Facebook</a>, <a rel="nofollow" target="_blank" href="http://twitter.com/">Twitter </a>and <a rel="nofollow" target="_blank" href="http://stumbleupon.com/">StumbleUpon</a>. It isn’t just your average CAPTCHA (an image containing some letters that are designed so only humans can read them), it uses words from old books, so every time you enter a reCAPTCHA, y<a rel="nofollow" target="_blank" href="http://recaptcha.net/learnmore.html">ou’re helping digitise books</a>. At this point, you’re probably thinking <em>but if I’m telling it what the words mean, does that mean I can enter anything? How does that stop spammers?</em> The answer is simple – there are two words, one of which the CAPTCHA knows. The second, it doesn’t and you’re helping digitise it.</p>
<p>The plugin is simple to install, in 2.7+, just do a search for WP-reCAPTCHA and click install. You’ll need a key for the plugin to work, which you can get <a rel="nofollow" target="_blank" href="http://recaptcha.net/api/getkey?domain=www.blaenkdenum.com&amp;app=wordpress">here</a>. After you’ve done that, reCAPTCHA should appear on your comments’ page.</p>
<h2>3. Ask your readers to do 1+1</h2>
<p>The second plugin that we’re going to look at as a way of stopping spam being displaued is the <a rel="nofollow" target="_blank" href="http://bsw-guide.de/wordpress/plugins/simple-trackback-validation/">‘Math Comment Spam Protection</a>‘ plugin. Using it, you can add a field to your blog’s comment box with a simple maths (or ‘math’ as they say in the States) question.<br />
<img src="http://www.catswhocode.com/blog/wp-content/uploads/2009/07/math.png" alt="math Top 10 ways to stop spam in WordPress " width="80%" title="Top 10 ways to stop spam in WordPress " /><br />
I’m not going to go into installing it here as there’s <a rel="nofollow" target="_blank" href="http://sw-guide.de/wordpress/plugins/math-comment-spam-protection/">a comprehensive installation guide</a> on the plugin’s website. You can see it in action on <a rel="nofollow" target="_blank" href="http://wphacks.com/follow-wordpress-hacks-on-twitter/#comments">WordPress Hacks</a> (image above).</p>
<h2>4. Stop spam trackbacks</h2>
<p>The final plugin that we’re going to look at is one by the same author who made the plugin above. The <a rel="nofollow" target="_blank" href="http://sw-guide.de/wordpress/plugins/simple-trackback-validation/">‘Simple Trackback Validation</a>‘ plugin checks if the IP address of the sender of the trackback is the same as the IP address that the trackback URL refers to, thus eliminating [lots]% of trackback spam as spammers won’t use bots running on infected machines. As <a rel="nofollow" target="_blank" href="http://sw-guide.de/wordpress/plugins/simple-trackback-validation/">the plugin’s page</a> says, the plugin also <em>“r</em><em>etrieves the web page located at the URL included in the trackback. If the page doesnâ€™t a link to your blog, the trackback is considered to be spam. Since most trackback spammers do not set up custom web pages linking to the blogs they attack, this simple test will quickly reveal illegitimate trackbacks. Also, bloggers can be stopped abusing trackback by sending trackbacks with their blog software or webservices without having a link to the post.”</em></p>
<p>Like the ‘Math Comment Spam Protection’ plugin, there’s an installation guide on <a rel="nofollow" target="_blank" href="http://sw-guide.de/wordpress/plugins/simple-trackback-validation/">the plugin’s homepage</a>.</p>
<h2>5. Make users login to comment</h2>
<p>This is something that probably won’t be a good idea for the majority of bloggers, but it will stop spam – make users login to be able to leave a comment and spammers will be stopped from commenting, but so will one time visitors. Just keep that in mind.<br />
<img src="http://www.catswhocode.com/blog/wp-content/uploads/2009/07/comments.jpg" alt="comments Top 10 ways to stop spam in WordPress " width="80%" title="Top 10 ways to stop spam in WordPress " /></p>
<p>Under ‘Settings’. click ‘Discussion’ and then tick the box ‘Users must be registered and logged in to comment’. Then save changes and you’re done.</p>
<h2>6. Ban spammers by IP</h2>
<p>Now that we’ve stopped spam being displayed with the tips above, we’re going to move on to blocking spammers getting on your site in the first place. Something we’re going to be using extensively is the .htaccess file. A basic introduction that you should read first is <a rel="nofollow" target="_blank" href="http://www.javascriptkit.com/howto/htaccess.shtml">here</a>, and remember the golden rule of .htaccess – always have a backup. Further .htaccess reading is available <a rel="nofollow" target="_blank" href="http://www.catswhocode.com/blog/10-awesome-htaccess-hacks-for-wordpress">here on CatsWhoCode</a> and <a rel="nofollow" target="_blank" href="http://wpshout.com/">my own blog, WPShout</a>.</p>
<p>In most situations, this tip wouldn’t be too much of a good idea; spammers will fake often their IP, but if there is one IP that is particularly bugging you, then the code below will block them from visiting your site – instert it into your .htaccess file in your blog’s root, changing the second line to include the IP that you wish to ban.</p>
<blockquote>
<pre class="brush:plain">Order allow,deny
Deny from 100.100.100.
Allow from all</pre>
</blockquote>
<h2>7. Ban spammers by IP, on a massive scale</h2>
<p>You’ve blocked a single spammer. Well done. Now, with help from <a rel="nofollow" target="_blank" href="http://perishablepress.com/">Perishable Press</a>, you can block thousands of spammers – Jeff from Perishable has compiled a number of blacklists, from which you can pick and choose which you want to implement into your .htaccess file. The latest blacklists, the ‘fourth generation’ can be accessed below:</p>
<ul>
<li><a rel="nofollow" target="_blank" href="http://perishablepress.com/press/2009/03/16/the-perishable-press-4g-blacklist/">‘The Perishable Press 4G Blacklist’</a></li>
<li>‘<a rel="nofollow" target="_blank" title="Permalink for this article" href="http://perishablepress.com/press/2009/04/21/4g-ultimate-referrer-blacklist/">4G Series: The Ultimate Referrer Blacklist, Featuring Over 8000 Banned Referrers</a>‘</li>
<li><a rel="nofollow" target="_blank" href="http://perishablepress.com/press/2009/03/29/4g-ultimate-user-agent-blacklist/">’4G Series: The Ultimate User-Agent Blacklist, Featuring Over 1200 Bad Bots’</a></li>
</ul>
<h2>8. Deny comment posting to no referrer requests</h2>
<p>Another .htaccess trick and the final comment spam stopping technique we’re going to look at is denying comment posting to no referrer requests – in other words, if the comment isn’t actually coming from your site, then it gets blocked. Make sure you change the url in line four to your blog.</p>
<blockquote>
<pre class="brush:plain">RewriteEngine On
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
RewriteCond %{HTTP_REFERER} !.*yourblog.com.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]</pre>
</blockquote>
<p><strong>Source – </strong><a rel="nofollow" target="_blank" href="http://www.wprecipes.com/how-to-deny-comment-posting-to-no-referrer-requests">WordPress Recipes</a>.</p>
<h2>9. Stop content theives</h2>
<p>Spammers don’t just limit themselves to spamming your comments – often they’ll steal your content too. This next trick will stop spammers who steal your content via RSS. Once you’ve found a site stealing your content, first thing to do is find out the site’s IP address. A search for ‘ping [site name, ie catswhocode.com]‘ should give you a result. Once you’ve got that, head over to the offending site and find their RSS feed. Then, open up your .htaccess file and add the following lines:</p>
<blockquote>
<pre class="brush:plain">RewriteEngine on
RewriteCond %{REMOTE_ADDR} ^69.16.226.12
RewriteRule ^(.*)$ http://newfeedurl.com/feed</pre>
</blockquote>
<p>Change the IP in line two with the IP of the offending site and the url in line three with the offending site’s feed.</p>
<p><strong>Source -</strong> <a rel="nofollow" target="_blank" href="http://wpshout.com/">WPShout</a>/ <a rel="nofollow" target="_blank" href="http://seoblackhat.com/2006/07/14/ip-delivery-to-stop-rss-content-thieves/">SEO Black Hat</a></p>
<h2>10. Stop spammers stealing your images</h2>
<p>Now that we’ve stopped spammers from stealing your content via RSS, now it is time to combat those who just copy and paste your articles onto their site. Yes, this isn’t technically stopping spam, but it is helping combat the spammers.</p>
<p>You’ve got two options if people are hotlinking your images – watermark or .htaccess. We’ll look at both, and I’ll leave you to decide which is better. First up, watermarking. The foolproof method is to watermark your images before you upload them, which you can do with some simple software – <a rel="nofollow" target="_blank" href="http://www.faststone.org/FSResizerDetail.htm">FastStone Photo Resizer</a> is a great tool that I’d thoroughly recommend. What’s more, it’s free! The second option is to install <a rel="nofollow" target="_blank" href="http://phpthumb.sourceforge.net/">phpThumb</a> and create a shortcode that resizes and watermarks your image. Copy and paste the following code into your functions.php file, having uploaded phpThumb to your theme’s folder, uploaded a watermark and changed the URLs. You can also change the width that images will be resized to (it’s currently 590).</p>
<blockquote>
<pre class="brush:php">&lt;?php function imageresizer( $atts, $content = null ) {
return ‘&lt;img src=”/THEMEURL/phpthumb/phpThumb.php?src=’ . $content . ‘&amp;w=590&amp;amp;fltr[]=wmi|/images/watermark.gif|BR”Â  alt=”"&gt;’;
}
add_shortcode(‘img’, ‘imageresizer’); ?&gt;</pre>
</blockquote>
<p>With the code integrated, now when uploading a picture, upload it in the normal way, then go into HTML mode and copy the image url, then delete the image and then paste the image URL between [img] and [/img].</p>
<p>Of course, you can also easily disable hotlinking by going into your .htaccess file and pasting the following (changing lines three and five – five will display and alternate image – send it to something blank, or perhaps an ad for your site?):</p>
<blockquote>
<pre class="brush:plain">RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com/.*$ [NC]
#RewriteRule \.(gif|jpg)$ – [F]
RewriteRule \.(gif|jpg)$ http://www.yourdomain.com/advert.jpg [R,L]</pre>
</blockquote>
<h2>Wrapping up</h2>
<p>So there we are. Ten lovely ways to stop spam in WordPress, in roughly 1323 words. Got any tips to share? Leave a comment below, of course!</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://thegioinguonmo.com/security/top-10-ways-to-stop-spam-in-wordpress.html" title="wordpress stop spam">wordpress stop spam</a> (3)</li><li><a href="http://thegioinguonmo.com/security/top-10-ways-to-stop-spam-in-wordpress.html" title="spam for wordpress">spam for wordpress</a> (1)</li><li><a href="http://thegioinguonmo.com/security/top-10-ways-to-stop-spam-in-wordpress.html" title="visitors wordpress searching for phpthumb php">visitors wordpress searching for phpthumb php</a> (1)</li><li><a href="http://thegioinguonmo.com/security/top-10-ways-to-stop-spam-in-wordpress.html" title="wordpress block spam">wordpress block spam</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/security/top-10-ways-to-stop-spam-in-wordpress.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: thegioinguonmo.com @ 2012-02-07 11:15:12 -->
