Welcome To Snipplr
Everyone's Recent PHP Snippets Tagged security
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
« 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
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
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
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
I got most of these tips out of a great book published by O'Reilly (my favorite web-design publisher): "Programming PHP, 2nd Ed." by Lerdorf, Tatroe, and McIntyre. Another good book is "Essential PHP Security," also published by O...
2
1410
posted 17 years ago by pckujawa
« Prev 1 Next »