Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged security



« Prev 1 Next »
<p>Follow these steps to secure your Cakephp Website:</p> <p>*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...
0 1022 posted 9 years ago by cakephpexpert
Simple PHP Backdoor Shell // http://www.example.com/shell.php?cmd=dir
0 2410 posted 11 years ago by shopsplash
**Example of use:** if (!isUniversityEmail('[email protected]')) exit('You must have a valid and .edu email address to register for an account.');
1 1045 posted 11 years ago by phpdev
To keep up on important incidents on your site without having to dig through server logs the alternative can be custom logs.
0 857 posted 11 years ago by COBOLdinosaur
Nice implementation of Blowfish for storing user passwords to prevent decryption when for example the user database is compromised. Origin: Burak Guzel@Nettuts
2 1198 posted 12 years ago by ptodorov
Insert this in functions.php to remove WordPress version from being output in the header source code
0 863 posted 12 years ago by klagraff
Enter any suspicious IP address that you wanted to check into the form field and press the "LOOKUP" button
1 2575 posted 12 years ago by DNSBL
Encode mailto links and (plain) email addresses on your site and hide them from spambots. Easy to use, plugin works directly when activated. Features * Protect all emails and mailto links * Check posts, widgets, comments and RSS feeds * Encode...
0 1068 posted 13 years ago by freelancephp
0 911 posted 13 years ago by kendsnyder
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...
0 937 posted 14 years ago by beneberle
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...
0 791 posted 14 years ago by josephknight
This is useful for escaping multiple values in a POST array.
0 793 posted 14 years ago by bradless
Put this at the top of your CodeIgniter models, controllers, libraries and helpers to restrict direct access to them.
1 1502 posted 14 years ago by AzizLight
[quote]$_SERVER['HTTP_REFERRER']'s problem is that can be spoofed, but it's better than nothing if you really want that.[/quote]
1 1026 posted 15 years ago by luizlopes
2 784 posted 15 years ago by fruehjahr
This was taken out of a presentation by eZ systems on PHP Best Practices
0 747 posted 16 years ago by luizlopes
this is not the ultimate secure way, but it's at least not displaying the email link
3 773 posted 16 years ago by iTony
Don't do it this way. This was written so long ago.
90 6975 posted 17 years ago by llbbl
I got most of these tips out of a great book published by O'Reilly (my favorite web-design publisher): &quot;Programming PHP, 2nd Ed.&quot; by Lerdorf, Tatroe, and McIntyre. Another good book is &quot;Essential PHP Security,&quot; also published by O...
2 1410 posted 17 years ago by pckujawa
« Prev 1 Next »