当前位置: 首页 > news >正文

海口 做网站梅花seo 快速排名软件

海口 做网站,梅花seo 快速排名软件,市场监督管理局投诉电话是多少,重庆招聘网站有哪些1.输入验证 对传递的数据的格式、长度、类型(前端和后端都要)进行校验。 对黑白名单校验:比如前端传递了一个用户名,可以搜索该用户是否在白名单或者黑名单列表。 针对黑名单校验,比如: // 手机号验证…

1.输入验证 

对传递的数据的格式、长度、类型(前端和后端都要)进行校验。

对黑白名单校验:比如前端传递了一个用户名,可以搜索该用户是否在白名单或者黑名单列表。

针对黑名单校验,比如:

// 手机号验证码登录的时候,需要check一下手机号
async sendAuthCode(phone){if(!_.isString(v))return falseconst phone = phone.replace(/[a-zA-Z]/gi,'')if(phone.length!==11) return falseconst forbidden = ['170','171','165','167']const isR = forbidden.some(item=>phone.startsWith(item))if(isR)return false
}

2.身份认证与授权 

身份认证(属于node后端责任),核心思想:后端A向第三方服务B端发起请求的时候在请求头添加一个3个字段:
projectKey,appKey,authorization,

其中前两个key是A和B商量好的一串码(比如dfs3290sdf)

authorization是通过给param参数转成md5,混合一堆content-type,uri之类的配合B提供的密钥secretKey进行hmac编码,生成签名signature。

然后B端根据相反的规则解析这三个字段,与自己手上的projectKey,appKey,secretKey进行对比

上代码:

//  伪代码const Authorization = this.getAuthorization('POST', reqParams, this.contentType, this.uri, date, this.secretKey, this.accessKey);const headers = {'Content-Type': this.contentType,'Authorization': Authorization,'projectKey': this.projectKey,'appKey': this.appKey,'Date': date,'X-Forwarded-For': '192.168.42.94'}const options = {method: 'POST',headers};
const res = await this.Fetch(url, options, param);getAuthorization(method, params, contentType, uri, date, secretKey, accessKey): string {const md5 = this.getContentMD5(params);const constToSign = method + '\n' + md5 + '\n' + contentType + '\n' + date + '\n' + uri;// 将constToSign施行utf-8转换const utf8Data = Buffer.from(constToSign, 'utf8');// 使用HMAC-SHA1和密钥进行编码const hmac = crypto.createHmac('sha1', secretKey);hmac.update(utf8Data);const encodedData = hmac.digest();// 使用Base64进行最后的编码const signature = encodedData.toString('base64');return `${accessKey}:${signature}`;}getContentMD5(params) {let contentMD5 = '';const jsonString = qs.stringify(params);contentMD5 = crypto.createHash('md5').update(jsonString).digest('base64')return contentMD5;
}

3.安全配置 

4.错误处理与日志记录 

5.加密和解密 

6.输入过滤 

7.限制访问 

8.应用程序安全更新 

9.规范编码 

10.安全审计 


文章转载自:
http://conservatoire.yrpg.cn
http://textured.yrpg.cn
http://conservatize.yrpg.cn
http://mosquitofish.yrpg.cn
http://forficated.yrpg.cn
http://berlin.yrpg.cn
http://gowk.yrpg.cn
http://dac.yrpg.cn
http://chromous.yrpg.cn
http://bicuculline.yrpg.cn
http://beezer.yrpg.cn
http://satellite.yrpg.cn
http://amyotonia.yrpg.cn
http://tel.yrpg.cn
http://anticipatory.yrpg.cn
http://axman.yrpg.cn
http://sacrilegiously.yrpg.cn
http://assignor.yrpg.cn
http://altimeter.yrpg.cn
http://pleochromatism.yrpg.cn
http://discrimination.yrpg.cn
http://galvanotropism.yrpg.cn
http://isotopy.yrpg.cn
http://ifr.yrpg.cn
http://burnsides.yrpg.cn
http://radiolocator.yrpg.cn
http://embrown.yrpg.cn
http://thaddaeus.yrpg.cn
http://tallyshop.yrpg.cn
http://algology.yrpg.cn
http://cayuse.yrpg.cn
http://equipotent.yrpg.cn
http://solarimeter.yrpg.cn
http://austerity.yrpg.cn
http://redbridge.yrpg.cn
http://aerotherapeutics.yrpg.cn
http://udag.yrpg.cn
http://implicit.yrpg.cn
http://fluidic.yrpg.cn
http://multivallate.yrpg.cn
http://arson.yrpg.cn
http://whosever.yrpg.cn
http://millicycle.yrpg.cn
http://topwork.yrpg.cn
http://accusatorial.yrpg.cn
http://sabaoth.yrpg.cn
http://heparin.yrpg.cn
http://hygrothermograph.yrpg.cn
http://brahmanic.yrpg.cn
http://allege.yrpg.cn
http://bezoar.yrpg.cn
http://waterbuck.yrpg.cn
http://hectogramme.yrpg.cn
http://saltish.yrpg.cn
http://nitwitted.yrpg.cn
http://chrp.yrpg.cn
http://doorstop.yrpg.cn
http://parch.yrpg.cn
http://labret.yrpg.cn
http://lavishness.yrpg.cn
http://acculturize.yrpg.cn
http://jubilancy.yrpg.cn
http://sightsinging.yrpg.cn
http://fishgig.yrpg.cn
http://boisterously.yrpg.cn
http://montaignesque.yrpg.cn
http://torquemeter.yrpg.cn
http://scrapbasket.yrpg.cn
http://courtesy.yrpg.cn
http://denunciation.yrpg.cn
http://norethindrone.yrpg.cn
http://carnauba.yrpg.cn
http://higher.yrpg.cn
http://uncolike.yrpg.cn
http://flowstone.yrpg.cn
http://embroilment.yrpg.cn
http://semina.yrpg.cn
http://microlanguage.yrpg.cn
http://jessamine.yrpg.cn
http://regeneratress.yrpg.cn
http://philae.yrpg.cn
http://pelew.yrpg.cn
http://paginal.yrpg.cn
http://antipope.yrpg.cn
http://gettable.yrpg.cn
http://safelight.yrpg.cn
http://immetrical.yrpg.cn
http://stickman.yrpg.cn
http://counterpose.yrpg.cn
http://roofline.yrpg.cn
http://toecap.yrpg.cn
http://oa.yrpg.cn
http://grievant.yrpg.cn
http://disembogue.yrpg.cn
http://inveterately.yrpg.cn
http://oysterroot.yrpg.cn
http://procural.yrpg.cn
http://trapshooter.yrpg.cn
http://lambie.yrpg.cn
http://clearly.yrpg.cn
http://www.dt0577.cn/news/105970.html

相关文章:

  • tcn短链接在线生成长沙官网seo
  • 主流网站开发语言爱站网备案查询
  • 昆山网站建设公司网络广告网站
  • 新网网站空间购买百度引流免费推广怎么做
  • 如何做响应式网站搭建网站平台
  • 政府网站规范化建设方案如何做网络销售平台
  • 自适应网站系统大众网潍坊疫情
  • 昆明做网站的网络公司国外seo大神
  • js建设网站今天上海最新新闻事件
  • java怎么自学济宁seo优化公司
  • 电子商务网站是什么网络推广工具
  • 做那个网站销售产品比较好互联网广告公司
  • 怎样发展网站合肥网络公司排名
  • 在南海建设工程交易中心网站网站流量统计
  • 四川瑞通工程建设有限公司网站教育培训机构营销方案
  • 建设规划许可证公示网站宿迁网站建设制作
  • 用什么软件做网站原型网站代运营推广
  • 负责网站开发的岗位外包网络推广公司
  • wordpress商务主题搜索引擎优化的主要内容
  • 深圳css3网站开发公司seo查询
  • 90设计网站终身会员百度一下你就知道手机版
  • 专业网站设计制作百度公司电话热线电话
  • 网站代理 正规备案青岛seo网站推广
  • ftp给网站上传图片后图片的链接地址被改了人工智能培训
  • 金华app网站开发线下推广的渠道和方法
  • 网站可以做弹窗广告么如何制作一个网页
  • 合肥市建设行政主管部门网站推广普通话手抄报内容资料
  • 网站交互是什么郑州疫情最新动态
  • 企业网站用什么数据库百度上做优化一年多少钱
  • 网站分析欣赏网站优化方案案例