Enhance 404 Error Page, Make it Powerful

404 error

As a web developer, we’re so familiar with 404 error, and hate it so much. If  the URL doesn’t exist, the server will return this page to browser to show. Normally, we use default 404 error message to tell visitors they’re looking for pages that don’t exist. Some designers make 404 pages pretty or humorous. […]

Add Random String Verification to Prevent CSRF

web security

Cross-Site Request Forgery(CSRF) is difficult to trace, it could cause great harm. The attacker can use CSRF to prank, send spam information, delete data and so on. So how do we prevent CSRF? To deal with increasing CSRF attacks, Yahoo added a random string called crumb to the form. Facebook has similar solution, if you […]

How to send mails with PHPMailer

PHPMailer

PHP mail() is an convenient solution of sending emails, it was easy to configure and didn’t take much time to get it work. Recently I found that Hotmail, Live.com couldn’t receive any mail using this built-in PHP function. It seems like some mail server require authentication before you send an email, and PHP mail() is […]