<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Sat, 13 Jun 2026 14:02:36 +0000</lastBuildDate>
    <item>
      <title>(PHP) Secure Your Cakephp Website By Following These Simple Steps! - cakephpexpert</title>
      <link>https://snipplr.com/view/93678/secure-your-cakephp-website-by-following-these-simple-steps</link>
      <description>&lt;p&gt;&lt;p&gt;Follow these steps to secure your Cakephp Website:&lt;/p&gt;&#13;
&#13;
&lt;p&gt;*Before you actually start using Security Component functionality, make sure you use $components = array (â€˜Securityâ€™, â€˜Authâ€™) in the array so you can extend its functionality in the other components as well.&lt;/p&gt;&#13;
&#13;
&lt;p&gt;*Set security level "Medium" or "High" (in core.php config file)&lt;/p&gt;&#13;
&#13;
&lt;p&gt;*Add single line of code to your controllerâ€™s before Filter () method: $this-&gt;Security-&gt;requireAuth(â€˜action_nameâ€™) &lt;/p&gt;&#13;
&#13;
&lt;p&gt;&lt;strong&gt;To assure more security, add few more lines of code in controller section:&lt;/strong&gt;&lt;/p&gt;&#13;
&#13;
&lt;p&gt;&lt;code&gt;$key = Security::generateAuthKey ();&#13;
$this-&gt;set (â€˜safeâ€™, $key);&#13;
$this-&gt;Session-&gt;write (â€˜safeâ€™, $key);&lt;/code&gt;&lt;/p&gt;&#13;
&#13;
&lt;p&gt;&lt;strong&gt;Or alternatively adding this code sequence in your view&lt;/strong&gt;&lt;/p&gt;&#13;
&#13;
&lt;p&gt;&lt;code&gt;echo $this-&gt;Form-&gt;create(â€˜Postâ€™);&#13;
echo $this-&gt;Form-&gt;hidden(â€˜safeâ€™, $safe);&#13;
echo $this-&gt;Form-&gt;input(â€˜titleâ€™);&#13;
echo $this-&gt;Form-&gt;input(â€˜contentâ€™);&#13;
echo $this-&gt;Form-&gt;end(â€˜Submitâ€™);&lt;/code&gt;&lt;/p&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 16 Mar 2015 21:58:17 UTC</pubDate>
      <guid>https://snipplr.com/view/93678/secure-your-cakephp-website-by-following-these-simple-steps</guid>
    </item>
    <item>
      <title>(C#) åˆ›å»ºSolted hash - gujingshui</title>
      <link>https://snipplr.com/view/76080/solted-hash</link>
      <description>&lt;p&gt;æ¥è‡ªStockTrader Dbloader&lt;/p&gt;</description>
      <pubDate>Mon, 11 Aug 2014 13:41:43 UTC</pubDate>
      <guid>https://snipplr.com/view/76080/solted-hash</guid>
    </item>
    <item>
      <title>(PHP) Simple PHP Backdoor Shell - shopsplash</title>
      <link>https://snipplr.com/view/72936/simple-php-backdoor-shell</link>
      <description>&lt;p&gt;Simple PHP Backdoor Shell&#13;
// http://www.example.com/shell.php?cmd=dir&lt;/p&gt;</description>
      <pubDate>Tue, 19 Nov 2013 06:17:54 UTC</pubDate>
      <guid>https://snipplr.com/view/72936/simple-php-backdoor-shell</guid>
    </item>
    <item>
      <title>(PHP) Check University Email (.edu) - phpdev</title>
      <link>https://snipplr.com/view/72365/check-university-email-edu</link>
      <description>&lt;p&gt;**Example of use:**&#13;
    &#13;
    if (!isUniversityEmail('you@post.harvard.edu'))&#13;
         exit('You must have a valid and .edu email address to register for an account.');&lt;/p&gt;</description>
      <pubDate>Sat, 14 Sep 2013 10:26:02 UTC</pubDate>
      <guid>https://snipplr.com/view/72365/check-university-email-edu</guid>
    </item>
    <item>
      <title>(AutoIt) Quickly lock your PC and turn off the screen - deanhouseholder</title>
      <link>https://snipplr.com/view/70807/quickly-lock-your-pc-and-turn-off-the-screen</link>
      <description>&lt;p&gt;This is a AutoHotKey.com script.  It runs on Windows and allows you to lock your computer by simply hitting a single key combination and unlock it with a different one.  Download the whole script at the url listed.&lt;/p&gt;</description>
      <pubDate>Tue, 16 Apr 2013 16:39:53 UTC</pubDate>
      <guid>https://snipplr.com/view/70807/quickly-lock-your-pc-and-turn-off-the-screen</guid>
    </item>
    <item>
      <title>(SQL) Auditing SQL Server User and Role Permissions for Databases - edwinet</title>
      <link>https://snipplr.com/view/70318/auditing-sql-server-user-and-role-permissions-for-databases</link>
      <description>&lt;p&gt;The sysprotects system table reports all of the permissions granted or denied in a given database. We'll need to join it with sysusers and sysobjects to get all the information we need. Here's an example query that only pulls information on objects (no CREATE TABLE permissions or anything else at the database level)&lt;/p&gt;</description>
      <pubDate>Fri, 08 Mar 2013 01:47:47 UTC</pubDate>
      <guid>https://snipplr.com/view/70318/auditing-sql-server-user-and-role-permissions-for-databases</guid>
    </item>
    <item>
      <title>(PHP) Custom Logging Site Events - COBOLdinosaur</title>
      <link>https://snipplr.com/view/69663/custom-logging-site-events</link>
      <description>&lt;p&gt;To keep up on important incidents on your site without having to dig through server logs the alternative can be custom logs.&lt;/p&gt;</description>
      <pubDate>Sun, 27 Jan 2013 07:45:21 UTC</pubDate>
      <guid>https://snipplr.com/view/69663/custom-logging-site-events</guid>
    </item>
    <item>
      <title>(Bash) Remove malicious code injection from .php files - tinytiger</title>
      <link>https://snipplr.com/view/68662/remove-malicious-code-injection-from-php-files</link>
      <description>&lt;p&gt;Using sed to recursively remove malicious code injection form .php files when the injected code follows the pattern &lt;?php&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 20 Nov 2012 23:00:17 UTC</pubDate>
      <guid>https://snipplr.com/view/68662/remove-malicious-code-injection-from-php-files</guid>
    </item>
    <item>
      <title>(PHP) Password storing/checking class. Keeping passwords safe. - ptodorov</title>
      <link>https://snipplr.com/view/66073/password-storingchecking-class-keeping-passwords-safe</link>
      <description>&lt;p&gt;Nice implementation of Blowfish for storing user passwords to prevent decryption when for example the user database is compromised. Origin: Burak Guzel@Nettuts&lt;/p&gt;</description>
      <pubDate>Wed, 11 Jul 2012 16:48:14 UTC</pubDate>
      <guid>https://snipplr.com/view/66073/password-storingchecking-class-keeping-passwords-safe</guid>
    </item>
    <item>
      <title>(PHP) Remove WordPress version meta - klagraff</title>
      <link>https://snipplr.com/view/65897/remove-wordpress-version-meta</link>
      <description>&lt;p&gt;Insert this in functions.php to remove WordPress version from being output in the header source code&lt;/p&gt;</description>
      <pubDate>Mon, 02 Jul 2012 02:54:14 UTC</pubDate>
      <guid>https://snipplr.com/view/65897/remove-wordpress-version-meta</guid>
    </item>
    <item>
      <title>(PHP) IP Blacklist Check Script - DNSBL</title>
      <link>https://snipplr.com/view/64564/ip-blacklist-check-script</link>
      <description>&lt;p&gt;Enter any suspicious IP address that you wanted to check into the form field and press the "LOOKUP" button&lt;/p&gt;</description>
      <pubDate>Sun, 15 Apr 2012 18:44:22 UTC</pubDate>
      <guid>https://snipplr.com/view/64564/ip-blacklist-check-script</guid>
    </item>
    <item>
      <title>(SQL) Maps an existing database user to a SQL Server login. - edwinet</title>
      <link>https://snipplr.com/view/60539/maps-an-existing-database-user-to-a-sql-server-login</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 04 Nov 2011 07:47:25 UTC</pubDate>
      <guid>https://snipplr.com/view/60539/maps-an-existing-database-user-to-a-sql-server-login</guid>
    </item>
    <item>
      <title>(Windows Registry) how to compare IE security zone settings - theonlyalterego</title>
      <link>https://snipplr.com/view/59753/how-to-compare-ie-security-zone-settings</link>
      <description>&lt;p&gt;IE Zone Analyzer allows comparing/importing/exporting of IE security zones&lt;/p&gt;</description>
      <pubDate>Fri, 14 Oct 2011 04:36:48 UTC</pubDate>
      <guid>https://snipplr.com/view/59753/how-to-compare-ie-security-zone-settings</guid>
    </item>
    <item>
      <title>(MySQL) Create user &amp; grant privilege - athome</title>
      <link>https://snipplr.com/view/59348/create-user--grant-privilege</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 03 Oct 2011 05:31:49 UTC</pubDate>
      <guid>https://snipplr.com/view/59348/create-user--grant-privilege</guid>
    </item>
    <item>
      <title>(Apache) .htaccess protect directory - ropehead</title>
      <link>https://snipplr.com/view/54399/htaccess-protect-directory</link>
      <description>&lt;p&gt;also requires an .htpasswd file to be created in a secure directory&lt;/p&gt;</description>
      <pubDate>Thu, 26 May 2011 07:04:15 UTC</pubDate>
      <guid>https://snipplr.com/view/54399/htaccess-protect-directory</guid>
    </item>
    <item>
      <title>(C) .htaccess bot block and image theft - CKOink</title>
      <link>https://snipplr.com/view/52633/htaccess-bot-block-and-image-theft</link>
      <description>&lt;p&gt;Blocks bad bots, and image theft, allows visitors inside domains.&lt;/p&gt;</description>
      <pubDate>Wed, 27 Apr 2011 10:41:21 UTC</pubDate>
      <guid>https://snipplr.com/view/52633/htaccess-bot-block-and-image-theft</guid>
    </item>
    <item>
      <title>(PHP) WP Email Encoder Bundle - freelancephp</title>
      <link>https://snipplr.com/view/49005/wp-email-encoder-bundle</link>
      <description>&lt;p&gt;Encode mailto links and (plain) email addresses on your site and hide them from spambots. Easy to use, plugin works directly when activated.&#13;
&#13;
Features&#13;
* Protect all emails and mailto links&#13;
* Check posts, widgets, comments and RSS feeds&#13;
* Encode all kind of content (text and html)&#13;
* Email Encoder Form (in admin and also for your site)&#13;
* Use params in mailto links, like: cc, bcc, subject, body&#13;
* And more.&lt;/p&gt;</description>
      <pubDate>Mon, 14 Feb 2011 23:01:44 UTC</pubDate>
      <guid>https://snipplr.com/view/49005/wp-email-encoder-bundle</guid>
    </item>
    <item>
      <title>(Apache) http basic auth - neoandroid</title>
      <link>https://snipplr.com/view/47530/http-basic-auth</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 19 Jan 2011 23:18:36 UTC</pubDate>
      <guid>https://snipplr.com/view/47530/http-basic-auth</guid>
    </item>
    <item>
      <title>(Apache) http auth via mysql - neoandroid</title>
      <link>https://snipplr.com/view/47529/http-auth-via-mysql</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 19 Jan 2011 23:15:24 UTC</pubDate>
      <guid>https://snipplr.com/view/47529/http-auth-via-mysql</guid>
    </item>
    <item>
      <title>(Apache) Limit access by IP address - neoandroid</title>
      <link>https://snipplr.com/view/47527/limit-access-by-ip-address</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 19 Jan 2011 23:01:39 UTC</pubDate>
      <guid>https://snipplr.com/view/47527/limit-access-by-ip-address</guid>
    </item>
    <item>
      <title>(PHP) Clean incoming POST data - kendsnyder</title>
      <link>https://snipplr.com/view/47396/clean-incoming-post-data</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 18 Jan 2011 04:37:58 UTC</pubDate>
      <guid>https://snipplr.com/view/47396/clean-incoming-post-data</guid>
    </item>
    <item>
      <title>(C#) Check if user has a specific Role Definition - scholli</title>
      <link>https://snipplr.com/view/46438/check-if-user-has-a-specific-role-definition</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 04 Jan 2011 00:52:34 UTC</pubDate>
      <guid>https://snipplr.com/view/46438/check-if-user-has-a-specific-role-definition</guid>
    </item>
    <item>
      <title>(Bash) Run Google Chrome with additional arguments settings under OSX - nonlinearsound</title>
      <link>https://snipplr.com/view/45422/run-google-chrome-with-additional-arguments-settings-under-osx</link>
      <description>&lt;p&gt;If you want to run Google Chrome with additional program arguments under OSX, one way, is to use "open" and its --args argument.&#13;
&#13;
Use it to start Chrome with the --allow-file-access-from-files setting (or any other).&#13;
&#13;
Create a link to it to run it faster next time.&lt;/p&gt;</description>
      <pubDate>Wed, 08 Dec 2010 04:26:34 UTC</pubDate>
      <guid>https://snipplr.com/view/45422/run-google-chrome-with-additional-arguments-settings-under-osx</guid>
    </item>
    <item>
      <title>(C#) Check if user has been assigned a specific Role Definition - scholli</title>
      <link>https://snipplr.com/view/43096/check-if-user-has-been-assigned-a-specific-role-definition</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 28 Oct 2010 06:58:15 UTC</pubDate>
      <guid>https://snipplr.com/view/43096/check-if-user-has-been-assigned-a-specific-role-definition</guid>
    </item>
    <item>
      <title>(C#) Check if user is member of a SharePoint group - scholli</title>
      <link>https://snipplr.com/view/43057/check-if-user-is-member-of-a-sharepoint-group</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 27 Oct 2010 23:40:25 UTC</pubDate>
      <guid>https://snipplr.com/view/43057/check-if-user-is-member-of-a-sharepoint-group</guid>
    </item>
    <item>
      <title>(Other) Close the mysql port (3306) from external access. - daipratt</title>
      <link>https://snipplr.com/view/42781/close-the-mysql-port-3306-from-external-access</link>
      <description>&lt;p&gt;The command you need to close the mysql port 3306 from external access.  You need to use the 2 lines in the snippet below once you have connected to the server via SSH.&lt;/p&gt;</description>
      <pubDate>Sat, 23 Oct 2010 02:01:45 UTC</pubDate>
      <guid>https://snipplr.com/view/42781/close-the-mysql-port-3306-from-external-access</guid>
    </item>
    <item>
      <title>(Apache) .htaccess: No password for sub folder - arnekolja</title>
      <link>https://snipplr.com/view/39181/htaccess-no-password-for-sub-folder</link>
      <description>&lt;p&gt;Placing this in a .htaccess file in a sub folder you disable password security for this folder.&lt;/p&gt;</description>
      <pubDate>Tue, 17 Aug 2010 20:45:16 UTC</pubDate>
      <guid>https://snipplr.com/view/39181/htaccess-no-password-for-sub-folder</guid>
    </item>
    <item>
      <title>(C#) RunWithElevatedPrivileges - scholli</title>
      <link>https://snipplr.com/view/39040/runwithelevatedprivileges</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 13 Aug 2010 19:38:45 UTC</pubDate>
      <guid>https://snipplr.com/view/39040/runwithelevatedprivileges</guid>
    </item>
    <item>
      <title>(Apache) .htaccess deny access to xml files - beneberle</title>
      <link>https://snipplr.com/view/38727/htaccess-deny-access-to-xml-files</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 09 Aug 2010 01:05:03 UTC</pubDate>
      <guid>https://snipplr.com/view/38727/htaccess-deny-access-to-xml-files</guid>
    </item>
    <item>
      <title>(PHP) Change Default Joomla Database Table Prefix - beneberle</title>
      <link>https://snipplr.com/view/38667/change-default-joomla-database-table-prefix</link>
      <description>&lt;p&gt;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.&lt;/p&gt;</description>
      <pubDate>Sat, 07 Aug 2010 11:52:36 UTC</pubDate>
      <guid>https://snipplr.com/view/38667/change-default-joomla-database-table-prefix</guid>
    </item>
    <item>
      <title>(PHP) Remove Wordpress Version Number - mariusscheel</title>
      <link>https://snipplr.com/view/36775/remove-wordpress-version-number</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 06 Jul 2010 23:35:34 UTC</pubDate>
      <guid>https://snipplr.com/view/36775/remove-wordpress-version-number</guid>
    </item>
    <item>
      <title>(Other) use .htaccess to blacklist undesired users and bots - mariusscheel</title>
      <link>https://snipplr.com/view/36771/use-htaccess-to-blacklist-undesired-users-and-bots</link>
      <description>&lt;p&gt;Apache can be used to ban undesirable people and bots from your website. With this code, weâ€™re telling Apache that everyone is allowed to visit our blog except the person with the IP addresses&lt;/p&gt;</description>
      <pubDate>Tue, 06 Jul 2010 23:24:07 UTC</pubDate>
      <guid>https://snipplr.com/view/36771/use-htaccess-to-blacklist-undesired-users-and-bots</guid>
    </item>
    <item>
      <title>(Other) Use .htaccess To Protect The wp-config File - mariusscheel</title>
      <link>https://snipplr.com/view/36770/use-htaccess-to-protect-the-wpconfig-file</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 06 Jul 2010 23:22:11 UTC</pubDate>
      <guid>https://snipplr.com/view/36770/use-htaccess-to-protect-the-wpconfig-file</guid>
    </item>
    <item>
      <title>(PHP) WordPress - remove version number from head - josephknight</title>
      <link>https://snipplr.com/view/36699/wordpress--remove-version-number-from-head</link>
      <description>&lt;p&gt;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.&lt;/p&gt;</description>
      <pubDate>Mon, 05 Jul 2010 16:36:14 UTC</pubDate>
      <guid>https://snipplr.com/view/36699/wordpress--remove-version-number-from-head</guid>
    </item>
    <item>
      <title>(Apache) htaccess - disallow linking to images from outside your site - josephknight</title>
      <link>https://snipplr.com/view/36698/htaccess--disallow-linking-to-images-from-outside-your-site</link>
      <description>&lt;p&gt;Replace "mysite" with your own and this will block access to sites attempting to link to your images. Note, it's not necessarily always a bad thing for people to link to your images. If you run a blog, portfolio, or sales gallery, etc, you may actually want your images to show up in google image search results and the like. Careful that you're not blocking your goals along with the images. Make sure this script is for you.&lt;/p&gt;</description>
      <pubDate>Mon, 05 Jul 2010 16:31:05 UTC</pubDate>
      <guid>https://snipplr.com/view/36698/htaccess--disallow-linking-to-images-from-outside-your-site</guid>
    </item>
    <item>
      <title>(Apache) WordPress - .htaccess - protect config file - josephknight</title>
      <link>https://snipplr.com/view/36697/wordpress--htaccess--protect-config-file</link>
      <description>&lt;p&gt;The problem&#13;
As a WordPress user, you probably know how important the wp-config.php file is. This file contains all of the information required to access your precious database: username, password, server name and so on. Protecting the wp-config.php file is critical, so how about exploiting the power of Apache to this end?&#13;
&#13;
Code explanation&#13;
.htaccess files are powerful and one of the best tools to prevent unwanted access to your files. In this code, we have simply created a rule that prevents any access to the wp-admin.php file, thus ensuring that no evil bots can access it.&#13;
&#13;
Source&#13;
&#13;
    * 10 Easy Ways to Secure Your WordPress Blog&lt;/p&gt;</description>
      <pubDate>Mon, 05 Jul 2010 16:26:18 UTC</pubDate>
      <guid>https://snipplr.com/view/36697/wordpress--htaccess--protect-config-file</guid>
    </item>
    <item>
      <title>(Apache) WordPress - .htaccess - block injection attacks - josephknight</title>
      <link>https://snipplr.com/view/36695/wordpress--htaccess--block-injection-attacks</link>
      <description>&lt;p&gt;The problem&#13;
Protecting dynamic websites is especially important. Most developers always protect their GET and POST requests, but sometimes this is not enough. We should also protect our blog against script injections and any attempt to modify the PHP GLOBALS and _REQUEST variables.&#13;
&#13;
The solution&#13;
The following code blocks script injections and any attempts to modify the PHP GLOBALS and _REQUEST variables. Paste it in your .htaccess file (located in the root of your WordPress installation). Make sure to always back up the .htaccess file before modifying it.&#13;
&#13;
Code explanation&#13;
Using the power of the .htaccess file, we can check requests. What weâ€™ve done here is check whether the request contains a &lt;script&gt; and whether it has tried to modify the value of the PHP GLOBALS or _REQUEST variables. If any of these conditions are met, the request is blocked and a 403 error is returned to the clientâ€™s browser.&#13;
&#13;
Sources&#13;
&#13;
    * ProtÃ©ger Son Site Avec Un Fichier .htaccess&#13;
    * Protect Your WordPress Blog Using .htaccess&lt;/p&gt;</description>
      <pubDate>Mon, 05 Jul 2010 16:17:18 UTC</pubDate>
      <guid>https://snipplr.com/view/36695/wordpress--htaccess--block-injection-attacks</guid>
    </item>
    <item>
      <title>(Apache) Disable hotlinking of images - jeromegamez</title>
      <link>https://snipplr.com/view/36601/disable-hotlinking-of-images</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 02 Jul 2010 12:38:32 UTC</pubDate>
      <guid>https://snipplr.com/view/36601/disable-hotlinking-of-images</guid>
    </item>
    <item>
      <title>(C#) Encrypting passwords and other sensitive information in .NET - pckujawa</title>
      <link>https://snipplr.com/view/35568/encrypting-passwords-and-other-sensitive-information-in-net</link>
      <description>&lt;p&gt;If you want to serialize a password in some custom object you are working with, create another member that is the encrypted bytes and serialize/deserialize that.&#13;
&#13;
For simply encrypting/decrypting a file, you can use [System.IO.File.Encrypt](http://msdn.microsoft.com/en-us/library/system.io.file.encrypt.aspx)/Decrypt.&lt;/p&gt;</description>
      <pubDate>Mon, 07 Jun 2010 15:18:34 UTC</pubDate>
      <guid>https://snipplr.com/view/35568/encrypting-passwords-and-other-sensitive-information-in-net</guid>
    </item>
    <item>
      <title>(ActionScript 3) AS3 Loading SWF Files Cross-Domain - adrianparr</title>
      <link>https://snipplr.com/view/35252/as3-loading-swf-files-crossdomain</link>
      <description>&lt;p&gt;From the Big Spaceship Labs website.&#13;
This is a useful workaround for the following error message ...&#13;
SecurityError: Error #2142: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property.&lt;/p&gt;</description>
      <pubDate>Thu, 27 May 2010 05:13:06 UTC</pubDate>
      <guid>https://snipplr.com/view/35252/as3-loading-swf-files-crossdomain</guid>
    </item>
    <item>
      <title>(C#) Obfuscating .NET code so as to hide implementation details from public view (using BabelObfuscator) - pckujawa</title>
      <link>https://snipplr.com/view/28194/obfuscating-net-code-so-as-to-hide-implementation-details-from-public-view-using-babelobfuscator</link>
      <description>&lt;p&gt;If you weren't already aware, you can use a product like [Reflector.NET](http://www.red-gate.com/products/reflector/) to see all of the source code (that's right, the code) of a .NET assembly (DLL, EXE, etc). This is a real problem when your code is proprietary, especially when you might have security implementations in the code. Thus, there is often a need to hide the implementation details - enter obfucation.&#13;
&#13;
There is a [article on and list of obfuscators from C# 411](http://www.csharp411.com/net-obfuscators/) which explains the situation better. From my research, I decided to settle on the free and open source [Babel Obfuscator](http://code.google.com/p/babelobfuscator/). Part of the decision process was seeing it in action, which is especially easy when you install the [Babel add-in for Reflector](http://www.jasonhaley.com/blog/post/2009/08/18/ReflectorBabel-Addin.aspx).&#13;
&#13;
Once you've decided that Babel is for you, the code below automates the process when added to the post-build event of your assembly. The parameters and settings are up to you, but this baseline should do everything you'll need.&lt;/p&gt;</description>
      <pubDate>Thu, 11 Feb 2010 13:59:34 UTC</pubDate>
      <guid>https://snipplr.com/view/28194/obfuscating-net-code-so-as-to-hide-implementation-details-from-public-view-using-babelobfuscator</guid>
    </item>
    <item>
      <title>(PHP) Escaping Multiple Post Values for MySQL with PHP - bradless</title>
      <link>https://snipplr.com/view/27924/escaping-multiple-post-values-for-mysql-with-php</link>
      <description>&lt;p&gt;This is useful for escaping multiple values in a POST array.&lt;/p&gt;</description>
      <pubDate>Mon, 08 Feb 2010 11:06:26 UTC</pubDate>
      <guid>https://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>https://snipplr.com/view/24997/restrict-direct-access-to-a-file-in-a-codeigniter</link>
      <description>&lt;p&gt;Put this at the top of your CodeIgniter models, controllers, libraries and helpers to restrict direct access to them.&lt;/p&gt;</description>
      <pubDate>Fri, 18 Dec 2009 07:08:06 UTC</pubDate>
      <guid>https://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>https://snipplr.com/view/20713/sanitize-a-php-string-for-input-into-a-database</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 06 Oct 2009 10:22:56 UTC</pubDate>
      <guid>https://snipplr.com/view/20713/sanitize-a-php-string-for-input-into-a-database</guid>
    </item>
    <item>
      <title>(Apache) Hardening Wordpress - occam</title>
      <link>https://snipplr.com/view/17927/hardening-wordpress</link>
      <description>&lt;p&gt;In addition to the recommendations on the Wordpress Website.&#13;
&#13;
Limit the amount of PHP files that a writable by Apache. The directory's and files that need to be writable, do not always need to be executed by PHP directly.&#13;
&#13;
This makes it a bit harder for the attacker to upload and execute any PHP commands.&lt;/p&gt;</description>
      <pubDate>Wed, 05 Aug 2009 13:32:26 UTC</pubDate>
      <guid>https://snipplr.com/view/17927/hardening-wordpress</guid>
    </item>
    <item>
      <title>(SQL) Change owner on sql server db. - d020</title>
      <link>https://snipplr.com/view/16722/change-owner-on-sql-server-db</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 07 Jul 2009 06:09:31 UTC</pubDate>
      <guid>https://snipplr.com/view/16722/change-owner-on-sql-server-db</guid>
    </item>
    <item>
      <title>(Bash) Encrypt your /home partition - Dorgendubal</title>
      <link>https://snipplr.com/view/16402/encrypt-your-home-partition</link>
      <description>&lt;p&gt;Ideal if you have a laptop. If someone steals it, he will not be able to read all your mails and documents with precious information (about passwords, accounts, credit cards, private stuffs, etc...).&#13;
&#13;
This snippet is considering that you are using Ubuntu as OS and you already have a dedicated partition for home (/dev/sda5 in my example).&#13;
&#13;
* Steps 1-3 are pre-requirements.&#13;
* Steps 5-7 encrypts the partition and formats it as ext3 (make sure that you have a backup of your home somewhere!!!)&#13;
* Steps 10 and 13 are not commands but lines to be added (or modified) in the editing files (Step 9 and 12). You have to be familiar with /etc/fstab to understand it.&#13;
* Other steps are for configuring your system such your home partition gets automatically mounted on startup (you will be prompted for password during boot). &#13;
&#13;
Enjoy security!&lt;/p&gt;</description>
      <pubDate>Sun, 28 Jun 2009 10:51:04 UTC</pubDate>
      <guid>https://snipplr.com/view/16402/encrypt-your-home-partition</guid>
    </item>
    <item>
      <title>(PHP) Clean variables from SQL injections - naz</title>
      <link>https://snipplr.com/view/12853/clean-variables-from-sql-injections</link>
      <description>&lt;p&gt;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.&lt;/p&gt;</description>
      <pubDate>Fri, 06 Mar 2009 17:12:29 UTC</pubDate>
      <guid>https://snipplr.com/view/12853/clean-variables-from-sql-injections</guid>
    </item>
    <item>
      <title>(PHP) Simple Database Class - lajevardi</title>
      <link>https://snipplr.com/view/12697/simple-database-class</link>
      <description>&lt;p&gt;That's not complete enough! but as useful as a knife :/&lt;/p&gt;</description>
      <pubDate>Sun, 01 Mar 2009 05:47:10 UTC</pubDate>
      <guid>https://snipplr.com/view/12697/simple-database-class</guid>
    </item>
    <item>
      <title>(PHP) Method to prevent SQL Injection attacks. - lajevardi</title>
      <link>https://snipplr.com/view/12674/method-to-prevent-sql-injection-attacks</link>
      <description>&lt;p&gt;This is a method of my database class which let me sift the unsafe data inputs down.&lt;/p&gt;</description>
      <pubDate>Sat, 28 Feb 2009 18:22:17 UTC</pubDate>
      <guid>https://snipplr.com/view/12674/method-to-prevent-sql-injection-attacks</guid>
    </item>
  </channel>
</rss>
