当前位置:网站首页>Easynvr user login is modified to share the modification process of ip+ user name restriction
Easynvr user login is modified to share the modification process of ip+ user name restriction
2022-06-24 12:16:00 【Tsingsee green rhino video】
at present EasyNVR There is a limit on the number of logins , That is, when users and passwords are entered too many times , Prohibit all users from logging in , In order to keep the original users' use unaffected , We decided to optimize the mechanism , Change to single IP Single user limit for , It does not affect other users and others IP Log in to this user .
The implementation method of this function is as follows : The background maintains a IP+UserName by Key Login error message Map, Received the same again IP+Name Add one to the counter after the login failure message of , After reaching the maximum number of failures , Background limit this Key Login request for , Release the after the limit time Key.
Maintain login failure information Map The structure is as follows :
Determine the number of failures and whether the has been locked :
Release after locking time Key:
The user is forbidden to log in after multiple login failures , Other users can still log in , This function realizes .
For the development of video streaming media platform , We have accumulated many years of experience , Strive to optimize the user experience , The existing video platforms support the actual deployment experience of users , Welcome to know and test .
边栏推荐
- 程序员大部分时间不是写代码,而是。。。
- Is it safe to apply for new bonds to open an account
- [cloud based co creation] interpretation of harmonyos application and service ecology
- 2D 照片变身 3D 模型,来看英伟达的 AI 新“魔法”!
- Single gene pan cancer + simple experiment can be published 7 points+
- Clickhouse deployment and basic usage 1
- Fizz gateway secondary development integration tutorial
- 深度学习~11+高分疾病相关miRNA研究新视角
- Istio best practice: graceful termination
- qt -- QTabWidget 中支持拖拽TabBar项
猜你喜欢

Insurance app aging service evaluation analysis 2022 issue 06

How is the e-commerce red envelope realized? For interview (typical high concurrency)

Qt: judge whether the string is in numeric format

电商红包雨是如何实现的?拿去面试用(典型高并发)
![[go language questions] go from 0 to entry 4: advanced usage of slice, elementary review and introduction to map](/img/7a/16b481753d7d57f50dc8787eec8a1a.png)
[go language questions] go from 0 to entry 4: advanced usage of slice, elementary review and introduction to map

软件测试 对前一日函数的基本路径测试

GTEST from getting started to getting started

计组-总复习

程序员大部分时间不是写代码,而是。。。

《opencv学习笔记》-- 离散傅里叶变换
随机推荐
"Meng Hua Lu" is about to have a grand finale. It's better to learn it first than to look ahead!
LS-DYNA beginner's experience
《opencv学习笔记》-- 图像的载入和保存
Cluster control management
ArrayList#subList这四个坑,一不小心就中招
怎样购买打新债 开户是安全的吗
12+!不同癌症中TMB与ICI反应之间的免疫相关因素研究
Jenkins remote publishing products
How to develop mRNA vaccine? 27+ pancreatic cancer antigen and immune subtype analysis to tell you the answer!
How to apply for new bonds is it safe to open an account
[cloud based co creation] interpretation of harmonyos application and service ecology
Adobe Photoshop using the box selection tool for selection tutorial
11+ article - machine learning builds Protics framework - deeply reveals the impact of tumor infiltrating immune cells in different molecular subtypes on prognosis
How to purchase new bonds is it safe to open an account
2021-06-03: Boolean operation. Given a Boolean expression and an expected cloth
Example of PHP observer mode [useful in the laravel framework]
Google ranging for PHP wechat development
5 points + single gene pan cancer pure Shengxin idea!
QT -- the qtabwidget supports dragging tabbar items
Using the collaboration database query of Poole in laravel5.6