PHP Secure(安全) E-mails

。。。。。。。。。。http://www.iis7.com/a/lm/zhanqun/  IIS7站群大全
PHP 防止 E-mail 注入,防止 e-mail 注入的最好方法是对输入进行验证。
我们使用了 PHP 过滤器来对输入进行验证:
FILTER_SANITIZE_EMAIL 过滤器从字符串中删除电子邮件的非法字符
FILTER_VALIDATE_EMAIL 过滤器验证电子邮件地址的值

 

转载于:https://my.oschina.net/u/4060676/blog/3005305

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Do you ever wonder how vulnerable you are to being hacked? Do you feel confident about storing your users sensitive information? Imagine feeling confident in the integrity of your software when you store your user's sensitive data. No more fighting fires with lost data, no more late nights, your application is secure. In this short book I'll give you clear, actionable details on how to secure various parts of your web application. You will also find scenarios to handle and improve existing legacy issues. Several years ago I was writing a web application for a client in the CodeIgniter PHP framework, *shudder*, but CodeIgniter didn't include any type of authentication system built in. I of course did what any good/lazy developer would do and went on the hunt for a well made library to supply authentication capabilities. To my chagrin I discovered that there weren't any clean, concise libraries that fit my needs for authentication in CodeIgniter. Thus began my journey of creating Ion Auth, a simple authentication library for CodeIgniter, and a career long crusade for securing web applications as well as helping other developers do the same. Here we are years later, a lot of us have moved on to other frameworks or languages, but I still repeatedly see basic security being overlooked. So let's fix that. I want to make sure that you'll never have to live the horror of leaking user passwords, or have someone inject malicious SQL into your database, or the suite of other "hacks" that could have been easily avoided. Let's make sure we all get home on time and sleep well at night. Topics This is a quick read, at just over 100 pages. This is a handbook style guide to specific items you can act on. The following sections will be covered: Never trust your users - escape all input HTTPS/SSL/BCA/JWH/SHA and other random letters, some of them actually matter Password Encryption and Storage for Everyone Authentication, Access Control, and Safe File Handing Safe Defaults, Cross Site Scripting and other Popular Hacks Format All code examples are written in PHP with accompanying source code on GitHub. Progress This book is now 100% complete and ready to school you. There will be occasional releases for errata and to keep things up to date. Table of Contents Chapter 1 - Never Trust Your Users. Sanitize ALL Input! Chapter 2 - HTTPS/SSL/BCA/JWH/SHA and Other Random Letters; Some of Them Actually Matter. Chapter 3 - Password Encryption and Storage for Everyone Chapter 4 - Authentication, Access Control, and Safe File Handing Chapter 5 - Safe Defaults, Cross Site Scripting, and Other Popular Hacks

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值