当前位置:网站首页>Daily interview 1 question - how to prevent CDN protection from being bypassed
Daily interview 1 question - how to prevent CDN protection from being bypassed
2022-06-30 17:59:00 【qq_ fifty-one million five hundred and fifty thousand seven hun】
When the attacker finds that the target site exists CDN When protecting , Will try to find the real site by IP, To bypass the CDN protective .
Let's take a look at a common high availability architecture based on public cloud , as follows :
CDN( Entrance level )->WAF( Application layer protection )-> SLB( Load layer )-> ECS( Origin station ) -> RDS( database )
That is, the corresponding relationship is : domain name cname CDN,CDN—>WAF,WAF—> SLB,SLB—> ECS.

SLB:Server Load Balancer Load balancing between network servers
When a client initiates a connection to a virtual server , Through some kind of load balancing algorithm , Forward to a real server .
Let's focus on CDN—>WAF—>SLB—>ECS The relationship between these layers of services .
hypothesis , The attacker knows SLB The real IP Address , You can go directly to SLB Of ip Address , So as to easily bypass CDN+WAF Safety protection of .
How to prevent CDN Being bypassed ?
Here's a CDN Protective techniques , adopt Middleware configuration only allows domain name access , prohibit ip visit .
In this way , All direct access sites are real IP All requests will be rejected , Any user can only access the site through the domain name , Through a pre-set network link , from DNS–>CDN–>waf protective –> Origin station , All access requests must go through WAF testing .
Even if the attacker finds the truth IP Address , Modify local hosts file , Force domain name and IP analysis , Can't access the target site .
Nginx Reference configuration :
# Add one server, In the original server Binding domain name in
server {
listen 80 default;
server_name _;
return 403;
}
server {
listen 80;
server_name www.demo.com;
.........
Apache Reference configuration :
# stay httpd.conf Add at the back
<VirtualHost Fill in here IP>
ServerName Fill in here IP
<Location />
Order Allow,Deny
Deny from all
</Location>
</VirtualHost>
<VirtualHost Fill in here IP>
DocumentRoot /var/www/html
ServerName Fill in the domain name here
</VirtualHost>
边栏推荐
- Solution: STM32 failed to parse data using cjson
- Advanced Mathematics (Seventh Edition) Tongji University General exercises one person solution
- 墨天轮沙龙 | 清华乔嘉林:Apache IoTDB,源于清华,建设开源生态之路
- Parker variable displacement piston pump pv092r1k1t1nmmc
- Acwing game 57
- 4年工作经验,多线程间的5种通信方式都说不出来,你敢信?
- splitting.js密码显示隐藏js特效
- Exch: repair the missing system mailbox
- Exch:完整性检查 Database Integrity Checking
- New power of data analysis -- the first open source integrated real-time HTAP database in China was released by stonedb
猜你喜欢

编译生成busybox文件系统

编写C语言的最简单小程序Hello world

canvas鼠标控制重力js特效

K-line diagram must be read for quick start

Write the simplest small program in C language Hello World

开发那些事儿:Linux系统中如何安装离线版本MySQL?
![[C language] explain threads - thread separation function pthread_ detach](/img/d7/cce6c8afda85376eb569b1a5239c48.png)
[C language] explain threads - thread separation function pthread_ detach

2022上半年盘点:20+主流数据库重大更新及技术要点汇总

每日面试1题-如何防止CDN防护被绕过

阿里云ECS导入本地,解决部署的问题
随机推荐
Exch: database integrity checking
Send the injured baby for emergency medical treatment. Didi's driver ran five red lights in a row
送受伤婴儿紧急就医,滴滴司机连闯五个红灯
What did Tongji and Ali study in the CVPR 2022 best student thesis award? This is an interpretation of yizuo
Login box tricks
[BJDCTF2020]The mystery of ip|[CISCN2019 华东南赛区]Web11|SSTI注入
Building a basic buildreoot file system
Small Tools(3) 集成Knife4j3.0.3接口文档
Nielseniq welcomes dawn E. Norvell, head of retail lab, to accelerate the expansion of global retail strategy
Interview shock 60: what will cause MySQL index invalidation?
每日面试1题-如何防止CDN防护被绕过
Six pictures show you why TCP has three handshakes?
AnimeSR:可学习的降质算子与新的真实世界动漫VSR数据集
知名互联网房屋租赁服务公司物联网关键业务迁移上云实践
3D chart effectively improves the level of large data screen
Booking UI effect implemented by svg
网络:服务器网卡组技术原理与实践
Animesr: learnable degradation operator and new real world animation VSR dataset
腾讯云的一场硬仗
Parker Parker sensor p8s-grflx