找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 107|回复: 9

关于网站加cdn之后,设置了有效拦截访问,但是这些拦截的访问还是会计算流量,一个月50G流量根本就不够用 New

[复制链接]

327

主题

1063

回帖

1392

积分

金牌会员

积分
1392
发表于 2025-12-7 07:54:54 | 显示全部楼层 |阅读模式
关于网站加cdn之后,设置了有效拦截访问,但是这些拦截的访问还是会计算流量,一个月50G流量根本就不够用


90%拦截流量都是广东电信IP,大家都是怎么做防御的?



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

327

主题

1063

回帖

1392

积分

金牌会员

积分
1392
楼主 发表于 2025-12-7 07:55:52 | 显示全部楼层
你得问CDN服务商!!
回复

使用道具 举报

343

主题

1099

回帖

1444

积分

金牌会员

积分
1444
发表于 2025-12-7 07:56:25 | 显示全部楼层
换edgeone免费版,不限流量不限次数,比普通的cdn强多了
回复

使用道具 举报

327

主题

1063

回帖

1392

积分

金牌会员

积分
1392
楼主 发表于 2025-12-7 07:56:34 | 显示全部楼层
另外你说广东的恶意访问,我的网站最近也是被广东的大量访问,是不是都是广东电信+ua是Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ 开头?
回复

使用道具 举报

352

主题

1075

回帖

1429

积分

金牌会员

积分
1429
发表于 2025-12-7 07:57:05 | 显示全部楼层
拦截肯定算流量呀。能帮你拦截就很不错的。不过你的CDN才一个月50G,我记得ESA基础版是50G,超了收费。但是不管我用CDN还是ESA,我都是额外买3T,5T流量包的
回复

使用道具 举报

343

主题

1099

回帖

1444

积分

金牌会员

积分
1444
发表于 2025-12-7 07:57:28 | 显示全部楼层
是的,基本上都是这样的
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
回复

使用道具 举报

327

主题

1063

回帖

1392

积分

金牌会员

积分
1392
楼主 发表于 2025-12-7 07:58:14 | 显示全部楼层
看来还是得买流量包。自己再研究看看
回复

使用道具 举报

327

主题

1063

回帖

1392

积分

金牌会员

积分
1392
楼主 发表于 2025-12-7 07:59:01 | 显示全部楼层
Fengyecn 发表于 2025-12-6 08:36
是的,基本上都是这样的
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like G ...
                我被这些访问困扰了大半个月,之前我用腾讯云的普通cdn,用ua去拦截,403了也算流量,还会误伤正常用户。我把两天的日志下载下来整理,光ip就有7万多个根本禁不过来。
       

                        前两天在这里看到个edgeone的帖子,我就去领了免费套餐试用,是真的好用,比之前用的普通cdn好多了。我现在直接在规则引擎里拦截,还能设置自定义报错页面。全球加速(我自己和新加坡的朋友ping都是10ms上下)还免费。我这样设置基本0误伤,再加上自定义页面以防万一提醒正常用户。
       

                                       
                           
            
        
   

                                       
                           
            
        
   

.ce-block {    margin-bottom: 20px;}.ce-block__content,.ce-toolbar__content {        /* max-width:calc(100% - 50px) */        margin-left: auto;    margin-right: auto;}.ce-paragraph {    line-height: 1.6em;    outline: none;    text-indent: 2em;    font-size: 16px;}.ce-paragraph--right {    text-align: right;}.ce-paragraph--center {    text-align: center;}.ce-paragraph--left {    text-align: left;}.ce-paragraph--justify {    text-align: justify;}.ce-paragraph-text-indent {    text-align: justify;}.ce-paragraph[data-placeholder]:empty::before{  content: attr(data-placeholder);  color: #707684;  font-weight: normal;  opacity: 0;}/** Show placeholder at the first paragraph if Editor is empty */.codex-editor--empty .ce-block:first-child .ce-paragraph[data-placeholder]:empty::before {  opacity: 1;}.codex-editor--toolbox-opened .ce-block:first-child .ce-paragraph[data-placeholder]:empty::before,.codex-editor--empty .ce-block:first-child .ce-paragraph[data-placeholder]:empty:focus::before {  opacity: 0;}.ce-paragraph p:first-of-type{    margin-top: 0;}.ce-paragraph p:last-of-type{    margin-bottom: 0;}.svg-icon {    width: 1em;    height: 1em;}.svg-icon path,.svg-icon polygon,.svg-icon rect {    fill: #4691f6;}.svg-icon circle {    stroke: #4691f6;    stroke-width: 1;}.ce-block {    margin-bottom: 20px;}.ce-block__content,.ce-toolbar__content {        /* max-width:calc(100% - 50px) */        margin-left: auto;    margin-right: auto;}.image-tool {  --bg-color: #cdd1e0;  --front-color: #388ae5;  --border-color: #e8e8eb;}  .image-tool__image {    border-radius: 3px;    overflow: hidden;    margin-bottom: 10px;  }  .image-tool__image-picture {      max-width: 100%;      vertical-align: bottom;      display: block;      margin-left: auto;      margin-right: auto;    }  .image-tool__image-preloader {      width: 50px;      height: 50px;      border-radius: 50%;      background-size: cover;      margin: auto;      position: relative;      background-color: #cdd1e0;      background-position: center center;    }  .image-tool__image-preloader::after {        content: "";        position: absolute;        z-index: 3;        width: 60px;        height: 60px;        border-radius: 50%;        border: 2px solid #cdd1e0;        border-top-color: #388ae5;        left: 50%;        top: 50%;        margin-top: -30px;        margin-left: -30px;        animation: image-preloader-spin 2s infinite linear;        box-sizing: border-box;      }  .image-tool__caption[contentEditable="true"][data-placeholder]::before {      position: absolute !important;      content: attr(data-placeholder);      color: #707684;      font-weight: normal;      display: none;    }  .image-tool__caption[contentEditable="true"][data-placeholder]:empty::before {        display: block;      }  .image-tool__caption[contentEditable="true"][data-placeholder]:empty:focus::before {        display: none;      }  .image-tool--empty .image-tool__image {      display: none;    }  .image-tool--empty .image-tool__caption, .image-tool--loading .image-tool__caption {      display: none;    }  .image-tool .cdx-button {    display: flex;    align-items: center;    justify-content: center;  }  .image-tool .cdx-button svg {      height: auto;      margin: 0 6px 0 0;    }  .image-tool--filled .cdx-button {      display: none;    }  .image-tool--filled .image-tool__image-preloader {        display: none;      }  .image-tool--loading .image-tool__image {      min-height: 200px;      display: flex;      border: 1px solid #e8e8eb;      background-color: #fff;    }  .image-tool--loading .image-tool__image-picture {        display: none;      }  .image-tool--loading .cdx-button {      display: none;    }  /**   * Tunes   * ----------------   */  .image-tool--withBorder .image-tool__image {      border: 1px solid #e8e8eb;    }  .image-tool--withBackground .image-tool__image {      padding: 15px;      background: #cdd1e0;    }  .image-tool--withBackground .image-tool__image-picture {        max-width: 60%;        margin: 0 auto;      }  .image-tool--stretched .image-tool__image-picture {        width: 100%;      }  .image-tool__caption {                text-align: center;                font-size: 14px;                color: #a3a3a3;        }@keyframes image-preloader-spin {  0% {    transform: rotate(0deg);  }  100% {    transform: rotate(360deg);  }}.inline-code {  background: rgba(250, 239, 240, 0.78);  color: #b44437;  padding: 3px 4px;  border-radius: 5px;  margin: 0 1px;  font-family: inherit;  font-size: 0.86em;  font-weight: 500;  letter-spacing: 0.3px;}

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

360

主题

1043

回帖

1405

积分

金牌会员

积分
1405
发表于 2025-12-7 07:59:52 | 显示全部楼层
Benisme 发表于 2025-12-6 11:48
我被这些访问困扰了大半个月,之前我用腾讯云的普通cdn,用ua去拦截,403了也算流量,还会误伤正常用户。 ...
                                       
                           
            边缘双向认证 。你这边有开启吗?  我试了很多次,证书上传都不对
        
   

.ce-block {    margin-bottom: 20px;}.ce-block__content,.ce-toolbar__content {        /* max-width:calc(100% - 50px) */        margin-left: auto;    margin-right: auto;}.image-tool {  --bg-color: #cdd1e0;  --front-color: #388ae5;  --border-color: #e8e8eb;}  .image-tool__image {    border-radius: 3px;    overflow: hidden;    margin-bottom: 10px;  }  .image-tool__image-picture {      max-width: 100%;      vertical-align: bottom;      display: block;      margin-left: auto;      margin-right: auto;    }  .image-tool__image-preloader {      width: 50px;      height: 50px;      border-radius: 50%;      background-size: cover;      margin: auto;      position: relative;      background-color: #cdd1e0;      background-position: center center;    }  .image-tool__image-preloader::after {        content: "";        position: absolute;        z-index: 3;        width: 60px;        height: 60px;        border-radius: 50%;        border: 2px solid #cdd1e0;        border-top-color: #388ae5;        left: 50%;        top: 50%;        margin-top: -30px;        margin-left: -30px;        animation: image-preloader-spin 2s infinite linear;        box-sizing: border-box;      }  .image-tool__caption[contentEditable="true"][data-placeholder]::before {      position: absolute !important;      content: attr(data-placeholder);      color: #707684;      font-weight: normal;      display: none;    }  .image-tool__caption[contentEditable="true"][data-placeholder]:empty::before {        display: block;      }  .image-tool__caption[contentEditable="true"][data-placeholder]:empty:focus::before {        display: none;      }  .image-tool--empty .image-tool__image {      display: none;    }  .image-tool--empty .image-tool__caption, .image-tool--loading .image-tool__caption {      display: none;    }  .image-tool .cdx-button {    display: flex;    align-items: center;    justify-content: center;  }  .image-tool .cdx-button svg {      height: auto;      margin: 0 6px 0 0;    }  .image-tool--filled .cdx-button {      display: none;    }  .image-tool--filled .image-tool__image-preloader {        display: none;      }  .image-tool--loading .image-tool__image {      min-height: 200px;      display: flex;      border: 1px solid #e8e8eb;      background-color: #fff;    }  .image-tool--loading .image-tool__image-picture {        display: none;      }  .image-tool--loading .cdx-button {      display: none;    }  /**   * Tunes   * ----------------   */  .image-tool--withBorder .image-tool__image {      border: 1px solid #e8e8eb;    }  .image-tool--withBackground .image-tool__image {      padding: 15px;      background: #cdd1e0;    }  .image-tool--withBackground .image-tool__image-picture {        max-width: 60%;        margin: 0 auto;      }  .image-tool--stretched .image-tool__image-picture {        width: 100%;      }  .image-tool__caption {                text-align: center;                font-size: 14px;                color: #a3a3a3;        }@keyframes image-preloader-spin {  0% {    transform: rotate(0deg);  }  100% {    transform: rotate(360deg);  }}.inline-code {  background: rgba(250, 239, 240, 0.78);  color: #b44437;  padding: 3px 4px;  border-radius: 5px;  margin: 0 1px;  font-family: inherit;  font-size: 0.86em;  font-weight: 500;  letter-spacing: 0.3px;}

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

352

主题

1075

回帖

1429

积分

金牌会员

积分
1429
发表于 2025-12-7 08:00:41 | 显示全部楼层
因为一般CDN不带防火墙呀。你可以通过一些简单规则设置拦截一些流量和攻击。我现在用ESA,就是带防DDOS和WAF的。你用EDGONE也是一样的道理,因为他们本身就不仅仅是做加速
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表