<?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>No.La. Against Crime</title>
	<atom:link href="http://www.nolaagainstcrime.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.nolaagainstcrime.com</link>
	<description>Your Online Safe Guard</description>
	<lastBuildDate>Wed, 21 Oct 2009 16:54:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>HTML contact form with CAPTCHA</title>
		<link>http://www.nolaagainstcrime.com/?p=14</link>
		<comments>http://www.nolaagainstcrime.com/?p=14#comments</comments>
		<pubDate>Wed, 21 Oct 2009 16:54:41 +0000</pubDate>
		<dc:creator>andy</dc:creator>
				<category><![CDATA[Web Security]]></category>
		<category><![CDATA[captcha]]></category>
		<category><![CDATA[contact form]]></category>
		<category><![CDATA[html contact form]]></category>

		<guid isPermaLink="false">http://www.nolaagainstcrime.com/?p=14</guid>
		<description><![CDATA[Using a contact form on your website is very useful as it helps your web site visitors to communicate with you in an easy and simple way. But, there are spammers and hackers who are looking for exploitable web forms. It is essential to secure your form against all &#8216;holes&#8217; that those hackers are searching [...]]]></description>
			<content:encoded><![CDATA[<div>
<p><img src="http://www.html-form-guide.com/images/html-contact-form.png" border="0" alt="contact form" width="188" height="263" align="left" /> Using a contact form on your website is very useful as it helps your web site visitors 			to communicate with you in an easy and simple way. But, there are  			spammers and hackers who are looking for exploitable web forms. It is essential to secure  			your form against all &#8216;holes&#8217; that those hackers are searching for.</p>
<p><strong> </strong></div>
<h2>How does the spammers/hackers exploit HTML forms?</h2>
<div>Spammers exploit web forms for two purposes:</p>
<h3>a) As a relay for sending bulk unsolicited emails</h3>
<p>If you are not validating your form fields (on the serve side) before sending the emails,   			then hackers can alter your email headers to send the bulk unsolicited emails.  			(also known as email injection) 			For example, hackers can place the following code in one of your form fields  			and make your form processor script send an email to an unintended recipient:</p>
<pre>sender@theirdomain.com%0ABcc:NewRecipient@anotherdomain.com</pre>
<p>The code above is adding another email address to the CC list of the email. Spammers  			can send thousands of emails using this exploit. Your host will not be happy  			with this and may warn you or even ban your web site.</p>
<p>The best way to prevent this spammer exploit is to validate the 			 fields used in the mail() function(fields like email, subject of the email, name etc). 			  Check for the presence of any &#8220;new line&#8221; (\r\n) in those fields. The  			  email form 			  article contains sample code that does the same.</p>
<h3>b) For Sending spam messages to you</h3>
<p>There are programs known as &#8216;spam-bots&#8217; that leech through the web pages looking for 			web forms. When found, those &#8216;bots&#8217; just fills the fields with a spam message and  			submits. Eventually you will start getting many hundred submissions send by those 			spam bots and you will find it difficult to separate genuine submissions from spam messages.</p>
<p>The solution for this problem is to use a mechanism to identify human submitters from 			&#8216;bots&#8217;. CAPTCHA is one of such tests.</p></div>
<h2><span id="more-14"></span>Adding Captcha to the form</h2>
<div>
<p><img src="http://www.html-form-guide.com/images/html-contact-form-captcha.gif" border="0" alt="html contact form : captcha" width="223" height="83" /></p>
<p>Captcha is an image with a code written on it. The website visitor is required to  			 read the code on the image and enter the value in a text field. If the 			 word entered is wrong, the form submission is not processed.  			 As CAPTCHA is a smartly blurred image, the spam bot can&#8217;t read it.  			 So the form cannot be auto-submitted by a &#8216;bot&#8217;.</p></div>
<h2>The contact form with CAPTCHA</h2>
<div>
<p>Here is the HTML code for the contact form:</p>
<pre>
<span>&lt;form</span> <span>method</span><span>=</span><span>"POST"</span> <span>name</span><span>=</span><span>"contact_form"</span>
<span>action</span><span>=</span><span>"&lt;?php echo htmlentities($_SERVER['PHP_SELF']); ?&gt;"</span><span>&gt;</span> 

<span>&lt;label</span> <span>for</span><span>=</span><span>"name"</span><span>&gt;</span>Name: <span>&lt;/label&gt;</span>
<span>&lt;input</span> <span>type</span><span>=</span><span>"text"</span> <span>name</span><span>=</span><span>"name"</span>
<span>value</span><span>=</span><span>"&lt;?php echo htmlentities($name) ?&gt;"</span><span>&gt;</span>

<span>&lt;label</span> <span>for</span><span>=</span><span>"email"</span><span>&gt;</span>Email: <span>&lt;/label&gt;</span>
<span>&lt;input</span> <span>type</span><span>=</span><span>"text"</span> <span>name</span><span>=</span><span>"email"</span>
<span>value</span><span>=</span><span>"&lt;?php echo htmlentities($visitor_email) ?&gt;"</span><span>&gt;</span>

<span>&lt;label</span> <span>for</span><span>=</span><span>"message"</span><span>&gt;</span>Message:<span>&lt;/label&gt;</span>
<span>&lt;textarea</span> <span>name</span><span>=</span><span>"message"</span> <span>rows</span><span>=</span><span>8</span><span> </span><span>cols</span><span>=</span><span>30</span><span>&gt;
</span>&lt;?php echo htmlentities($user_message) ?&gt;<span>&lt;/textarea&gt;</span>

<span>&lt;img</span> <span>src</span><span>=</span><span>"captcha_code_file.php?rand=&lt;?php echo rand(); ?&gt;"</span>
<span>id</span><span>=</span><span>"captchaimg"</span> <span>&gt;</span>
<span>&lt;label</span> <span>for</span><span>=</span><span>"message"</span><span>&gt;</span>Enter the code above here :<span>&lt;/label&gt;</span>
<span>&lt;input</span> <span>id</span><span>=</span><span>"6_letters_code"</span> <span>name</span><span>=</span><span>"6_letters_code"</span> <span>type</span><span>=</span><span>"text"</span><span>&gt;</span>

<span>&lt;input</span> <span>type</span><span>=</span><span>"submit"</span> <span>value</span><span>=</span><span>"Submit"</span> <span>name</span><span>=</span><span>"submit"</span><span>&gt;</span>
<span>&lt;/form&gt;</span></pre>
<p>The HTML form above contains the fields for name, email and message. In addition, 			we have the CAPTCHA image. The &lt;img&gt; tag for the CAPTCHA image points to the script 			captcha_code_file.php. The PHP script in &#8216;captcha_code_file.php&#8217; creates the  			image for the captcha and saves the code in a session variable named &#8217;6_letters_code&#8217;.</p></div>
<h2>Validating the CAPTCHA</h2>
<p>When the form is submitted, we compare the value in the session variable(6_letters_code) 			 with the submitted CAPTCHA code( the value in the text field 6_letters_code). 			If the codes match, then we proceed with emailing the form submission. Else we 			display an error.</p>
<div>
<p>Here is the code that does the server side processing:</p>
<pre>
<span>if</span><span>(</span><span>isset</span><span>(</span><span>$_POST</span><span>[</span><span>'submit'</span><span>]))</span>
<span>{</span>
  <span>if</span><span>(</span><span>empty</span><span>(</span><span>$_SESSION</span><span>[</span><span>'6_letters_code'</span><span>]</span> <span>)</span> <span>||</span>
    <span>strcasecmp</span><span>(</span><span>$_SESSION</span><span>[</span><span>'6_letters_code'</span><span>],</span> <span>$_POST</span><span>[</span><span>'6_letters_code'</span><span>])</span>
<span>      !=</span> <span>0</span><span>)</span>
  <span>{</span>
      <span>//Note: the captcha code is compared case insensitively.</span>
      <span>//if you want case sensitive match, update the check above to</span>
      <span>// strcmp()</span>
    <span>$errors</span> <span>.=</span> <span>"\n The captcha code does not match!"</span><span>;</span>
  <span>}</span>

  <span>if</span><span>(</span><span>empty</span><span>(</span><span>$errors</span><span>))</span>
  <span>{</span>
    <span>//send the email</span>
    <span>$to</span> <span>=</span> <span>$your_email</span><span>;</span>
    <span>$subject</span><span>=</span><span>"New form submission"</span><span>;</span>
    <span>$from</span> <span>=</span> <span>$your_email</span><span>;</span>
    <span>$ip</span> <span>=</span> <span>isset</span><span>(</span><span>$_SERVER</span><span>[</span><span>'REMOTE_ADDR'</span><span>])</span> <span>?</span> <span>$_SERVER</span><span>[</span><span>'REMOTE_ADDR'</span><span>]</span> <span>
          :</span> <span>''</span><span>;</span>

    <span>$body</span> <span>=</span> <span>"A user  $name submitted the contact form:\n"</span><span>.</span>
    <span>"Name: $name\n"</span><span>.</span>
    <span>"Email: $visitor_email \n"</span><span>.</span>
    <span>"Message: \n "</span><span>.</span>
    <span>"$user_message\n"</span><span>.</span>
    <span>"IP: $ip\n"</span><span>;</span>  

    <span>$headers</span> <span>=</span> <span>"From: $from \r\n"</span><span>;</span>
    <span>$headers</span> <span>.=</span> <span>"Reply-To: $visitor_email \r\n"</span><span>;</span>

    <span>mail</span><span>(</span><span>$to</span><span>,</span> <span>$subject</span><span>,</span> <span>$body</span><span>,</span><span>$headers</span><span>);</span>

    <span>header</span><span>(</span><span>'Location: thank-you.html'</span><span>);</span>
  <span>}</span>
<span>}</span></pre>
</div>
<h2>Customizing the CAPTCHA</h2>
<div>The CAPTCHA script in the sample code download can be customized.  			If you open the script, you can see the first few lines of the code as shown below:</p>
<pre><span>$image_width</span> <span>=</span> <span>120</span><span>;</span>
<span>$image_height</span> <span>=</span> <span>40</span><span>;</span>
<span>$characters_on_image</span> <span>=</span> <span>6</span><span>;</span>
<span>$font</span> <span>=</span> <span>'./monofont.ttf'</span><span>;</span>

<span>//The characters that can be used in the CAPTCHA code.</span>
<span>//avoid confusing characters (l 1 and i for example)</span>
<span>$possible_letters</span> <span>=</span> <span>'23456789bcdfghjkmnpqrstvwxyz'</span><span>;</span>
<span>$random_dots</span> <span>=</span> <span>0</span><span>;</span>
<span>$random_lines</span> <span>=</span> <span>20</span><span>;</span>
<span>$captcha_text_color</span><span>=</span><span>"0x142864"</span><span>;</span>
<span>$captcha_noise_color</span> <span>=</span> <span>"0x142864"</span><span>;</span></pre>
<p>You can change the size of the CAPTCHA by changing 	$image_width &amp; $image_height. The number of characters 			in the CAPTCHA can be changed by updating $characters_on_image. Similarly, the text color of the CAPTCHA  			can be customized by updating $captcha_text_color.  			The code adds some &#8216;noise&#8217; in the image by adding random lines and dots. you can increase or 			decrease the noise. Please note that increasing the noise may make it difficult for 			your genuine visitors to read the code.</p></div>
<p><a name="codedownload"></a></p>
<h2>Download the code</h2>
<div><a href="http://www.html-form-guide.com/contact-form/html-contact-form-captcha.zip">Click here to download html-contact-form-captcha.zip</a></div>
<p><em>[Source: http://www.html-form-guide.com/contact-form/html-contact-form-captcha.html]</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nolaagainstcrime.com/?feed=rss2&amp;p=14</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Phishing: A Scary Way of Life</title>
		<link>http://www.nolaagainstcrime.com/?p=13</link>
		<comments>http://www.nolaagainstcrime.com/?p=13#comments</comments>
		<pubDate>Fri, 15 May 2009 07:49:56 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Web Security]]></category>
		<category><![CDATA[Phishing]]></category>

		<guid isPermaLink="false">http://nolaagainstcrime.com/?p=13</guid>
		<description><![CDATA[The Federal Bureau of Investigation has identified &#8220;phishing&#8221; as the &#8220;hottest and most troubling new scam on the Internet.&#8221; What is Phishing? Phishing is a scam initiated via e-mail. Messages are &#8220;fishing&#8221; for personal and financial information. Most often, e-mails appear to be from reputable companies (internet service providers, telephone companies, etc), banks, and other [...]]]></description>
			<content:encoded><![CDATA[<p>The Federal Bureau of Investigation has identified &#8220;phishing&#8221; as the &#8220;hottest and most troubling new scam on the Internet.&#8221;</p>
<p><strong>What is Phishing?</strong></p>
<p>Phishing is a scam initiated via e-mail. Messages are &#8220;fishing&#8221; for personal and financial information. Most often, e-mails appear to be from reputable companies (internet service providers, telephone companies, etc), banks, and other financial organizations. The e-mail message often gives a story of the bank needing to update its personal information database or a financial institution claiming your personal data had been lost.</p>
<p><strong>Who Phishes?</strong></p>
<p>Hackers and Scammers looking for personal and financial information use phishing as an effective method of gathering information. Phishers imitate legitimate companies in e-mails to entice people to share passwords or credit-card numbers. Recent victims include:</p>
<ul>
<li>Bank of America</li>
<li>Best Buy</li>
<li>America Online</li>
<li>eBay</li>
<li>PayPal</li>
<li>Washington Mutual</li>
<li>MSN (Microsoft Network)</li>
</ul>
<p><strong>History of Phishing</strong></p>
<p>The term phishing comes from the fact that Internet scammers are using increasingly sophisticated lures as they &#8220;fish&#8221; for users&#8217; financial information and password data. The most common ploy is to copy the Web page code from a major site &#8211; such as AOL &#8211; and use that code to set up a replica page that appears to be part of the company&#8217;s site. (This is why phishing is also called spoofing.) A fake e-mail is sent out with a link to this page, which solicits the user&#8217;s credit card data or password. When the form is submitted, it sends the data to the scammer while leaving the user on the company&#8217;s site so they don&#8217;t suspect a thing.</p>
<p><strong>Avoid Phishing</strong></p>
<p>Fortunately, common sense can save you from giving away your personal information. For example, be aware for the company requesting information. I have received e-mails from banks I have never had business with. Know that your bank or ISP will never ask for your information out of the blue. Banks do not update their databases and misplace information.</p>
<p><span id="more-13"></span><strong>Tips To Avoid Phishing</strong></p>
<ul>
<li>If you receive an unexpected e-mail saying your account will be shut down unless you confirm your billing information, do not reply or click any links in the e-mail body.</li>
<li>
Look for words misspelled or other grammatical mistakes.</li>
<li>Before submitting financial information through a Web site, look for the &#8220;lock&#8221; icon on the browser&#8217;s status bar. It means your information is secure during transmission.</li>
<li>If you are uncertain about the information, contact the company through an address or telephone number you know to be genuine.</li>
<li>If you unknowingly supplied personal or financial information, contact your bank and credit card company immediately.</li>
</ul>
<p>Suspicious e-mail can be forwarded to uce@ftc.gov, and complaints should be filed with the state attorney general&#8217;s office or through the FTC at www.ftc.gov.</p>
<p>[Reference: <a href="http://www.stormfrontdevelopment.com" target="_blank">StormFront Development</a>]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nolaagainstcrime.com/?feed=rss2&amp;p=13</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Do not lose your domain again</title>
		<link>http://www.nolaagainstcrime.com/?p=9</link>
		<comments>http://www.nolaagainstcrime.com/?p=9#comments</comments>
		<pubDate>Wed, 13 May 2009 07:29:03 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Web Security]]></category>
		<category><![CDATA[domain expiration]]></category>
		<category><![CDATA[Domain hijacking]]></category>
		<category><![CDATA[Domain theft]]></category>

		<guid isPermaLink="false">http://nolaagainstcrime.com/?p=9</guid>
		<description><![CDATA[Is your domain really safe? There is a number of common mistakes which can lead to a permanent loss of your domains. The most common ways that domains are lost are: 1. Inadvertent domain expiration: The owner does not renew the name in time and it is snatched up by a domain speculator. This is [...]]]></description>
			<content:encoded><![CDATA[<p>Is your domain really safe? There is a number of common mistakes which can lead to a permanent loss of your domains. The most common ways that domains are lost are:</p>
<p>1. <strong>Inadvertent domain expiration</strong>: The owner does not renew the name in time and it is snatched up by a domain speculator. This is often caused by failure to receive renewal notices because of out of date contact information.</p>
<p>2. <strong>Domain hijacking or theft</strong>: A domain hijacker effectively &#8216;steals&#8217; the domain by submitting a fraudulent registrar transfer request and tricking an unsophisticated domain owner or registrar into giving them control of the name. More sophisticated hijackers can also hack your email address account and, in such way, take control of your account at registrar.</p>
<p>At this point, legal options can be expensive and time consuming. Since the domain has been transferred away from the domain owner&#8217;s original registrar, this registrar is often powerless in assisting. Domain hijackers are aware of this and commonly transfer domains to countries far away from the original owner &#8211; making legal recourse cost prohibitive.</p>
<p>3. <strong>Inaccurate contact information</strong>: your name can be cancelled if your domain information is not accurate and you fail to respond to a registrar&#8217;s inquiries within fifteen days!!! (Section 3.7.7.2 of ICANN&#8217;s Registrar Accreditation Agreement). In the past, this section was seldom enforced, however as of October 2003, ICANN is requiring all registrars to contact their customers on a yearly basis to verify domain information.</p>
<p>Now let&#8217;s see how you can protect yourself from these common mistakes.</p>
<p><span id="more-9"></span>1. <strong>Keep track of your domain names&#8217; expiration dates and keep your contact information up to date</strong>: remember that the most of inadvertent domain expirations and many fraudulent transfers are due to out of date contact information.</p>
<p>2. <strong>Be careful who is listed in your contact information</strong>. You or your organization should always be listed as the organization and administrative contact.</p>
<p>When registering corporate domain names, make sure that the company name is listed as the owner of the domain. Do not allow an outside web site designer or host to be listed as either the domain owner or administrative contact. If possible, the business owner or a senior executive should be listed as administrative contact since this person will be authorized to modify or change ownership of company domain names.</p>
<p>3. <strong>Be careful when using free e-mail addresses from services like Hotmail</strong>. Many free e-mail services will automatically suspend or delete your e-mail account if you do not log in frequently enough. Once your e-mail account is deleted, a domain hijacker can sign up for your same e-mail address and use it to give permission to transfer your domains away from you.</p>
<p>If possible, avoid using a free e-mail address on your domain records. If you are using a Hotmail account, you may want to consider paying to upgrade your account to exempt you from their 30 day inactivity policy.</p>
<p>As an additional security measure <strong>change often your email account and registrar account passwords</strong> to avoid hacking.</p>
<p>4. <strong>Place a registrar lock on your domain</strong>. This will lock your domain record at the registry level and prevent it from being transferred, modified or deleted by a third party. This feature is very helpful in protecting your name against unauthorized transfers and hijacking.</p>
<p>5. <strong>Do not reply (or click on any links) in any domain related e-mail correspondence you do not recognize</strong>. Also be careful not to reply to any &#8216;official looking&#8217; renewal notices you receive in the mail from companies you do not recognize. Domain hijackers and unscrupulous registrars have been known to submit mass amounts of transfers hoping that a small percentage of confused registrants will accidentally confirm the transfers. When in doubt, contact your original registrar to verify any suspicious messages.</p>
<p>6. <strong>Add your registrar&#8217;s domain name to your spam filter&#8217;s approved sender list</strong>. If you (or your ISP) are using a spam blocking service, you run the risk of not receiving domain renewal notices from your registrar if they are incorrectly categorized. You can prevent this from occuring by adding your registrar to your list of &#8216;approved senders&#8217;. This will automatically bypass any filtering and ensure that all renewal notices make it straight to your inbox.</p>
<p>7. <strong>Consider renewing your domain name early and for a longer amount of time</strong>. If your domain name is critical to your business and is one you will want for years to come, consider renewing your domain registration in five year increments. This will avoid yearly registration hassles and prevent your domain from accidentally expiring.</p>
<p><em>[Reference betterwhois.com]</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nolaagainstcrime.com/?feed=rss2&amp;p=9</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Security fixes for your site</title>
		<link>http://www.nolaagainstcrime.com/?p=6</link>
		<comments>http://www.nolaagainstcrime.com/?p=6#comments</comments>
		<pubDate>Mon, 04 May 2009 08:19:11 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Web Security]]></category>
		<category><![CDATA[best programming]]></category>
		<category><![CDATA[hackers]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[phpsec]]></category>

		<guid isPermaLink="false">http://nolaagainstcrime.com/?p=6</guid>
		<description><![CDATA[As found on a recent post on Security Bench the first step to fight Cyber Crime is assuring security to your customers. So how to defend your website from spies and hackers? The first thing to do is pursuing the best programming practice. If your website, like the vast majority nowadays, is developed using php [...]]]></description>
			<content:encoded><![CDATA[<p>As found on a recent post on <a href="http://securitybench.com/?p=166" targe="_blank">Security Bench</a> the first step to fight Cyber Crime is assuring security to your customers.</p>
<p>So how to defend your website from spies and hackers?</p>
<p>The first thing to do is pursuing the best programming practice. If your website, like the vast majority nowadays, is developed using php language you can follow these easy steps:</p>
<p>   1. Set register_globals to OFF<br />
   2. Turn off Display Error/Warning Messages. Set display_error to ZERO.<br />
   3. Never run unescaped queries<br />
   4. Validate all user inputs. Items on Forms, in URLs and so on<br />
   5. Move config.php and files containing Passwords to MySQL to a secure directory outside of the public_html folder<br />
   6. Change permissions on any configuration files containing private information such as database passwords or email accounts to 440 so they cannot be written to and so there is no world permissions. If you need to edit them at a later time you will need to change it back to 640.<br />
   7. Access Control: You don’t want the user to have access to any Admin function or Clean up scripts<br />
   8. The .htaccess file is your friend. Use it to deny access to your site or files. (We also have an easy IP Deny Manager tool in the cpanel)<br />
   9. PHP can parse any valid script, whether it is called foo.php, very_long_name.php.php.php, or even deleteme.bat.<br />
          * Using the default extension of “.php” means that before your hackers start you have already told them you are using PHP.<br />
          * As mentioned, you can use any filename for your scripts &#8211; if you are using PHP for every script on your server, consider using the “.html” extension for your scripts and making PHP parse HTML files.<br />
          * You can change your file extension by adding this line to the .htaccess or turn it on via the Apache Handlers in the cPanel (AddHandler application/x-httpd-php5 .html)<br />
          * To protect against SQL injection attacks Sometimes hackers will try to screw up your database by inserting SQL code into your form input fields. They can for example, insert code that could delete all the data in your database!<br />
          * To protect against this, you need to use this PHP function:<br />
          * mysql_real_escape_string()<br />
          * This function escapes (makes safe) any special characters in a string (programmers call text a ’string’) for MySQL.<br />
  10. Example: $name = $_REQUEST['name']; $safe_name = mysql_real_escape_string($name); Now you know the variable $safe_name, is safe to use with your SQL code.<br />
  11. Keep the PHP code to yourself. If anyone can see it they can exploit vulnerabilities.<br />
          * You should take care to store your PHP files and the necessary passwords to access your MySQL databases in protected files or folders.<br />
          * The easy way to do this is to put the database access passwords in a file with a .inc.php extension (such as config.inc.php), and then place this file in a directory which is above the server’s document root (and thus not accessible to surfers of your site).<br />
          * Then, refer to the file in your PHP code with a require_once command.<br />
          * By doing things this way, your PHP code can read the included file easily but hackers will find it almost impossible to hack your site.</p>
<p>You can find more information about hardening your PHP scripts at: <a href="http://phpsec.org/projects/guide/" target="_blank" rel="nofollow">PHPsec.org</a></p>
<p>Also, for security purposes, you can refer to these two websites:</p>
<p><a href="http://php-ids.org/" target="_blank" rel="nofollow">PHPIDS &#8211; Web Application Security 2.0 &#8211; Index</a></p>
<p><a href="http://blogsecurity.net/" target="_blank" rel="nofollow">BlogSecurity</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nolaagainstcrime.com/?feed=rss2&amp;p=6</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
