Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[html] 第242天 如何防止cookie被盗用? #1645

Open
haizhilin2013 opened this issue Dec 13, 2019 · 2 comments
Open

[html] 第242天 如何防止cookie被盗用? #1645

haizhilin2013 opened this issue Dec 13, 2019 · 2 comments
Labels
html html

Comments

@haizhilin2013
Copy link
Collaborator

第242天 如何防止cookie被盗用?

我也要出题

@haizhilin2013 haizhilin2013 added the html html label Dec 13, 2019
@forever-z-133
Copy link

  1. https
  2. 加 IP 判断
  3. 缩短有效时间

@zishiluojin
Copy link

zishiluojin commented Dec 17, 2019

  1. 禁止第三方网站带cookie(same-site属性)
  2. 每次请求需要输入图形验证码
  3. 使用Token验证
  4. 为cookie设置HttpOnly
  5. 设置CSP
  6. 使用Referer验证
  7. 禁止网页内嵌
  8. 使用https
  9. cookie带上用户ip加密

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
html html
Projects
None yet
Development

No branches or pull requests

3 participants