当前位置:网站首页>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>
边栏推荐
- [sword finger offer] sword finger offer 53 - ii Missing numbers from 0 to n-1
- Tubes响应性数据系统的设计与原理
- Write the simplest small program in C language Hello World
- [Netease Yunxin] playback demo build: unable to convert parameter 1 from "asyncmodalrunner *" to "std:: nullptr\u T"**
- Exch: repair the missing system mailbox
- Course design for the end of the semester: product sales management system based on SSM
- Acwing game 57
- [sword finger offer] 52 The first common node of two linked lists
- 【剑指Offer】53 - I. 在排序数组中查找数字 I
- 生成对抗网络,从DCGAN到StyleGAN、pixel2pixel,人脸生成和图像翻译。
猜你喜欢

Parker proportional overflow valve rs10r35s4sn1jw

Nouvelle version de shangdingyun | la fonction favorite est en ligne pour répondre aux besoins d'utilisation personnelle

巴比特 | 元宇宙每日必读:未成年人打赏后要求退款,虚拟主播称自己是大冤种,怎么看待这个监管漏洞?...

K-line diagram must be read for quick start

DeFi借贷协议机制对比:Euler、Compound、Aave和Rari Capital

Babbitt | yuanuniverse daily must read: minors ask for a refund after a reward. The virtual anchor says he is a big wrongdoer. How do you think of this regulatory loophole

canvas鼠标控制重力js特效
![[零基础学IoT Pwn] 环境搭建](/img/3b/a0689a1570fcc40bb9a5a4e9cdc63c.png)
[零基础学IoT Pwn] 环境搭建

Share 5 commonly used feature selection methods, and you must see them when you get started with machine learning!!!

Canvas cloud shape animation
随机推荐
【机器学习】K-means聚类分析
Apache 解析漏洞(CVE-2017-15715)_漏洞复现
canvas鼠标控制重力js特效
[sword finger offer] 52 The first common node of two linked lists
[C language] explain threads - thread separation function pthread_ detach
6 張圖帶你搞懂 TCP 為什麼是三次握手?
Send the injured baby for emergency medical treatment. Didi's driver ran five red lights in a row
小程序容器与物联网结合的方式
Distributed machine learning: model average Ma and elastic average easgd (pyspark)
开发那些事儿:Linux系统中如何安装离线版本MySQL?
【义修换届大礼包】
5g business is officially commercial. What are the opportunities for radio and television?
Parker proportional overflow valve rs10r35s4sn1jw
NFT铸造交易平台开发详情
[Netease Yunxin] playback demo build: unable to convert parameter 1 from "asyncmodalrunner *" to "std:: nullptr\u T"**
leetcode:787. The cheapest transfer flight in station K [k-step shortest path + DFS memory + defaultdict (dict)]
[C language] detailed explanation of threads - multi threads for collaborative operation
Exch:Exchange Server 2013 即将终止支持
. Net ORM framework hisql practice - Chapter 1 - integrating hisql
Synchronized summary