<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Adam Palmer, Linux, PHP Programmer, MySQL Developer, Website Security Consultant</title>
	
	<link>http://www.adamsinfo.com</link>
	<description>Adam Palmer MBCS CITP, Linux, PHP Programmer, MySQL Developer, Website Security Consultant</description>
	<lastBuildDate>Mon, 26 Jul 2010 22:16:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/AdamsTechTalkLinuxHowtosDiscussion" /><feedburner:info uri="adamstechtalklinuxhowtosdiscussion" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Ethernet over mains power lines</title>
		<link>http://feedproxy.google.com/~r/AdamsTechTalkLinuxHowtosDiscussion/~3/j5GCvmE5Mio/</link>
		<comments>http://www.adamsinfo.com/ethernet-over-mains-power-lines/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 22:14:36 +0000</pubDate>
		<dc:creator>Adam Palmer</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Internetworking & Routing]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[devolo]]></category>
		<category><![CDATA[ethernet]]></category>
		<category><![CDATA[LAN]]></category>
		<category><![CDATA[network]]></category>

		<guid isPermaLink="false">http://www.adamsinfo.com/?p=951</guid>
		<description><![CDATA[I&#8217;ve been using a really clever device for the last few years that a lot of people seem to be unaware exists. It&#8217;s an ethernet over powerlines adapter &#8211; one such example is the Devolo dLAN. In a nutshell, you plug it into the mains, and connect the Ethernet socket to your network device. You [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/kOfrmAnQPNdHB0MvfKPogujymAU/0/da"><img src="http://feedads.g.doubleclick.net/~a/kOfrmAnQPNdHB0MvfKPogujymAU/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/kOfrmAnQPNdHB0MvfKPogujymAU/1/da"><img src="http://feedads.g.doubleclick.net/~a/kOfrmAnQPNdHB0MvfKPogujymAU/1/di" border="0" ismap="true"></img></a></p><p>I&#8217;ve been using a really clever device for the last few years that a lot of people seem to be unaware exists. It&#8217;s an ethernet over powerlines adapter &#8211; one such example is the Devolo dLAN. In a nutshell, you plug it into the mains, and connect the Ethernet socket to your network device. You can then plug as many others as you like to various other powerpoints and extend your network wherever the power stretches. Devolo do ones that run up to 200mbit. It&#8217;s a theoretical maximum, although I&#8217;ve got 177mbit before which is impressive. It has a couple of downsides:</p>
<p>1. It won&#8217;t traverse 3 phase power. I&#8217;ve tried it, and I&#8217;ve ended up with a very weak/nonexistant signal which is probably more inductance than anything else.<br />
2. Obviously it doesn&#8217;t handle bad cables well &#8211; it doesn&#8217;t much like extension cables either.<br />
3. Different circuits work about as well as 3 phase power, the only signal you will get is probably inductance between the two circuits.</p>
<p>Some advantages:<br />
1. It travels pretty far. I&#8217;ve had over 150mbit between adapters at opposite ends of the house.<br />
2. No new cabling<br />
3. Fully supports standard Ethernet so all network protocols will work just fine over it.<br />
4. I love it</p>
<p>For anyone running a home or office network and not fortunate to have Ethernet points cabled in, I strongly recommend these devices, you&#8217;ll never know the difference.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=j5GCvmE5Mio:ooCEScDb8jw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=j5GCvmE5Mio:ooCEScDb8jw:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?i=j5GCvmE5Mio:ooCEScDb8jw:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=j5GCvmE5Mio:ooCEScDb8jw:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/AdamsTechTalkLinuxHowtosDiscussion/~4/j5GCvmE5Mio" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.adamsinfo.com/ethernet-over-mains-power-lines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.adamsinfo.com/ethernet-over-mains-power-lines/</feedburner:origLink></item>
		<item>
		<title>Why test or scan?</title>
		<link>http://feedproxy.google.com/~r/AdamsTechTalkLinuxHowtosDiscussion/~3/-AQuxno5Shc/</link>
		<comments>http://www.adamsinfo.com/why-test-or-scan/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 01:36:29 +0000</pubDate>
		<dc:creator>Adam Palmer</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Security Consultant]]></category>

		<guid isPermaLink="false">http://www.adamsinfo.com/?p=1058</guid>
		<description><![CDATA[Yesterday, I offered a free website security scan.  Why would you need a scan?  I went into a little detail then, but I&#8217;d like to expand on what I wrote about, that being my offering my services as a PHP programmer.
If you&#8217;re an online merchant, your server needs to be PCI compliant.  [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/_TqfVscxcnlnDiDlzLpxZvy6_mg/0/da"><img src="http://feedads.g.doubleclick.net/~a/_TqfVscxcnlnDiDlzLpxZvy6_mg/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/_TqfVscxcnlnDiDlzLpxZvy6_mg/1/da"><img src="http://feedads.g.doubleclick.net/~a/_TqfVscxcnlnDiDlzLpxZvy6_mg/1/di" border="0" ismap="true"></img></a></p><p>Yesterday, I offered <a href="http://www.adamsinfo.com/free-website-security-scan/">a free website security scan</a>.  Why would you need a scan?  I went into a little detail then, but I&#8217;d like to expand on what I wrote about, that being my offering my services as a <a href="http://www.adamsinfo.com/">PHP programmer</a>.</p>
<p>If you&#8217;re an online merchant, your server needs to be PCI compliant.  Otherwise, you not only run the risk of being hacked and losing customer data, but you also run the risk of facing major fines.  One fine would be enough to wipe just about any small business out.</p>
<p>New security challenges arise every day.  In fact, they arise every hour, it seems.  Will your site stand up to the challenge?  Will it meet that challenge?  Only by regular security scans will you know.  Even if you&#8217;re not a merchant, you need scans, because I am willing to bet that you don&#8217;t want to be hacked.  All sorts of unsavory things can occur if that happens.</p>
<p>You could lose your databases.  You could lose all data on your server.  Your users&#8217; information could be compromised.  There are many things that could happen, and none of them are pleasant.</p>
<p>So, <a href="http://www.adamsinfo.com/contact-me/">contact me</a> for your free security scan today.  As I wrote earlier, all I ask in return is that you have a sincere intent of using my services.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=-AQuxno5Shc:pix_arq-VKo:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=-AQuxno5Shc:pix_arq-VKo:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?i=-AQuxno5Shc:pix_arq-VKo:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=-AQuxno5Shc:pix_arq-VKo:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/AdamsTechTalkLinuxHowtosDiscussion/~4/-AQuxno5Shc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.adamsinfo.com/why-test-or-scan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.adamsinfo.com/why-test-or-scan/</feedburner:origLink></item>
		<item>
		<title>Free Website Security Scan</title>
		<link>http://feedproxy.google.com/~r/AdamsTechTalkLinuxHowtosDiscussion/~3/Mlw9dHDBDTg/</link>
		<comments>http://www.adamsinfo.com/free-website-security-scan/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 18:29:36 +0000</pubDate>
		<dc:creator>Adam Palmer</dc:creator>
				<category><![CDATA[Security Consultant]]></category>
		<category><![CDATA[free website security scan]]></category>
		<category><![CDATA[php programmer]]></category>
		<category><![CDATA[website security consultant]]></category>

		<guid isPermaLink="false">http://www.adamsinfo.com/?p=1056</guid>
		<description><![CDATA[As a PHP Programmer with 8+ years experience now, I&#8217;ve always specialized in web security, security standards, and secure programming. In the say 300+ websites that I&#8217;ve dealt with in the past, at least 200 have been vulnerable to some sort of moderate to high risk attack. By high risk, I mean the steal your [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/b9xD4uSyr5sZjOO5tum5aZTtu6U/0/da"><img src="http://feedads.g.doubleclick.net/~a/b9xD4uSyr5sZjOO5tum5aZTtu6U/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/b9xD4uSyr5sZjOO5tum5aZTtu6U/1/da"><img src="http://feedads.g.doubleclick.net/~a/b9xD4uSyr5sZjOO5tum5aZTtu6U/1/di" border="0" ismap="true"></img></a></p><p>As a PHP Programmer with 8+ years experience now, I&#8217;ve always specialized in web security, security standards, and secure programming. In the say 300+ websites that I&#8217;ve dealt with in the past, at least 200 have been vulnerable to some sort of moderate to high risk attack. By high risk, I mean the steal your database and deface your website type of attack.</p>
<p>Free Website Security Scan? Why? Well, most of the security audits that I conduct will usually begin with a basic audit that ultimately goes uncharged in light of the thorough audit and any repair works that follow. On that basis, I&#8217;m happy to offer a basic FREE no obligation security audit to anyone genuinely interested in using my services. I do not require any code or data from you, nor any access to your systems. All I ask is that you have a genuine intention of using my services to thoroughly audit and/or repair any vulnerabilitie in your site that I&#8217;m able to identify and demonstrate.</p>
<p>Interested? <a href="/contact-me/">Contact me</a> now.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=Mlw9dHDBDTg:R5KOUUIpvDM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=Mlw9dHDBDTg:R5KOUUIpvDM:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?i=Mlw9dHDBDTg:R5KOUUIpvDM:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=Mlw9dHDBDTg:R5KOUUIpvDM:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/AdamsTechTalkLinuxHowtosDiscussion/~4/Mlw9dHDBDTg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.adamsinfo.com/free-website-security-scan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.adamsinfo.com/free-website-security-scan/</feedburner:origLink></item>
		<item>
		<title>Need a helping hand?</title>
		<link>http://feedproxy.google.com/~r/AdamsTechTalkLinuxHowtosDiscussion/~3/xD6hAEe1tqI/</link>
		<comments>http://www.adamsinfo.com/need-a-helping-hand/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 21:53:35 +0000</pubDate>
		<dc:creator>Adam Palmer</dc:creator>
				<category><![CDATA[Security Consultant]]></category>
		<category><![CDATA[adam palmer]]></category>
		<category><![CDATA[php programmer]]></category>
		<category><![CDATA[resume]]></category>
		<category><![CDATA[website security consultant]]></category>

		<guid isPermaLink="false">http://www.adamsinfo.com/?p=1053</guid>
		<description><![CDATA[If you need a skilled website security consultant or PHP programmer, then consider me.  Get in touch with me for a quote, and I&#8217;ll be more than happy to discuss what I can do for you.
These days, your site can&#8217;t be too secure, and if you&#8217;re unsure of how to properly secure your site [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/otuEFYwVi7UteNRoTmLNl65iImQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/otuEFYwVi7UteNRoTmLNl65iImQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/otuEFYwVi7UteNRoTmLNl65iImQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/otuEFYwVi7UteNRoTmLNl65iImQ/1/di" border="0" ismap="true"></img></a></p><p>If you need a skilled website security consultant or <a href="http://www.adamsinfo.com/adam-palmer-resume/">PHP programmer</a>, then consider me.  <a href="http://www.adamsinfo.com/contact-me/">Get in touch with me</a> for a quote, and I&#8217;ll be more than happy to discuss what I can do for you.</p>
<p>These days, your site can&#8217;t be too secure, and if you&#8217;re unsure of how to properly secure your site or your PHP code, I stand ready to assist you.  I can help you ensure that your server is secure overall, reducing the chances of it being hacked.  I can also go over your PHP code and ensure that it too is secure.  After all, a secure server really does no good if the PHP code isn&#8217;t also secure.</p>
<p>Feel free to browse my site and read my articles.  Then, get in touch with me, and let me know the details of your project!</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=xD6hAEe1tqI:FgHwkNcXRlA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=xD6hAEe1tqI:FgHwkNcXRlA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?i=xD6hAEe1tqI:FgHwkNcXRlA:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=xD6hAEe1tqI:FgHwkNcXRlA:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/AdamsTechTalkLinuxHowtosDiscussion/~4/xD6hAEe1tqI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.adamsinfo.com/need-a-helping-hand/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.adamsinfo.com/need-a-helping-hand/</feedburner:origLink></item>
		<item>
		<title>The importance of redirects</title>
		<link>http://feedproxy.google.com/~r/AdamsTechTalkLinuxHowtosDiscussion/~3/DFKhGDz4b1M/</link>
		<comments>http://www.adamsinfo.com/the-importance-of-redirects/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 21:41:18 +0000</pubDate>
		<dc:creator>Adam Palmer</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Security Consultant]]></category>
		<category><![CDATA[301 redirects]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[php programmer]]></category>
		<category><![CDATA[search engine]]></category>
		<category><![CDATA[traffic]]></category>

		<guid isPermaLink="false">http://www.adamsinfo.com/?p=1051</guid>
		<description><![CDATA[Yesterday, I discussed how you can redirect your HTML files to PHP files.  Why is it important to do so?
There are certainly no security concerns involved here, but you probably don&#8217;t want to lose your visitors who may bookmark certain pages, nor do you want to lose search engine traffic, because the HTML links [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/vCYkDRLT1pTyqaCVpzGclNTqcj0/0/da"><img src="http://feedads.g.doubleclick.net/~a/vCYkDRLT1pTyqaCVpzGclNTqcj0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/vCYkDRLT1pTyqaCVpzGclNTqcj0/1/da"><img src="http://feedads.g.doubleclick.net/~a/vCYkDRLT1pTyqaCVpzGclNTqcj0/1/di" border="0" ismap="true"></img></a></p><p>Yesterday, I <a href="http://www.adamsinfo.com/redirecting-all-html-files-to-php-files/">discussed how you can</a> redirect your HTML files to PHP files.  Why is it important to do so?</p>
<p>There are certainly no security concerns involved here, but you probably don&#8217;t want to lose your visitors who may bookmark certain pages, nor do you want to lose search engine traffic, because the HTML links will still show up in those engines until they crawl your changes.</p>
<p>That&#8217;s where the 301 redirect comes in.  This is the best sort of redirect to use, because it is search engine friendly.  What it tells search engines is that the page has moved permanently to the forwarding location you provide, which in this case is a PHP file.  Essentially, if you do it this way, the search engines won&#8217;t skip a beat, and you&#8217;ll keep your traffic.  The last thing you want to do is let search engines crawl 404 errors.</p>
<p>If you need help with these sorts of things, or if you need a skilled PHP programmer to help you sort out your conversion, I would be more than happy to take a look at your specific needs, and devise a plan for you.  This includes making sure that your PHP code and your setup is secure, as PHP is a valuable tool, but a potential security risk if not handled correctly.</p>
<p>My rates are reasonable, and I offer a wealth of experience that can benefit you.  Simply <a href="http://www.adamsinfo.com/contact-me">get in touch with me</a> for a custom quote!</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=DFKhGDz4b1M:rK8gZ5o1Fr8:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=DFKhGDz4b1M:rK8gZ5o1Fr8:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?i=DFKhGDz4b1M:rK8gZ5o1Fr8:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=DFKhGDz4b1M:rK8gZ5o1Fr8:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/AdamsTechTalkLinuxHowtosDiscussion/~4/DFKhGDz4b1M" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.adamsinfo.com/the-importance-of-redirects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.adamsinfo.com/the-importance-of-redirects/</feedburner:origLink></item>
		<item>
		<title>Redirecting all HTML files to PHP files</title>
		<link>http://feedproxy.google.com/~r/AdamsTechTalkLinuxHowtosDiscussion/~3/kMjkv2uISGQ/</link>
		<comments>http://www.adamsinfo.com/redirecting-all-html-files-to-php-files/#comments</comments>
		<pubDate>Sun, 18 Jul 2010 22:03:50 +0000</pubDate>
		<dc:creator>Adam Palmer</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[php programmer]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[rewritecond]]></category>
		<category><![CDATA[rewriteengine]]></category>
		<category><![CDATA[rewriterule]]></category>

		<guid isPermaLink="false">http://www.adamsinfo.com/?p=1048</guid>
		<description><![CDATA[Let&#8217;s say that you want to rename all your HTML files to PHP files to begin PHP Programming. However, you don&#8217;t want to lose all your inbound links to your HTML files. Here&#8217;s a quick and easy way to automatically convert all .html incoming addresses to .php files on your server, allowing you to switch [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/xbXSTtHYkzc6GSU5GVzS9a-7Oj8/0/da"><img src="http://feedads.g.doubleclick.net/~a/xbXSTtHYkzc6GSU5GVzS9a-7Oj8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/xbXSTtHYkzc6GSU5GVzS9a-7Oj8/1/da"><img src="http://feedads.g.doubleclick.net/~a/xbXSTtHYkzc6GSU5GVzS9a-7Oj8/1/di" border="0" ismap="true"></img></a></p><p>Let&#8217;s say that you want to rename all your HTML files to PHP files to begin PHP Programming. However, you don&#8217;t want to lose all your inbound links to your HTML files. Here&#8217;s a quick and easy way to automatically convert all .html incoming addresses to .php files on your server, allowing you to switch to PHP and also keeping all your existing .html links working.</p>
<p>Create a .htaccess file, and enter:</p>
<p>RewriteEngine on<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteRule ^(.*)\.html $1.php [R=301,NC]</p>
<p>This creates a permanent working 301 redirect (Search Engine Friendly) to your new .PHP file.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=kMjkv2uISGQ:oNhLyjTS9wA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=kMjkv2uISGQ:oNhLyjTS9wA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?i=kMjkv2uISGQ:oNhLyjTS9wA:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=kMjkv2uISGQ:oNhLyjTS9wA:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/AdamsTechTalkLinuxHowtosDiscussion/~4/kMjkv2uISGQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.adamsinfo.com/redirecting-all-html-files-to-php-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.adamsinfo.com/redirecting-all-html-files-to-php-files/</feedburner:origLink></item>
		<item>
		<title>A PHP programmer indeed</title>
		<link>http://feedproxy.google.com/~r/AdamsTechTalkLinuxHowtosDiscussion/~3/6dd7aegvJWw/</link>
		<comments>http://www.adamsinfo.com/a-php-programmer-indeed/#comments</comments>
		<pubDate>Sat, 17 Jul 2010 00:55:09 +0000</pubDate>
		<dc:creator>Adam Palmer</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Security Consultant]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[php programmer]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[website security consultant]]></category>

		<guid isPermaLink="false">http://www.adamsinfo.com/?p=1045</guid>
		<description><![CDATA[You may be browsing through my site, or maybe you came here because you&#8217;re looking for a PHP programmer.  Allow me to introduce myself.  I am Adam Palmer, and I&#8217;m a freelance website security consultant, developer, and, of course, a PHP programmer.  I&#8217;m willing and able to do most any web, Linux, [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/QTUsOVYNhGy8p0jCW0QXyew_bxM/0/da"><img src="http://feedads.g.doubleclick.net/~a/QTUsOVYNhGy8p0jCW0QXyew_bxM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/QTUsOVYNhGy8p0jCW0QXyew_bxM/1/da"><img src="http://feedads.g.doubleclick.net/~a/QTUsOVYNhGy8p0jCW0QXyew_bxM/1/di" border="0" ismap="true"></img></a></p><p>You may be browsing through my site, or maybe you came here because you&#8217;re looking for a PHP programmer.  Allow me to introduce myself.  I am Adam Palmer, and I&#8217;m a freelance website security consultant, developer, and, of course, a PHP programmer.  I&#8217;m willing and able to do most any web, Linux, or hosting-related project.</p>
<p>If you have something along those lines that needs to be done, <a href="http://www.adamsinfo.com/contact-me">simply contact me</a>, and we can discuss your needs in greater detail.</p>
<p>In addition to doing this sort of work, I run <a href="http://www.apnicsolutions.com">APNIC Solutions, Ltd.</a>, which is a leader in network and business integration.  You can be confident that when you hire me for your PHP, web, or other needs, you are getting a competent, skilled industry leader who will do a smashing job for a reasonable fee.</p>
<p>Feel free to browse through my blog and read my articles on a variety of PHP and security topics.  Then, get in touch with me to see what I can do for you!  If all you need is a consultant to point you in the right direction and help you get to to the finish line, I would be more than happy and honoured to be that person.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=6dd7aegvJWw:TWplO207WCI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=6dd7aegvJWw:TWplO207WCI:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?i=6dd7aegvJWw:TWplO207WCI:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=6dd7aegvJWw:TWplO207WCI:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/AdamsTechTalkLinuxHowtosDiscussion/~4/6dd7aegvJWw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.adamsinfo.com/a-php-programmer-indeed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.adamsinfo.com/a-php-programmer-indeed/</feedburner:origLink></item>
		<item>
		<title>Passing PHP variable data through POST</title>
		<link>http://feedproxy.google.com/~r/AdamsTechTalkLinuxHowtosDiscussion/~3/gzdq2yKo100/</link>
		<comments>http://www.adamsinfo.com/passing-php-variable-data-through-post/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 22:31:32 +0000</pubDate>
		<dc:creator>Adam Palmer</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[php programmer]]></category>
		<category><![CDATA[php variable]]></category>
		<category><![CDATA[post data]]></category>
		<category><![CDATA[serialize]]></category>
		<category><![CDATA[unserialize]]></category>
		<category><![CDATA[urlrawencode]]></category>

		<guid isPermaLink="false">http://www.adamsinfo.com/?p=1043</guid>
		<description><![CDATA[Recently, I was developing an API for a PHP application I&#8217;d built, to be utilized by other php programmers. Essentially, the php programmer passes a load of data to our API though a POST variable. This is as follows:
$api-&#62;process($to_process, $data, $opt1, $opt2);
$to_process is an array, as follows;
$to_process = Array( Array(&#8221;FOO&#8221;, &#8220;BAR&#8221;, 1, 2), Array(&#8221;BAR&#8221;, &#8220;FOO&#8221;, [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/3k7RwWdT9VvbRLglXPWRBqSMaHQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/3k7RwWdT9VvbRLglXPWRBqSMaHQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/3k7RwWdT9VvbRLglXPWRBqSMaHQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/3k7RwWdT9VvbRLglXPWRBqSMaHQ/1/di" border="0" ismap="true"></img></a></p><p>Recently, I was developing an API for a PHP application I&#8217;d built, to be utilized by other php programmers. Essentially, the php programmer passes a load of data to our API though a POST variable. This is as follows:</p>
<p>$api-&gt;process($to_process, $data, $opt1, $opt2);</p>
<p>$to_process is an array, as follows;</p>
<p>$to_process = Array( Array(&#8221;FOO&#8221;, &#8220;BAR&#8221;, 1, 2), Array(&#8221;BAR&#8221;, &#8220;FOO&#8221;, 5, 3), Array(&#8221;HELLO&#8221;, &#8220;World&#8221;, 9, 10) );</p>
<p>And $data is a ~5k string containing HTML code.</p>
<p>My best option so far, has been $data_array = Array(); $data_array[] = $to_process; $data_array[] = $code; $data_array[] = $opt1; $data_array[] = $opt2;</p>
<p>We can then send urlrawencode(serialize($data_array)); from our PHP script to the web API via curl through POST data. On the remote API server, we don&#8217;t need to use urlrawdecode() as the web server handles this for you. It&#8217;s also worth ensuring that magic_quotes_gpc is off. Simply, $data_array = unserialize($_POST['variable']); should do just fine.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=gzdq2yKo100:oZWstwcJ7d0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=gzdq2yKo100:oZWstwcJ7d0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?i=gzdq2yKo100:oZWstwcJ7d0:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=gzdq2yKo100:oZWstwcJ7d0:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/AdamsTechTalkLinuxHowtosDiscussion/~4/gzdq2yKo100" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.adamsinfo.com/passing-php-variable-data-through-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.adamsinfo.com/passing-php-variable-data-through-post/</feedburner:origLink></item>
		<item>
		<title>Another PHP tip</title>
		<link>http://feedproxy.google.com/~r/AdamsTechTalkLinuxHowtosDiscussion/~3/L57ws3iZ2gw/</link>
		<comments>http://www.adamsinfo.com/another-php-tip/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 22:25:32 +0000</pubDate>
		<dc:creator>Adam Palmer</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[php programmer]]></category>
		<category><![CDATA[php programmer resume]]></category>
		<category><![CDATA[safety]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[trust]]></category>

		<guid isPermaLink="false">http://www.adamsinfo.com/?p=1041</guid>
		<description><![CDATA[While it&#8217;s all well and good to spend considerable time securing your PHP applications, there is something else that you can do, or rather not do.  As a PHP programmer, I see people do one alarming thing: they download and install PHP applications from questionable sources.
While there are a lot of honourable programmers who [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/XK6WMBdHncVmhlRpN4hwCTQatD4/0/da"><img src="http://feedads.g.doubleclick.net/~a/XK6WMBdHncVmhlRpN4hwCTQatD4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/XK6WMBdHncVmhlRpN4hwCTQatD4/1/da"><img src="http://feedads.g.doubleclick.net/~a/XK6WMBdHncVmhlRpN4hwCTQatD4/1/di" border="0" ismap="true"></img></a></p><p>While it&#8217;s all well and good to spend considerable time securing your PHP applications, there is something else that you can do, or rather not do.  As a PHP programmer, I see people do one alarming thing: they download and install PHP applications from questionable sources.</p>
<p>While there are a lot of honourable programmers who offer their scripts for free, there are plenty of hackers who enjoy deploying applications that cause harm to others.  I <a href="http://www.adamsinfo.com/keeping-your-site-secure/">discussed this</a> earlier, but it bears repeating: trust your source.  Know your source.<br />
<span id="more-1041"></span><br />
This includes scripts that people offer for download on forums you may visit.  There are plenty of good people out there who merely want to share their scripts and help, but your server&#8217;s security is very important.</p>
<p>A hacker doesn&#8217;t even need to gain access to your server.  He or she can write a script and gain satisfaction from knowing their work is causing damage around the world.</p>
<p>Just be careful.  Download from known and trusted sources, or if you have a script you&#8217;re unsure of, run it by someone you trust.  You can even contact me, and I&#8217;d be more than happy to share my resume, and show you what I can do to help you secure your scripts and keep your server safe.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=L57ws3iZ2gw:tGjVOYQ3Pns:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=L57ws3iZ2gw:tGjVOYQ3Pns:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?i=L57ws3iZ2gw:tGjVOYQ3Pns:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=L57ws3iZ2gw:tGjVOYQ3Pns:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/AdamsTechTalkLinuxHowtosDiscussion/~4/L57ws3iZ2gw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.adamsinfo.com/another-php-tip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.adamsinfo.com/another-php-tip/</feedburner:origLink></item>
		<item>
		<title>Securing PHPMyAdmin and SQL</title>
		<link>http://feedproxy.google.com/~r/AdamsTechTalkLinuxHowtosDiscussion/~3/Nu-vO-sp6Hs/</link>
		<comments>http://www.adamsinfo.com/securing-phpmyadmin-sql/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 21:40:09 +0000</pubDate>
		<dc:creator>Adam Palmer</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[attacks]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[php programmer resume]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[website security consultant]]></category>

		<guid isPermaLink="false">http://www.adamsinfo.com/?p=1039</guid>
		<description><![CDATA[PHP is of course a valuable tool, and PHPMyAdmin is an equally valuable asset for those that don&#8217;t like command line administration.  The problem is that because it&#8217;s a valuable tool, it&#8217;s a security exposure.  As a website security consultant, I see the problem often: people don&#8217;t secure the one thing that, if [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/Km-XmLpwN2NMv4B7eSsr-tS8FTY/0/da"><img src="http://feedads.g.doubleclick.net/~a/Km-XmLpwN2NMv4B7eSsr-tS8FTY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Km-XmLpwN2NMv4B7eSsr-tS8FTY/1/da"><img src="http://feedads.g.doubleclick.net/~a/Km-XmLpwN2NMv4B7eSsr-tS8FTY/1/di" border="0" ismap="true"></img></a></p><p>PHP is of course a valuable tool, and PHPMyAdmin is an equally valuable asset for those that don&#8217;t like command line administration.  The problem is that because it&#8217;s a valuable tool, it&#8217;s a security exposure.  As a website security consultant, I see the problem often: people don&#8217;t secure the one thing that, if accessed by a malicious party, can give carte blanche for destruction.</p>
<p>One simple way to secure your installation is to slightly modify your config.inc.php file:</p>
<p>Look for this line:</p>
<p>$cfg['Servers'][$i]['auth_type'] = &#8216;config&#8217;;</p>
<p>Change &#8220;config&#8221; to &#8220;http&#8221;.  By doing this, you will require that the database information (username and password) be entered  prior to accessing PHPMyAdmin.  Of course, this only addresses attacks over the web.  If someone tries to remotely connect to your database and knows the root password, or the credentials for any of your database, then you&#8217;re still vulnerable.</p>
<p>One way to address the security of your config.inc.php file is to <a href="http://www.adamsinfo.com/an-easy-way-to-reduce-attacks/">secure the directory</a> that it&#8217;s stored in.  This is especially important if you should be on a shared server.</p>
<p>Of course, there is still the matter of your SQL port, 3306, being open to remote attacks.  The solution to this problem can be found in the /etc/my.cnf file.</p>
<p>You need to add this line to make it so that only your server can connect to the SQL server.</p>
<p>Ensure that it&#8217;s under the &#8220;[mysqld]&#8221; section:</p>
<p>bind-address = 127.0.0.1</p>
<p>This sets it so that the SQL daemon only listens for connections locally, i.e. on your server.  Anyone who tries to connect remotely will be denied.  Now, the argument could be made that you could also try to add &#8220;skip-networking&#8221; to your my.cnf file, and then specify the path to your socket file, but you still need a way to administer your SQL, preferably via SSH.  By adding the &#8220;bind-address&#8221; command, you can do just that.</p>
<p>The name of the game is security, and assumption.  You have to assume that everyone&#8217;s out to attack you.  If you think like that, you&#8217;ll narrow down all the ports that are exposed, and secure your server.  Your SQL server is, like your DNS server, vital.  It most likely powers your site.  If the database is attacked, the damage can be considerable.  Do understand that if a hacker is intent enough, they will find a way in, but by making it as difficult as possible, you reduce the chances of that happening.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=Nu-vO-sp6Hs:DkQE6F_CtU4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=Nu-vO-sp6Hs:DkQE6F_CtU4:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?i=Nu-vO-sp6Hs:DkQE6F_CtU4:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=Nu-vO-sp6Hs:DkQE6F_CtU4:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/AdamsTechTalkLinuxHowtosDiscussion/~4/Nu-vO-sp6Hs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.adamsinfo.com/securing-phpmyadmin-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.adamsinfo.com/securing-phpmyadmin-sql/</feedburner:origLink></item>
		<item>
		<title>Validate your input</title>
		<link>http://feedproxy.google.com/~r/AdamsTechTalkLinuxHowtosDiscussion/~3/34JD0E95BEA/</link>
		<comments>http://www.adamsinfo.com/validate-your-input/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 21:25:12 +0000</pubDate>
		<dc:creator>Adam Palmer</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[injection]]></category>
		<category><![CDATA[malicious code]]></category>
		<category><![CDATA[php programer]]></category>
		<category><![CDATA[php programmer resume]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://www.adamsinfo.com/?p=1037</guid>
		<description><![CDATA[An important thing to consider when accepting input from users is validation.  When PHP is used, powerful functions can be performed.  The problem is that it can also do powerful and bad things if a malicious user is entering data which isn&#8217;t validated.
Consider this: you accept input asking for a month or year. [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/esy2BA5EAmLJBc4ADEXyo9kqyj4/0/da"><img src="http://feedads.g.doubleclick.net/~a/esy2BA5EAmLJBc4ADEXyo9kqyj4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/esy2BA5EAmLJBc4ADEXyo9kqyj4/1/da"><img src="http://feedads.g.doubleclick.net/~a/esy2BA5EAmLJBc4ADEXyo9kqyj4/1/di" border="0" ismap="true"></img></a></p><p>An important thing to consider when accepting input from users is validation.  When PHP is used, powerful functions can be performed.  The problem is that it can also do powerful and bad things if a malicious user is entering data which isn&#8217;t validated.</p>
<p>Consider this: you accept input asking for a month or year.  The problem is that a user decides to enter &#8220;&#8221;;rm -rf *&#8221; after the year, and in so doing could cause the deletion of your whole website.  Obviously, this is not a good thing, so what to do?  Data validation is the answer.  As the name suggests, it validates or verifies data, ensuring that it complies to form.<br />
<span id="more-1037"></span><br />
In other words, when you validate data, you ensure that a user entered numbers for a year, and not a malicious command as shown above.  Unfortunately, many webmasters have fallen victim to this, all because they didn&#8217;t tighten security on their server.</p>
<p>One solution would be to enter data in this manner:</p>
<p>$month = $_GET['month'];<br />
$year = $_GET['year'];</p>
<p>if (!preg_match(&#8221;/^[0-9]{1,2}$/&#8221;, $month)) die(&#8221;Invalid entry.  Please try again.&#8221;);<br />
if (!preg_match(&#8221;/^[0-9]{4}$/&#8221;, $year)) die(&#8221;Invalid entry.  Please try again.&#8221;);</p>
<p>exec(&#8221;cal $month $year&#8221;, $result);<br />
print &#8220;
<pre>";
foreach ($result as $r) { print "$r<BR>"; }
print "</pre>
<p>&#8220;;</p>
<p>What this code does is this: it allows your user to enter a month and a year, say for a credit card or date of birth, but it also double checks the data, ensuring that it is in fact numeric data that a user entered, and not code that could cause you hours of grief.  </p>
<p>Of course, there is more extensive code you can write which will validate further, but this data pertains strictly to the security of your server.  You can, of course, add code that will ensure that a year is between, say 1900 and 2020, and that a month is between 1 and 12.</p>
<p>As an administrator or webmaster, you need to consider all data that a user enters questionable.  By using this mindset, you&#8217;ll be in a position to prevent yourself from being vulnerable to malicious injection attacks.  Too often, a webmaster has chosen not to take security measures because he or she assumed that no one would try something so awful as to delete someone&#8217;s data.  As we see every day, however, there are people who think nothing of ruining peoples&#8217; hard work, data, and electronic property.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=34JD0E95BEA:ecyuo5Lp6OY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=34JD0E95BEA:ecyuo5Lp6OY:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?i=34JD0E95BEA:ecyuo5Lp6OY:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=34JD0E95BEA:ecyuo5Lp6OY:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/AdamsTechTalkLinuxHowtosDiscussion/~4/34JD0E95BEA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.adamsinfo.com/validate-your-input/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.adamsinfo.com/validate-your-input/</feedburner:origLink></item>
		<item>
		<title>The importance of secure PHP code</title>
		<link>http://feedproxy.google.com/~r/AdamsTechTalkLinuxHowtosDiscussion/~3/v54QYBZseRU/</link>
		<comments>http://www.adamsinfo.com/the-importance-of-secure-php-code/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 14:08:26 +0000</pubDate>
		<dc:creator>Adam Palmer</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[compromised]]></category>
		<category><![CDATA[php programmer]]></category>
		<category><![CDATA[resume]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[sql injection]]></category>

		<guid isPermaLink="false">http://www.adamsinfo.com/?p=1035</guid>
		<description><![CDATA[In recent days, I&#8217;ve talked about the importance of server hardening and security, but there&#8217;s another aspect of the integrity of your server that must not be ignored: PHP code.
If you don&#8217;t have secure PHP code, you may find yourself the victim of numerous type of attacks, including SQL injection attacks, which as the name [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/NeDi_-YRsdtV3hux7t9ihclxCls/0/da"><img src="http://feedads.g.doubleclick.net/~a/NeDi_-YRsdtV3hux7t9ihclxCls/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/NeDi_-YRsdtV3hux7t9ihclxCls/1/da"><img src="http://feedads.g.doubleclick.net/~a/NeDi_-YRsdtV3hux7t9ihclxCls/1/di" border="0" ismap="true"></img></a></p><p>In recent days, I&#8217;ve talked about the importance of server hardening and security, but there&#8217;s another aspect of the integrity of your server that must not be ignored: PHP code.</p>
<p>If you don&#8217;t have secure PHP code, you may find yourself the victim of numerous type of attacks, including SQL injection attacks, which as the name suggest, goes directly after your database, which in most cases is the very heart of your website or application.<br />
<span id="more-1035"></span><br />
Sometimes, the most basic adjustments will go along way.  One example is this variable:</p>
<p>register_globals</p>
<p>If you look in your php.ini file, and find that this variable is enabled, you may be putting yourself at risk, for all anyone has to do is add &#8220;?authorized=1&#8243; to a URL on your site, and they will then gain access to sensitive information that you likely don&#8217;t want the average user to see.  </p>
<p>The best solution here is to simply set register_globals to &#8220;off&#8221;.</p>
<p>Another mistake that many people make is that they fail to suppress PHP errors.  When a PHP error occurs, and error reporting is fully enabled, a user can see a lot of information about your site, including exact paths.  Of course, you don&#8217;t want this information to be readily available, so it would be a wise decision to suppress the errors so that they do not display in the web browser.</p>
<p>You actually need not change the error_reporting variable itself, because you still want to be able to see errors as the administrator.  You just don&#8217;t the whole world to see them, too.  To accomplish this goal, simply look for the &#8220;display_errors&#8221; variable, and set it to &#8220;Off&#8221;.  </p>
<p>You will also want to set the &#8220;log_errors&#8221; variable to &#8220;ON&#8221;, so that the errors show up in your error log.  If you turn both logging and display off, the potential exists for errors to still display, because the errors do need to be reported somewhere.  But by confining it to the error_log, you and anyone else you grant administrative powers to will be the only ones who see them.</p>
<p>By doing this, you will prevent error messages from showing up on a user&#8217;s web browser, potentially giving them a detailed road map to the compromising of your server.</p>
<p>Also, make sure that there are no settings for error reporting in your .htaccess file, because these settings could override your default php.ini settings for that particular website.</p>
<p>These are just two examples of easy ways that you can secure PHP.  There are, of course, many others.  Though these solutions are simple, they go a long way, and the time invested in making these adjustments will pay dividends in the form of a secure server.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=v54QYBZseRU:uWqKqpq2rNA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=v54QYBZseRU:uWqKqpq2rNA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?i=v54QYBZseRU:uWqKqpq2rNA:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=v54QYBZseRU:uWqKqpq2rNA:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/AdamsTechTalkLinuxHowtosDiscussion/~4/v54QYBZseRU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.adamsinfo.com/the-importance-of-secure-php-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.adamsinfo.com/the-importance-of-secure-php-code/</feedburner:origLink></item>
		<item>
		<title>SSL increases confidence</title>
		<link>http://feedproxy.google.com/~r/AdamsTechTalkLinuxHowtosDiscussion/~3/LmMERhhZogk/</link>
		<comments>http://www.adamsinfo.com/ssl-increases-confidence/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 21:25:58 +0000</pubDate>
		<dc:creator>Adam Palmer</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security Consultant]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[commerce]]></category>
		<category><![CDATA[purchases]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://www.adamsinfo.com/?p=1033</guid>
		<description><![CDATA[If you run a commerce website, you&#8217;ve probably heard about SSL certificates.  Depending upon the level of certificate that you have, they verify the validity of your domain, up to detailed information about your company.  An SSL certificate isn&#8217;t handy just for commerce sites, however.  It&#8217;s a vital website security component for [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/dLXcoPJdO74-TZX9EDjSFNglDe8/0/da"><img src="http://feedads.g.doubleclick.net/~a/dLXcoPJdO74-TZX9EDjSFNglDe8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/dLXcoPJdO74-TZX9EDjSFNglDe8/1/da"><img src="http://feedads.g.doubleclick.net/~a/dLXcoPJdO74-TZX9EDjSFNglDe8/1/di" border="0" ismap="true"></img></a></p><p>If you run a commerce website, you&#8217;ve probably heard about SSL certificates.  Depending upon the level of certificate that you have, they verify the validity of your domain, up to detailed information about your company.  An SSL certificate isn&#8217;t handy just for commerce sites, however.  It&#8217;s a vital website security component for any site that deals with personal information of any sort.</p>
<p>These days, attacks on severs are commonplace, and website users are wary, especially when it comes to entering sensitive information.  That&#8217;s where an SSL certificate comes in handy.  It increases consumer confidence, and confidence of visitors in general.  It shows that you&#8217;re serious about what you&#8217;re doing.<br />
<span id="more-1033"></span><br />
An SSL certificate is really a must if you plan to accept any sort of sensitive data, including passwords, personal information, or payment credentials.  While it&#8217;s not a must to have an SSL certificate if you only have a message board on your site, you would be well advised to purchase one if you collect any sort of personal information, including real names and addresses.</p>
<p>An SSL certificate is really mandatory if you run a commerce website.  Credit card companies require this, and there are very few customers who are willing to enter payment or personal information without the blue or green bar, or the lock logo, depending upon the browser.</p>
<p>It&#8217;s quite easy to install an SSL certificate if you have a control panel of any sort, but the process is a little bit more involved if you do it in your SSH shell.  You will first need to enable the mod_ssl module in Apache.  It&#8217;s included in the default installation, but it is not enabled as a default.  The module requires the OpenSSL library.</p>
<p>As you can see, it&#8217;s a very involved process to install an SSL certificate if you don&#8217;t have a control panel.  It&#8217;s important that it be installed correctly, because there&#8217;s a certain chain to follow, and if link in the chain is broken, your certificate won&#8217;t validate, and even worse, your users could get an error message warning them about potential safety issues, which is not something that any webmaster wants.</p>
<p>If you are not comfortable with doing the process manually, have someone help you.  Even if you must pay for their services, it&#8217;s money well spent, because the increased sales or usage your site will get as a result will be the return on investment.</p>
<p>Sadly, an SSL certificate is something that many well-meaning webmasters or merchants neglect to get, and apart from violating the terms of the credit card companies&#8217; merchant agreements, it&#8217;s simply not good for business.</p>
<p>It would be well advised to use the https:// protocol for any section of your website that accepts a password, personal information, or payment information.  Doing so will make the experience far more pleasant for both yourself and your users or customers.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=LmMERhhZogk:5YNc19CrwkE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=LmMERhhZogk:5YNc19CrwkE:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?i=LmMERhhZogk:5YNc19CrwkE:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=LmMERhhZogk:5YNc19CrwkE:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/AdamsTechTalkLinuxHowtosDiscussion/~4/LmMERhhZogk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.adamsinfo.com/ssl-increases-confidence/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.adamsinfo.com/ssl-increases-confidence/</feedburner:origLink></item>
		<item>
		<title>An easy way to reduce attacks</title>
		<link>http://feedproxy.google.com/~r/AdamsTechTalkLinuxHowtosDiscussion/~3/GSxtHTBiOdM/</link>
		<comments>http://www.adamsinfo.com/an-easy-way-to-reduce-attacks/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 22:27:14 +0000</pubDate>
		<dc:creator>Adam Palmer</dc:creator>
				<category><![CDATA[Security Consultant]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[php programmer]]></category>
		<category><![CDATA[secure]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[website security consultant]]></category>

		<guid isPermaLink="false">http://www.adamsinfo.com/?p=1031</guid>
		<description><![CDATA[The server hardening process can be a daunting task for someone who&#8217;s new to the process, or who&#8217;s new to hosting in general.  The good news is that there&#8217;s one simple way to help reduce attacks on your server, or at least its PHP applications.
If you run an e-commerce site, chances are you run [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/jnrqwvCgZy0x7eYCo_Ac2KrcIG8/0/da"><img src="http://feedads.g.doubleclick.net/~a/jnrqwvCgZy0x7eYCo_Ac2KrcIG8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/jnrqwvCgZy0x7eYCo_Ac2KrcIG8/1/da"><img src="http://feedads.g.doubleclick.net/~a/jnrqwvCgZy0x7eYCo_Ac2KrcIG8/1/di" border="0" ismap="true"></img></a></p><p>The server hardening process can be a daunting task for someone who&#8217;s new to the process, or who&#8217;s new to hosting in general.  The good news is that there&#8217;s one simple way to help reduce attacks on your server, or at least its PHP applications.</p>
<p>If you run an e-commerce site, chances are you run a CMS such as WordPress, and a shopping cart application such as WHMCS.  Both of these applications, like nearly all others, have a login module for the administrators.  Especially in the case of well-known programs, there are plenty of people know how to find your administrative log in panel, and that includes those with less than honourable intentions.<br />
<span id="more-1031"></span><br />
You can easily give them one more hurdle to leap over before they get to your administrative panel, and attempt to exploit its lost password features, or simply try to gain access with a brute force attack.  By setting up an additional username and password for each directory, anyone who needs access will need to successfully by pass that prompt, as well as the administrative prompt.</p>
<p>If you have a control panel such as cPanel, Plesk, or DirectAdmin, this process is automated, but what if you run no control panel?  No worries, it&#8217;s quite simple.</p>
<p>1.) In your SSH account, as root, navigate to the directory above your public_html folder that contains the folder you want to secure.  So, if you want to secure the /store/admin folder on your website, you&#8217;d navigate above the public_html folder.</p>
<p>2.) Issue this command:</p>
<p>htpasswd -c .htpasswd [username]</p>
<p>or..</p>
<p>/home/user/admin/domains/yourdomain.com/.htpasswd bill</p>
<p>You will then be prompted for a password for &#8220;bill&#8221;, or whichever username you&#8217;ve chosen.</p>
<p>As with any password, ensure that you choose a mixture of uppercase and lowercase letters, numbers, and special characters.  Save the file.  We have placed it outside of your web-accessible directory in order to prevent hacking or cracking.</p>
<p>Issue this command chmod go+r .htpasswd</p>
<p>This will secure the file.</p>
<p>3.) Navigate to the actual directory you wish to be secured.</p>
<p>4.) Create a file called .htaccess.  In it, place this information:</p>
<p>AuthUserFile /full/path/here/.htpasswd<br />
AuthGroupFile /dev/null<br />
AuthName EnterPassword<br />
AuthType Basic</p>
<p>require user webadmin</p>
<p>Issue this command: chmod go+r .htaccess.  Note that above, you need to place the full path of the .htpasswd file, next to &#8220;AuthUserFile&#8221;.  If you don&#8217;t know this, go back to the path where you edited .htpasswd and then issue the &#8220;pwd&#8221; command.  Or failing that, you can issue the command:</p>
<p>locate .htpasswd</p>
<p>Save the file.  At this point, you will need to restart Apache:</p>
<p>apachectl -k restart</p>
<p>You should now have a secured directory, which will require a separate login from whatever login script the application itself has.  This will make it harder for a hacker to gain access to your vital applications.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=GSxtHTBiOdM:S2wYsjaS5hc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=GSxtHTBiOdM:S2wYsjaS5hc:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?i=GSxtHTBiOdM:S2wYsjaS5hc:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=GSxtHTBiOdM:S2wYsjaS5hc:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/AdamsTechTalkLinuxHowtosDiscussion/~4/GSxtHTBiOdM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.adamsinfo.com/an-easy-way-to-reduce-attacks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.adamsinfo.com/an-easy-way-to-reduce-attacks/</feedburner:origLink></item>
		<item>
		<title>Hardening your server</title>
		<link>http://feedproxy.google.com/~r/AdamsTechTalkLinuxHowtosDiscussion/~3/lhzOFCx72JA/</link>
		<comments>http://www.adamsinfo.com/hardening-your-server/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 16:58:14 +0000</pubDate>
		<dc:creator>Adam Palmer</dc:creator>
				<category><![CDATA[Security Consultant]]></category>
		<category><![CDATA[server hardening]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[website security consultant]]></category>

		<guid isPermaLink="false">http://www.adamsinfo.com/?p=1028</guid>
		<description><![CDATA[Hardening your server is perhaps the best way to prevent, or at least reduce, attacks on your server.  What follows is a basic overview of what you should do to harden your server.  If you are not completely comfortable doing this, you should retain the services of someone who is, to avoid data [...]]]></description>
			<content:encoded><![CDATA[
<p><a href="http://feedads.g.doubleclick.net/~a/gSGe4osYLt8kbRtGeOWq9sx5XbI/0/da"><img src="http://feedads.g.doubleclick.net/~a/gSGe4osYLt8kbRtGeOWq9sx5XbI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/gSGe4osYLt8kbRtGeOWq9sx5XbI/1/da"><img src="http://feedads.g.doubleclick.net/~a/gSGe4osYLt8kbRtGeOWq9sx5XbI/1/di" border="0" ismap="true"></img></a></p><p>Hardening your server is perhaps the best way to prevent, or at least reduce, attacks on your server.  What follows is a basic overview of what you should do to harden your server.  If you are not completely comfortable doing this, you should retain the services of someone who is, to avoid data loss.</p>
<p>The key service you want to secure is SSH, as that is perhaps the most vulnerable.  If someone should have access through this protocol, they would have complete power over your server, and all the sites on it.<br />
<span id="more-1028"></span><br />
If you log in to your server by using the &#8220;root&#8221; username, that is the first thing you want to fix.  Log in, and then create a new user:</p>
<p>adduser [user] -G wheel</p>
<p>By doing this, you&#8217;ve just created a user that is added to the wheel, or list of users who can gain root authority.  </p>
<p>Next, give the username a password:</p>
<p>passwd [username]</p>
<p>Now you&#8217;ll want to open up a new SSH window, and try logging in under the new username and password.  If this works, you can then su to root.  This way, a hacker would need to bypass security on two usernames instead of one.  If the worst happens, and a hacker gains access to your administrative username, but does not have the root password, he or she can&#8217;t visit complete havoc upon your server.</p>
<p>Next, you&#8217;ll want to change the port that your SSH protocol is on.  The default is 22, and this is common knowledge.  So, you&#8217;ll want to choose another port to make it harder for hackers to find and potentially exploit your SSH protocol:</p>
<p>Open the following file, substituting &#8220;nano&#8221; for &#8220;vi,&#8221; or any other favourite text editor.</p>
<p>nano /etc/ssh/sshd_config</p>
<p>Look for the following elements:</p>
<p>Port&#8211; It&#8217;s currently 22.  Change it to an unused port such as 2199.<br />
PermitRootLogin- If it&#8217;s commented out with a &#8220;#,&#8221; uncomment it, and change it to &#8220;no.&#8221;</p>
<p>You will now need to restart SSH to make your changes effective.  You can accomplish this by issuing the following command:</p>
<p>/etc/init.d/sshd restart</p>
<p>Now your SSH protocol is secure, and you&#8217;ve checked one item off the list of ways to harden your server.  I will discuss in future posts yet more ways you can harden your server, including disabling unused services, and securing your e-mail and FTP ports.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=lhzOFCx72JA:v8ghw6Qf_HI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=lhzOFCx72JA:v8ghw6Qf_HI:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?i=lhzOFCx72JA:v8ghw6Qf_HI:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?a=lhzOFCx72JA:v8ghw6Qf_HI:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/AdamsTechTalkLinuxHowtosDiscussion?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/AdamsTechTalkLinuxHowtosDiscussion/~4/lhzOFCx72JA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.adamsinfo.com/hardening-your-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.adamsinfo.com/hardening-your-server/</feedburner:origLink></item>
	</channel>
</rss>
