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

Typecho 自定义UA字符拦截插件

插件介绍

脑袋一热,写出了这个插件,可以有效地防止爬虫,采集,下载器,CC攻击

这个插件的规则比较严格,比如您的UA是:

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36

您把Chrome加进黑名单,那么所有UA包含chrome的用户都将不能访问,大小写不敏感

拦截信息支持php代码,下面演示一段代码的正确书写方法和错误的书写方法

错误书写方法:

<?php echo "Error"; ?>

正确书写方法:

echo "Error";

也就是在书写代码的时候不要写起始符和结束符,即<? | <?php?>

插件截图

QQ截图20200719173429.jpg

赞(1) 打赏
未经允许不得转载:VPS测评推荐网站 - 朱纯树博客 » Typecho 自定义UA字符拦截插件

评论 58

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

    https://datingsiteonline.site/# free dating apps

    AntonioTot1天前回复
  2. #59

    otc sildenafil 20 mg tablets sildenafil 10 mg price

  3. #58

    zithromax antibiotic without prescription zithromax z-pak price without insurance

    CurtisRef3天前回复
  4. #57

    https://prednisonepills.site/# prednisone 12 tablets price

    Jeffreydruby3天前回复
  5. #56

    https://prednisonepills.site/# prednisone 5 mg tablet rx

    Jeffreydruby5天前回复
  6. #55

    azithromycin canadian pharmacy best ed medication

    JoshuaMop6天前回复
  7. #54

    coursework master coursework program coursework for business administration coursework and thesis

  8. #53

    degree coursework coursework vs thesis masters coursework cambridge coursework topics

  9. #52

    coursework for business administration coursework plagiarism coursework and thesis coursework planning

  10. #51

    coursework samples coursework english language coursework
    hours brainycoursework.com

  11. #50

    coursework ne demek coursework download coursework science coursework at university

  12. #49

    stromectol merck This is a common problem for cancer patients

    Voppido2周前 (11-22)回复
  13. #48

    clomid men Genome wide trans ancestry meta analysis provides insight into the genetic architecture of type 2 diabetes susceptibility

    refeInnob2周前 (11-19)回复