<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/php/tags/security</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 15 Feb 2012 22:29:45 GMT</pubDate>
<item>
<title>(PHP) Cookie Class - mladoux</title>
<link>http://snipplr.com/view/55494/cookie-class/</link>
<description><![CDATA[ <p>HMAC cookie implementation based on BigOrNot_CookieManager by Mattieu Huguet. (http://bigornot.blogspot.com/2008/06/securing-cookies-php-implementation.html) Rewritten for clarity, updated for use with PHP 5 and Zend Framework dependencies removed by Mark A. LaDoux.</p> ]]></description>
<pubDate>Mon, 20 Jun 2011 14:09:11 GMT</pubDate>
<guid>http://snipplr.com/view/55494/cookie-class/</guid>
</item>
<item>
<title>(PHP) Hashing Class - sarfraznawaz2005</title>
<link>http://snipplr.com/view/47446/hashing-class/</link>
<description><![CDATA[ <p>Hashing class for user login and registration</p> ]]></description>
<pubDate>Wed, 19 Jan 2011 00:49:15 GMT</pubDate>
<guid>http://snipplr.com/view/47446/hashing-class/</guid>
</item>
<item>
<title>(PHP) Clean incoming POST data - kendsnyder</title>
<link>http://snipplr.com/view/47396/clean-incoming-post-data/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 18 Jan 2011 04:37:58 GMT</pubDate>
<guid>http://snipplr.com/view/47396/clean-incoming-post-data/</guid>
</item>
<item>
<title>(PHP) get_ip - mladoux</title>
<link>http://snipplr.com/view/40870/getip/</link>
<description><![CDATA[ <p>A simple IP address utility that first attempts to get the users IP via X\_FORWARDED\_FOR headers, and if they are not available, then resorts to the TCP/IP stack.</p> ]]></description>
<pubDate>Wed, 22 Sep 2010 00:25:12 GMT</pubDate>
<guid>http://snipplr.com/view/40870/getip/</guid>
</item>
<item>
<title>(PHP) Simple Random Pass Generator - mladoux</title>
<link>http://snipplr.com/view/40846/simple-random-pass-generator/</link>
<description><![CDATA[ <p>A simple php function to generate random passwords between 8-14 characters long. Good for temporary passwords for use with a password recovery system as reset passwords.</p> ]]></description>
<pubDate>Tue, 21 Sep 2010 18:43:05 GMT</pubDate>
<guid>http://snipplr.com/view/40846/simple-random-pass-generator/</guid>
</item>
<item>
<title>(PHP) Simple PHPBB3 Authentication Bridge - mladoux</title>
<link>http://snipplr.com/view/40845/simple-phpbb3-authentication-bridge/</link>
<description><![CDATA[ <p>A simple bridge to allow your website to integrate it's authentication and session handling with PHPBB3</p> ]]></description>
<pubDate>Tue, 21 Sep 2010 18:40:25 GMT</pubDate>
<guid>http://snipplr.com/view/40845/simple-phpbb3-authentication-bridge/</guid>
</item>
<item>
<title>(PHP) Email validation (IPv4 Version) - mladoux</title>
<link>http://snipplr.com/view/40842/email-validation-ipv4-version/</link>
<description><![CDATA[ <p>Quick &amp; dirty email address validation function… enjoy. It’s actually a modification of Douglas Lovell’s ( link at bottom of post ) email validation script, except, unlike his, this one actually passes the compliance test that he wrote for it. I essentially just reformatted it to fit my style, moved a couple things around, and fixed an error by adding an additional test that he forgot. This version is safe for PHP4 or higher, and works on servers that do not yet support IPv6</p> ]]></description>
<pubDate>Tue, 21 Sep 2010 18:29:25 GMT</pubDate>
<guid>http://snipplr.com/view/40842/email-validation-ipv4-version/</guid>
</item>
<item>
<title>(PHP) Email Validation (IPv6 Version) - mladoux</title>
<link>http://snipplr.com/view/40841/email-validation-ipv6-version/</link>
<description><![CDATA[ <p>This is a version of the previous script that is compliant with IPv6, it requires PHP 5 or newer, so yeah, if you don’t have it, it will fail horribly ( due to the AAAA record check ).</p> ]]></description>
<pubDate>Tue, 21 Sep 2010 18:26:39 GMT</pubDate>
<guid>http://snipplr.com/view/40841/email-validation-ipv6-version/</guid>
</item>
<item>
<title>(PHP) PHP/MySQL IP Ban List - mladoux</title>
<link>http://snipplr.com/view/40837/phpmysql-ip-ban-list/</link>
<description><![CDATA[ <p>IP Ban List that stores banned IP addresses in a MySQL Database. Supports both IPv4 and IPv6 simultaneously. SQL code is in the comments.</p> ]]></description>
<pubDate>Tue, 21 Sep 2010 18:10:51 GMT</pubDate>
<guid>http://snipplr.com/view/40837/phpmysql-ip-ban-list/</guid>
</item>
<item>
<title>(PHP) PHP/.htaccess Ban List 1.0 - mladoux</title>
<link>http://snipplr.com/view/40835/phphtaccess-ban-list-10/</link>
<description><![CDATA[ <p>Requires Apache, does not yet handle IP addresses with wildcards in them, that'll be in the next version</p> ]]></description>
<pubDate>Tue, 21 Sep 2010 18:04:33 GMT</pubDate>
<guid>http://snipplr.com/view/40835/phphtaccess-ban-list-10/</guid>
</item>
<item>
<title>(PHP) Change Default Joomla Database Table Prefix - beneberle</title>
<link>http://snipplr.com/view/38667/change-default-joomla-database-table-prefix/</link>
<description><![CDATA[ <p>Substitute new_ placeholder in the second line with your new prefix.  Run it: http://www.yoursite.com/rename.php and wait until it responds with an OK, usually after a couple of seconds.  Delete the rename.php script.  Edit the configuration.php file and find the line starting with var $dbprefix. It should look like this:  var $dbprefix = \'jos_\';  Replace the old jos_ prefix with new prefix, i.e. the one used in the second line of your rename.php script.</p> ]]></description>
<pubDate>Sat, 07 Aug 2010 11:52:36 GMT</pubDate>
<guid>http://snipplr.com/view/38667/change-default-joomla-database-table-prefix/</guid>
</item>
<item>
<title>(PHP) Remove Wordpress Version Number - mariusscheel</title>
<link>http://snipplr.com/view/36775/remove-wordpress-version-number/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 06 Jul 2010 23:35:34 GMT</pubDate>
<guid>http://snipplr.com/view/36775/remove-wordpress-version-number/</guid>
</item>
<item>
<title>(PHP) WordPress - remove version number from head - josephknight</title>
<link>http://snipplr.com/view/36699/wordpress--remove-version-number-from-head/</link>
<description><![CDATA[ <p>If your WordPress blog is outdated even by a few days and there's a security hole in your old version you could be seriously compromised without even knowing it. Trust me. This has happened to two of my clients and the fix is not easy. Usually, once compromised, you have to delete the blog and reinstall WordPress, then scour your theme and uploaded files before re-uploading to the server. Avoid this hassle (or worse damage to your blog) if you can.</p> ]]></description>
<pubDate>Mon, 05 Jul 2010 16:36:14 GMT</pubDate>
<guid>http://snipplr.com/view/36699/wordpress--remove-version-number-from-head/</guid>
</item>
<item>
<title>(PHP) Escaping Multiple Post Values for MySQL with PHP - bradless</title>
<link>http://snipplr.com/view/27924/escaping-multiple-post-values-for-mysql-with-php/</link>
<description><![CDATA[ <p>This is useful for escaping multiple values in a POST array.</p> ]]></description>
<pubDate>Mon, 08 Feb 2010 11:06:26 GMT</pubDate>
<guid>http://snipplr.com/view/27924/escaping-multiple-post-values-for-mysql-with-php/</guid>
</item>
<item>
<title>(PHP) Restrict direct access to a file in a CodeIgniter - AzizLight</title>
<link>http://snipplr.com/view/24997/restrict-direct-access-to-a-file-in-a-codeigniter/</link>
<description><![CDATA[ <p>Put this at the top of your CodeIgniter models, controllers, libraries and helpers to restrict direct access to them.</p> ]]></description>
<pubDate>Fri, 18 Dec 2009 07:08:06 GMT</pubDate>
<guid>http://snipplr.com/view/24997/restrict-direct-access-to-a-file-in-a-codeigniter/</guid>
</item>
<item>
<title>(PHP) Sanitize a PHP string for input into a Database - adamcoulombe</title>
<link>http://snipplr.com/view/20713/sanitize-a-php-string-for-input-into-a-database/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 06 Oct 2009 10:22:56 GMT</pubDate>
<guid>http://snipplr.com/view/20713/sanitize-a-php-string-for-input-into-a-database/</guid>
</item>
<item>
<title>(PHP) Clean variables from SQL injections - naz</title>
<link>http://snipplr.com/view/12853/clean-variables-from-sql-injections/</link>
<description><![CDATA[ <p>This little function helps to fight common security issue with SQL injections, it can sanitize any global variable like $_POST, $_GET, $_SERVER etc and escape unsafe characters.</p> ]]></description>
<pubDate>Fri, 06 Mar 2009 17:12:29 GMT</pubDate>
<guid>http://snipplr.com/view/12853/clean-variables-from-sql-injections/</guid>
</item>
<item>
<title>(PHP) Simple Database Class - lajevardi</title>
<link>http://snipplr.com/view/12697/simple-database-class/</link>
<description><![CDATA[ <p>That's not complete enough! but as useful as a knife :/</p> ]]></description>
<pubDate>Sun, 01 Mar 2009 05:47:10 GMT</pubDate>
<guid>http://snipplr.com/view/12697/simple-database-class/</guid>
</item>
<item>
<title>(PHP) Method to prevent SQL Injection attacks. - lajevardi</title>
<link>http://snipplr.com/view/12674/method-to-prevent-sql-injection-attacks/</link>
<description><![CDATA[ <p>This is a method of my database class which let me sift the unsafe data inputs down.</p> ]]></description>
<pubDate>Sat, 28 Feb 2009 18:22:17 GMT</pubDate>
<guid>http://snipplr.com/view/12674/method-to-prevent-sql-injection-attacks/</guid>
</item>
<item>
<title>(PHP) Prevent Remote Form Submit - luizlopes</title>
<link>http://snipplr.com/view/11410/prevent-remote-form-submit/</link>
<description><![CDATA[ <p>[quote]$_SERVER['HTTP_REFERRER']'s problem is that can be spoofed, but it's better than nothing if you really want that.[/quote]</p> ]]></description>
<pubDate>Wed, 21 Jan 2009 13:20:06 GMT</pubDate>
<guid>http://snipplr.com/view/11410/prevent-remote-form-submit/</guid>
</item>
</channel>
</rss>
