<?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>Money-Code &#187; security</title>
	<atom:link href="http://www.money-code.com/tag/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.money-code.com</link>
	<description>Coding For Online Success</description>
	<lastBuildDate>Tue, 15 Nov 2011 18:25:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Update WordPress!</title>
		<link>http://www.money-code.com/2009/10/update-wordpress/</link>
		<comments>http://www.money-code.com/2009/10/update-wordpress/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 15:37:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Affiliate Marketing]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.money-code.com/?p=592</guid>
		<description><![CDATA[Okay, looks like WordPress released a &#8216;hardened&#8217; release for 2.8 which will jack your release version to 2.8.5. It&#8217;s very important to stay upgraded to ensure that your sites will run properly, but more importantly to maintain security. You don&#8217;t want your money-making sites to go down, or to have your account suspended due to [...]


Related posts:<ol><li><a href='http://www.money-code.com/2009/07/thinking-about-security-for-affiliate-marketing/' rel='bookmark' title='Thinking about security for Affiliate Marketing'>Thinking about security for Affiliate Marketing</a></li>
<li><a href='http://www.money-code.com/2009/08/twitter-troubles/' rel='bookmark' title='Twitter troubles'>Twitter troubles</a></li>
<li><a href='http://www.money-code.com/2007/10/cj-web-service-issues-unable-to-access-wsdl-update/' rel='bookmark' title='CJ web service issues &#8211; unable to access WSDL (UPDATE)'>CJ web service issues &#8211; unable to access WSDL (UPDATE)</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.money-code.com%2F2009%2F10%2Fupdate-wordpress%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.money-code.com%2F2009%2F10%2Fupdate-wordpress%2F&amp;source=hanjicode&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><img class="alignleft size-full wp-image-351" title="icon_big" src="http://www.money-code.com/wp-content/uploads/2009/06/icon_big.jpg" alt="icon_big" width="150" height="151" />Okay, looks like WordPress released a &#8216;hardened&#8217; release for 2.8 which will jack your release version to 2.8.5. It&#8217;s very important to stay upgraded to ensure that your sites will run properly, but more importantly to maintain security. You don&#8217;t want your money-making sites to go down, or to have your account suspended due to your site being compromised. As they say, &#8220;A ounce of prevention is worth a pound of cure&#8221;.</p>
<p>Details of the release can be found here: <a href="http://wordpress.org/development/2009/10/wordpress-2-8-5-hardening-release/" target="_blank">http://wordpress.org/development/2009/10/wordpress-2-8-5-hardening-release/</a></p>
<p>The headline changes in this release are:</p>
<ul>
<li>A fix for the Trackback Denial-of-Service attack that is currently being seen.</li>
<li>Removal of areas within the code where php code in variables was evaluated.</li>
<li>Switched the file upload functionality to be whitelisted for all users including Admins.</li>
<li>Retiring of the two importers of Tag data from old plugins.</li>
</ul>
<div style='clear:both'></div>

<p>Related posts:<ol><li><a href='http://www.money-code.com/2009/07/thinking-about-security-for-affiliate-marketing/' rel='bookmark' title='Thinking about security for Affiliate Marketing'>Thinking about security for Affiliate Marketing</a></li>
<li><a href='http://www.money-code.com/2009/08/twitter-troubles/' rel='bookmark' title='Twitter troubles'>Twitter troubles</a></li>
<li><a href='http://www.money-code.com/2007/10/cj-web-service-issues-unable-to-access-wsdl-update/' rel='bookmark' title='CJ web service issues &#8211; unable to access WSDL (UPDATE)'>CJ web service issues &#8211; unable to access WSDL (UPDATE)</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.money-code.com/2009/10/update-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Thinking about security for Affiliate Marketing</title>
		<link>http://www.money-code.com/2009/07/thinking-about-security-for-affiliate-marketing/</link>
		<comments>http://www.money-code.com/2009/07/thinking-about-security-for-affiliate-marketing/#comments</comments>
		<pubDate>Sun, 12 Jul 2009 17:00:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Affiliate Marketing]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[passwords]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://www.money-code.com/?p=436</guid>
		<description><![CDATA[It&#8217;s like the saying.. A ounce of prevention is worth a pound of cure This was the saying generally for people to stay healthy by avoiding things that make you sick, be it lifestyle and behaviour or what you put into your body. This saying really applies to security as well. I&#8217;m currently a web [...]


Related posts:<ol><li><a href='http://www.money-code.com/2009/06/twitter-security/' rel='bookmark' title='Twitter Security'>Twitter Security</a></li>
<li><a href='http://www.money-code.com/2009/10/update-wordpress/' rel='bookmark' title='Update WordPress!'>Update WordPress!</a></li>
<li><a href='http://www.money-code.com/2007/09/build-a-niche-store-bans-security-issues-are-being-addressed-continued/' rel='bookmark' title='Build A Niche Store (bans) &#8211; Security issues are being addressed (continued)'>Build A Niche Store (bans) &#8211; Security issues are being addressed (continued)</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.money-code.com%2F2009%2F07%2Fthinking-about-security-for-affiliate-marketing%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.money-code.com%2F2009%2F07%2Fthinking-about-security-for-affiliate-marketing%2F&amp;source=hanjicode&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><img class="alignleft size-full wp-image-437" title="security" src="http://www.money-code.com/wp-content/uploads/2009/07/security.jpeg" alt="security" width="129" height="130" />It&#8217;s like the saying..</p>
<blockquote><p><em><strong>A ounce of prevention is worth a pound of cure</strong></em></p></blockquote>
<p>This was the saying generally for people to stay healthy by avoiding things that make you sick, be it lifestyle and behaviour or what you put into your body. This saying really applies to security as well.</p>
<p>I&#8217;m currently a web developer and server administrator, so I have a background of security. I&#8217;ve seen things when they&#8217;ve gone &#8216;bad&#8217;. I&#8217;ve also seen the damage that can be done to your business and way of life when a security breach directly affects you. To say a ounce of prevention is worth a pound of cure really applies to internet security. This topic can fill a book, but I&#8217;ll try to keep it short and cover some basic points, from a affiliate marketer point of view.</p>
<p><strong>Platforms</strong><br />
It seems like most affiliate marketers are using various application platforms like WordPress, Drupal or BANS, etc, etc. These tools are great. They&#8217;re free (open source) and are easy to install and configure. The problem is that since it is open source any one can download a version and reverse engineer or scour the code for potential security holes and vulnerabilities. From there, a attacker would only need to Google a specific &#8216;footprint&#8217; to find the same application and version to attack.</p>
<p>The damage this can cause is catastrophic. A attacker could gain priviledge of the entire server and have access to all of your sites. If you&#8217;re running dedicated servers, this is even more of a threat, since you would be managing the server and the attacker would recruit this server as a potential tool in his bot army. If you&#8217;re on a shared environment, the hosting facility will most likely shut down your site and stop services for you until you correct the problem.</p>
<p>Normally when exploits are discovered the author of the application (WordPress, etc) would be notified, and their developers would create a fix and release a update to correct this issue, usually in a extremely timely manner. Plugins are outside of the WordPress relm, so I would recommend plugins that show &#8216;activity&#8217; and a community or development team that actively works on it. Stale plugins could be a security vulnerability.</p>
<p>The ounce of cure in this case&#8230; UPDATE YOUR WORDPRESS PLATFORM AND PLUGINS! It is so simple and easy.</p>
<p>I know I&#8217;m focusing on WordPress in this example, but this would be applied to any 3rd party software application or platform.</p>
<p><strong>Services</strong><br />
If you&#8217;re running a dedicated server you must stay on top of your service updates, specifically PHP, Apache, MySQL and SSH. Just like in Platforms, these are all open source products and have potential bugs or exploits that are discovered at times. Either work with your hosting provider or perform the updates themselves. Depending on your flavor of Linux there are various ways to perform these updates.</p>
<p>I&#8217;m only mentioning Linux, Apache, MySQL, PHP (LAMP) since you don&#8217;t see a lot of Windows based hosting at affordable costs. Plus.. I hate talking about Windows.</p>
<p><strong>ACL (Access Control Lists)</strong><br />
This is something that is not mentioned often out there, but I really feel strong about. Using firewalls (iptables, etc) to manage access to your dedicated server is important. Limit SSH access to certain IPs (assuming you have a static IP at your home or office.. which you should). Along with SSH access to the servers, I also like to limit access to administrative areas and control panels. No reason these should be open to the world. This includes my wp-admin access as well.</p>
<p><strong>Hardening Services</strong><br />
There are certain items you can do to &#8216;harden&#8217; services. Basically making PHP harder to hack or limiting access to the system with a chroot, etc. Along with that you can control error messages (don&#8217;t display error messages) to prevent information disclosure. Usually attacks start with information gathering (finding versions, file path info, etc).</p>
<p><strong>Passwords</strong><br />
Work on your passwords. Make them difficult. Think in pass phrases and include alpha numeric characters. DO NOT USE THE SAME PASSWORD FOR EVERYTHING! The more important the information, make the passwords more difficult. For instance, I don&#8217;t want people guessing my domain registrar passwords, etc. Think defensively with passwords, watch out for potential insecure Twitter applications, etc. 75% of people use the same password in other areas, so your Twitter password, could be quite valuable if you&#8217;re one of the 75%.</p>
<p>Okay, so those are a few items (many more actually while I&#8217;m thinking about it), but I wanted to talk about some worst case scenarios.</p>
<p>I had a client that was working on affiliate marketing. He was primarily working with AdSense and creating review and community sites (forums, etc) and was doing quite well. Some how a hacker was able to get is FTP password for the site and infiltrate his host. He had a dedicated server and was then locked out of all of his sites. My client also used the same password for his registrar and the hacker was able to take control of his domains.  This was when I was called in. The hacker tried to ransom the sites asking for $100K to return control of all his domains (over 100).</p>
<p>My client was able to start piecing over some of the domains, and even had the FBI involved. Unfortunately, the hacker was in Asia and little could be done. About 3 months later the client was able to get his domains back, but had to create a new hosting solution. After the client recovered the domains, the hacker began a very brutal DOS (Denial of Service) attack on his domains in a last stand type move, but the damage was severely done.</p>
<p>While the hacker had control of the domains, he was PMing invidivduals in the forums and causing mass havoc and confusion. Lots of members left, not to mention that the hacker probably stole all of there user credentials and emails. My client was also ranking very high in Google, and with content changes (pornographic and exploit software) he lost rank and had to start it up again. He also lost his AdSense account and had to re-apply and explain the situation. It was a major blow to his finances but he was able to recover  after about 6 months.</p>
<p>So the lesson? If he worked on his password management, this would have been avoided. A ounce of prevention, is worth a pound of cure.. or at least 6 months of cure.</p>
<div style='clear:both'></div>

<p>Related posts:<ol><li><a href='http://www.money-code.com/2009/06/twitter-security/' rel='bookmark' title='Twitter Security'>Twitter Security</a></li>
<li><a href='http://www.money-code.com/2009/10/update-wordpress/' rel='bookmark' title='Update WordPress!'>Update WordPress!</a></li>
<li><a href='http://www.money-code.com/2007/09/build-a-niche-store-bans-security-issues-are-being-addressed-continued/' rel='bookmark' title='Build A Niche Store (bans) &#8211; Security issues are being addressed (continued)'>Build A Niche Store (bans) &#8211; Security issues are being addressed (continued)</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.money-code.com/2009/07/thinking-about-security-for-affiliate-marketing/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Twitter Security</title>
		<link>http://www.money-code.com/2009/06/twitter-security/</link>
		<comments>http://www.money-code.com/2009/06/twitter-security/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 17:56:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Twitter]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.money-code.com/?p=293</guid>
		<description><![CDATA[Today I wanted to chat about Twitter security. With all of the great Twitter apps out there, I was curious about security relating to Twitter account. I notice that alot of these apps require you to supply your Twitter username and password. Personally, I think this is a bit crazy. The thought of submitting my [...]


Related posts:<ol><li><a href='http://www.money-code.com/2009/07/thinking-about-security-for-affiliate-marketing/' rel='bookmark' title='Thinking about security for Affiliate Marketing'>Thinking about security for Affiliate Marketing</a></li>
<li><a href='http://www.money-code.com/2009/07/cloudberrys-tweet-fox-great-firefox-add-on/' rel='bookmark' title='Cloudberry&#8217;s Tweet Fox &#8211; Great Firefox Add On'>Cloudberry&#8217;s Tweet Fox &#8211; Great Firefox Add On</a></li>
<li><a href='http://www.money-code.com/2009/07/including-twitter-updates-in-your-site/' rel='bookmark' title='Including Twitter updates in your site'>Including Twitter updates in your site</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.money-code.com%2F2009%2F06%2Ftwitter-security%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.money-code.com%2F2009%2F06%2Ftwitter-security%2F&amp;source=hanjicode&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><a href="http://www.twitter.com/hanjicode" target="_blank"><img class="alignleft size-full wp-image-295" title="twitter_logo" src="http://www.money-code.com/wp-content/uploads/2009/06/twitter_logo.jpg" alt="twitter_logo" width="158" height="158" /></a>Today I wanted to chat about Twitter security. With all of the great Twitter apps out there, I was curious about security relating to Twitter account. I notice that alot of these apps require you to supply your Twitter username and password. Personally, I think this is a bit crazy. The thought of submitting my user credentials to a third party app. What I&#8217;m mostly surprised is the amount of people that do this. I am blown away that Twitter hijacking isn&#8217;t widespread and out of control. Seems like a malicious person could write a simple twitter application and start gathering credentials for spamming purposes or selling the information to others?</p>
<p>To me, it&#8217;s the same as supplying your mail user/pass to access this site. I don&#8217;t think many would. With that said, I do use twitter apps that require me to login via Twitter&#8217;s authentication interface and get redirected back to a application. To me there is a level of security there, since the authentication piece happens at Twitter.</p>
<p>I&#8217;m curious, do other have similar feelings in regards to security?</p>
<p>On this topic, I re-tweeted a nice little article titled &#8220;<a href="http://www.twitip.com/twitter-security-dos-and-donts/" target="_blank">Twitter Security Do&#8217;s and Don&#8217;ts</a>&#8221; that discusses some great practices to improve security.</p>
<p>Here is a quick breakdown:</p>
<ol>
<li>Never use your password on suspicious third party sites (this is what I&#8217;m talking about)</li>
<li>Don’t be too specific</li>
<li>Don’t spit excessive personal information</li>
<li>Call the police, don’t tweet about it</li>
<li>Don’t tweet about moving servers, etc</li>
<li>Try to use oath whenever possible (this is something I recommend highly)</li>
<li>Choose a strong password ( I also recommend changing it on occasion)</li>
<li>Do use direct messages when appropriate</li>
<li>Having a private separate account for work.</li>
</ol>
<p>Also, I came across another article titled &#8220;<a href="http://www.twitip.com/11-useful-twitter-tools-that-dont-require-your-password/" target="_blank">11 Useful Twitter Tools That Don&#8217;t Require Your Password</a>&#8220;, which has some good tools listed there.</p>
<p>It&#8217;s seems like it&#8217;s a matter of time before Twitter hijackingor malicious abuse will run rampant. I&#8217;m hoping for the best, but trying to prepare for the worst.</p>
<div style='clear:both'></div>

<p>Related posts:<ol><li><a href='http://www.money-code.com/2009/07/thinking-about-security-for-affiliate-marketing/' rel='bookmark' title='Thinking about security for Affiliate Marketing'>Thinking about security for Affiliate Marketing</a></li>
<li><a href='http://www.money-code.com/2009/07/cloudberrys-tweet-fox-great-firefox-add-on/' rel='bookmark' title='Cloudberry&#8217;s Tweet Fox &#8211; Great Firefox Add On'>Cloudberry&#8217;s Tweet Fox &#8211; Great Firefox Add On</a></li>
<li><a href='http://www.money-code.com/2009/07/including-twitter-updates-in-your-site/' rel='bookmark' title='Including Twitter updates in your site'>Including Twitter updates in your site</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.money-code.com/2009/06/twitter-security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Good adjustments made to my new WordPress blog</title>
		<link>http://www.money-code.com/2009/06/good-adjustments-made-to-my-new-wordpress-blog/</link>
		<comments>http://www.money-code.com/2009/06/good-adjustments-made-to-my-new-wordpress-blog/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 21:16:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.money-code.com/2009/06/265/</guid>
		<description><![CDATA[As I stated earlier today, I migrated Money-Code.com from a Drupal platform to the WordPress platform. The first steps were to move the data from their old tables to their new tables. Next was to configure tags, categories and add functional plugins. The other areas I wanted to make sure was working was getting my [...]


Related posts:<ol><li><a href='http://www.money-code.com/2007/10/url-masking-cloaking/' rel='bookmark' title='URL Masking (cloaking)'>URL Masking (cloaking)</a></li>
<li><a href='http://www.money-code.com/2009/06/migrating-money-code-from-drupal-to-wordpress/' rel='bookmark' title='Migrating Money-Code from Drupal to WordPress'>Migrating Money-Code from Drupal to WordPress</a></li>
<li><a href='http://www.money-code.com/2009/10/update-wordpress/' rel='bookmark' title='Update WordPress!'>Update WordPress!</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.money-code.com%2F2009%2F06%2Fgood-adjustments-made-to-my-new-wordpress-blog%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.money-code.com%2F2009%2F06%2Fgood-adjustments-made-to-my-new-wordpress-blog%2F&amp;source=hanjicode&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>As I stated earlier today, I migrated Money-Code.com from a Drupal platform to the WordPress platform. The first steps were to move the data from their old tables to their new tables. Next was to configure tags, categories and add functional plugins. The other areas I wanted to make sure was working was getting my popular posts to be redirected to their new locations here. I went with SEO friendly URLs so had to do some redirects using my .htaccess file.</p>
<p>Along with rewrites, I made some security adjustment to them and thought it would be good talk about those as well.</p>
<p>First to do redirects you can use mod_rewrite or something simple like Redirect. Here is what I did for my redirects of my popular posts:</p>
<div class="dean_ch" style="white-space: wrap;">Redirect <span class="nu0">301</span> /node/<span class="nu0">46</span> http:<span class="co1">//www.money-code.com/2007/11/using-ffmpeg-to-create-youtube-clone-script/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">93</span> http:<span class="co1">//www.money-code.com/2008/09/epn-bannings-and-epc/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">32</span> http:<span class="co1">//www.money-code.com/2007/10/url-masking-cloaking/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">23</span> http:<span class="co1">//www.money-code.com/2007/09/simple-script-for-connecting-to-commission-junctions-product-web-service-and-populating-a-local-database/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">15</span> http:<span class="co1">//www.money-code.com/2007/09/using-ebays-api-to-search-auctions-and-return-results/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">61</span> http:<span class="co1">//www.money-code.com/2008/01/cj-apiwebservice-version-2/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">20</span> http:<span class="co1">//www.money-code.com/2007/09/build-a-niche-store-bans-unsatisfied-programmer/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">64</span> http:<span class="co1">//www.money-code.com/2008/01/how-to-search-amazons-catalog-with-amazons-associate-web-service/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">37</span> http:<span class="co1">//www.money-code.com/2007/10/ebay-rss-querystringvariable-definitions/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">56</span> http:<span class="co1">//www.money-code.com/2007/12/how-to-use-ppc-with-your-ebay-affiliate-store-fronts/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">77</span> http:<span class="co1">//www.money-code.com/2008/03/prepare-for-ebay-partner-network-cutover/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">14</span> http:<span class="co1">//www.money-code.com/2007/09/capture-search-data-on-your-site/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">98</span> http:<span class="co1">//www.money-code.com/2008/10/dynamic-xmlrss-feed-using-popshops/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">44</span> http:<span class="co1">//www.money-code.com/2007/11/shoemoneys-google-adsense-check/</span><br />
Redirect <span class="nu0">301</span> /node/<span class="nu0">71</span> http:<span class="co1">//www.money-code.com/2008/02/popshops/</span></div>
<p>Here we&#8217;re using Redirect 301 which is &#8220;Moved Permanently&#8221;. It&#8217;s looking for the node variable with was Drupal&#8217;s page handling and redirecting to the new SEO friendly WordPress URLs.</p>
<p>The next item I always like to include is adding proper 403 and 404 handlers in .htaccess. Basically when a 403 (Client Denied) or 404 (File not found), I like to redirect the user back to the home page instead of giving them a crappy Apache message. You can get fancier by creating custom error pages, but redirect works find for me. Here is what you would add for this:</p>
<div class="dean_ch" style="white-space: wrap;">ErrorDocument <span class="nu0">403</span> http:<span class="co1">//www.money-code.com</span><br />
ErrorDocument <span class="nu0">404</span> http:<span class="co1">//www.money-code.com</span></div>
<p>The other piece that is really important, and often not used is turning OFF indexes. Basically if you go to a directory without a index page (ie: index.php), it will list out the contents of that directory. This is a potential security risk, it can show what items you have installed, or provide files for download that you did not want downloaded. By simply adding this, it will throw a 403 to the user that hits a page without a index file.</p>
<div class="dean_ch" style="white-space: wrap;">Options -Indexes</div>
<p>I primarily did this since I don&#8217;t want people seeing my wp-content/plugins directory, but I see as of 2.8, they&#8217;ve added a index.php with nothing in it, causing a white page. This is good, but I think it&#8217;s still good practice to prevent directory browsing like this.</p>
<p>The other piece I like to do is restrict administrative access to my IPs. I&#8217;m a freak this way. I have static IPs at my office, and I also have VPN access, so I like to restrict access to certain IPs on my network. Basically, I have to be at my office OR VPN&#8217;d to my office to edit my pages. This is a pain to many people, and I can understand people not into this, and that&#8217;s fine, but it really reduces the risk of brute force attacks to your admin area.  If you&#8217;re interested in this measure here is the code you would include in the .htaccess file residing wp-admin/:</p>
<div class="dean_ch" style="white-space: wrap;">order deny,allow<br />
<span class="re1">deny from all</span><br />
allow from xxx.xxx.xxx.xxx</div>
<p>Obvisouly, xxx.xxx.xxx.xxx would be your static IP or subnet xxx.xxx.xxx.xxx./16 for example.</p>
<p>I&#8217;ve always been uneasy with WordPress due to it&#8217;s history and potential damage it can cause on the server it lives on. The bottom line is to keep your install up to date, and that includes your plugins. I&#8217;ll also be setting a subdomain for testing purposes (only available to my IP) to handle large WP updates.</p>
<div style='clear:both'></div>

<p>Related posts:<ol><li><a href='http://www.money-code.com/2007/10/url-masking-cloaking/' rel='bookmark' title='URL Masking (cloaking)'>URL Masking (cloaking)</a></li>
<li><a href='http://www.money-code.com/2009/06/migrating-money-code-from-drupal-to-wordpress/' rel='bookmark' title='Migrating Money-Code from Drupal to WordPress'>Migrating Money-Code from Drupal to WordPress</a></li>
<li><a href='http://www.money-code.com/2009/10/update-wordpress/' rel='bookmark' title='Update WordPress!'>Update WordPress!</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.money-code.com/2009/06/good-adjustments-made-to-my-new-wordpress-blog/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Build A Niche Store (bans) &#8211; Security issues are being addressed (continued)</title>
		<link>http://www.money-code.com/2007/09/build-a-niche-store-bans-security-issues-are-being-addressed-continued/</link>
		<comments>http://www.money-code.com/2007/09/build-a-niche-store-bans-security-issues-are-being-addressed-continued/#comments</comments>
		<pubDate>Fri, 28 Sep 2007 19:39:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[EPN]]></category>
		<category><![CDATA[bans]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[So the drama continues. Apparently all the issues that I have brought up are 'cosmetic and not security related' coding issues. I raised 5 different points, 2 of which they said they would implement (funny ... since they are cosmetic) in the future. The other 3 (1 they just don't get at all and the other two are up for debate in my opinion).

Cosmetic would mean, I didn't like the 'grey' that they used in the header.. not the issues I brought up. Security related, even though some are mild, and I've stated that, are still security related. 



Related posts:<ol><li><a href='http://www.money-code.com/2007/09/build-a-niche-store-security-issues/' rel='bookmark' title='Build A Niche Store &#8211; Security Issues'>Build A Niche Store &#8211; Security Issues</a></li>
<li><a href='http://www.money-code.com/2007/09/build-a-niche-store-bans-unsatisfied-programmer/' rel='bookmark' title='Build A Niche Store (BANS) &#8211; Unsatisfied Programmer'>Build A Niche Store (BANS) &#8211; Unsatisfied Programmer</a></li>
<li><a href='http://www.money-code.com/2007/09/bans-security-issues-are-being-addressed/' rel='bookmark' title='BANS &#8211; security issues are being addressed'>BANS &#8211; security issues are being addressed</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.money-code.com%2F2007%2F09%2Fbuild-a-niche-store-bans-security-issues-are-being-addressed-continued%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.money-code.com%2F2007%2F09%2Fbuild-a-niche-store-bans-security-issues-are-being-addressed-continued%2F&amp;source=hanjicode&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>So the drama continues. Apparently all the issues that I have brought up are &#8216;cosmetic and not security related&#8217; coding issues. I raised 5 different points, 2 of which they said they would implement (funny &#8230; since they are cosmetic) in the future. The other 3 (1 they just don&#8217;t get at all and the other two are up for debate in my opinion).</p>
<p>Cosmetic would mean, I didn&#8217;t like the &#8216;grey&#8217; that they used in the header.. not the issues I brought up. Security related, even though some are mild, and I&#8217;ve stated that, are still security related. </p>
<p>So where does that leave me. I was presented with the &#8216;get the refund but can&#8217;t use the product or use the product but lose the full $97&#8242; option again. I&#8217;ve stated in previous correspondence with them&#8230; keep your $97. I&#8217;ve modified my version of the code to address the issues I brought up and will use it. As presented in my earlier post, I said I was a unsatisifed programmer.. which led to me  being a unsatisfied customer. No turning that around.. and sorry BANS if you think that was unfair. It&#8217;s my opinion and I have every right to state that. I&#8217;m sorry that you think I was pressuring you for a refund, but I felt the product didn&#8217;t meet my (the customer&#8217;s) satisfaction. I&#8217;ve never asked for a refund from a software vender EVER. I&#8217;ve never blogged about a software vender (in this way) EVER.</p>
<p>What I want to do is bring awareness with this blog, definitely off tangent from my initial launch mission. Now people can see that there could be issues, and take a close look before intalling it. The fixes are easy (from my perspective, and if applied from BANS side). If this is a kick in the pants to make things a touch tighter.. then cool.</p>
<p>Maybe, now I can get back to writing about code.</p>
<p><strong><font color="red">UPDATE:</font></strong><br />
One of my issues that I addressed (and said it was up for debate) was the ability of BANS to edit physical files directly on the file system with fwrite(). They pointed out to me that many other software application/venders use this (ie: WordPress). I was able to verify that WordPress does in fact do this and one of my favorite pieces of software, vBulletin, does this as well. I feel uncomfortable with this functionality because, if admin access would ever get compromised, a malicious user could overwrite files or add their &#8216;evil&#8217; PHP to existing templates and execute those instructions. I think that is a bad thing, but obviously other venders don&#8217;t think it&#8217;s a big deal.. should I?.. hence the debate. I think it comes down to how secure the administrative access is. So for the record, I would like to concede my point about File System writing as one of the 5 items.</p>
<p>And I would like to offer ways to harden this section. If you have .htaccess ability you might want to consider limiting access to your IP or IPs (I understand if you have a dynamic IP or want the ability to administer from different locations, this might not be ideal). Another preventative measure would be to then add BasicAuthentication so you must log into get to the administrative directory (this would be a dual login then). This would also be done using .htaccess on that particular directory. The point is to prevent random anonymous attempts to circumvent access or brute force (make sure your BasicAuth pass is strong) their way into the administrative area. Why two logins? Because I trust BasicAuth.</p>
<p>I, myself, will add IP restriction for that area&#8230; as I do for other applications.</p>
<div style='clear:both'></div>

<p>Related posts:<ol><li><a href='http://www.money-code.com/2007/09/build-a-niche-store-security-issues/' rel='bookmark' title='Build A Niche Store &#8211; Security Issues'>Build A Niche Store &#8211; Security Issues</a></li>
<li><a href='http://www.money-code.com/2007/09/build-a-niche-store-bans-unsatisfied-programmer/' rel='bookmark' title='Build A Niche Store (BANS) &#8211; Unsatisfied Programmer'>Build A Niche Store (BANS) &#8211; Unsatisfied Programmer</a></li>
<li><a href='http://www.money-code.com/2007/09/bans-security-issues-are-being-addressed/' rel='bookmark' title='BANS &#8211; security issues are being addressed'>BANS &#8211; security issues are being addressed</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.money-code.com/2007/09/build-a-niche-store-bans-security-issues-are-being-addressed-continued/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
