朱纯树博客
VPS测评推荐网站
cloudacead cloudacead

宝塔Linux面板屏蔽特定的User-Agent

首先科普下什么是User-Agent:User Agent中文名为用户代理,简称 UA,它是一个特殊字符串头,使得服务器能够识别客户使用的操作系统及版本、CPU 类型、浏览器及版本、浏览器渲染引擎、浏览器语言、浏览器插件等。

宝塔Linux面板屏蔽特定的User-Agent插图

因为最近发现了网络日志中有个User-Agent为OPPO的UA疯狂访问,IP还不一致,所以,就需要屏蔽特定的User-Agent!

宝塔Linux面板屏蔽特定的User-Agent插图1

其实宝塔Linux面板屏蔽特定的User-Agent很简单,进入Nginx防火墙,选择全局配置-User-Agent过滤-规则,即可设置!

宝塔Linux面板屏蔽特定的User-Agent插图2

进入规则后,编辑第一条规则!

| SF/前面加入规则| OPPO |即可!

宝塔Linux面板屏蔽特定的User-Agent插图3

宝塔Linux面板屏蔽特定的User-Agent插图4

这样设置就生效了,如果你使用的是Nginx防火墙老版本,设置更加简单!具体如下图:

宝塔Linux面板屏蔽特定的User-Agent插图5

赞(0) 打赏
未经允许不得转载:VPS测评推荐网站 - 朱纯树博客 » 宝塔Linux面板屏蔽特定的User-Agent

评论 60

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #60

    coursework project
    creative writing coursework ideas
    coursework uk

    InessaonEt2周前 (01-21)回复
  2. #59
  3. #58

    best ringtones https://ringtonessbase.com

    bestringtonessdal1个月前 (12-29)回复
  4. #57

    firefox dino https://chromedinos.com

    DinosaurlclaTo1个月前 (12-28)回复
  5. #56
  6. #55

    best college essay service
    common app essay help
    who can write my essay

    PennyonEt2个月前 (11-29)回复
  7. #54

    cheap essay writing service us
    top custom essays
    lord of the flies essay help

    ChelsaeonEt2个月前 (11-27)回复
  8. #53

    It’s great that you are getting ideas from this piece of writing as well as from our argument
    made here.

    Also visit my blog tracfone special coupon 2022

  9. #52

    custom essay cheap
    help on writing an essay
    definition essay help

    NaniceonEt2个月前 (11-26)回复
  10. #51

    cheap essay services
    cheap custom essays
    where can i buy an essay

    CharitaonEt3个月前 (11-25)回复
  11. #50

    essay writing service us
    essay writing help for students
    who can write my essay for me

    AshlenonEt3个月前 (11-23)回复
  12. #49

    us essay writing services
    can somebody write my essay
    argumentative essay helper

    MerolaonEt3个月前 (11-22)回复
  13. #48

    can i pay someone to write my essay
    best essay writing service reviews
    buy an essay online

    MartyonEt3个月前 (11-21)回复
  14. #47

    custom written essay
    help my essay
    writing essay services

    DorolisaonEt3个月前 (11-19)回复
  15. #46

    the help essays
    buy essay papers online
    original essay writing service

    MarrisonEt3个月前 (11-16)回复