承接 motikan2010/gpt-waf 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

motikan2010/gpt-waf

最新稳定版本:v1.1.1

Composer 安装命令:

composer require motikan2010/gpt-waf

包简介

README 文档

README

This is a WAF (Web Application Firewall) using GPT-4. (Laravel only)

Requirement : OpenAI API key for GPT-4.

Install

composer require motikan2010/gpt-waf

Performance

Detect

Speed

Status Response Speed
Disable GPT WAF 00.68 Sec 🚗
Enable GPT WAF 19.04 Sec 🐢

Using

Edit routing & ".env" file

Set "gpt-waf" as the middleware for routing.

Route::group(['middleware' => 'gpt-waf'], function () {
  // Protect area
});

The following changes will be enabled.
https://github.com/motikan2010/GPT-WAF-Test-App/commit/5a021e632488a585fc17d6360e2a89cd99a00eb6

Setting of ".env"

Required

Param Description
GPT_WAF_ENABLED GPT-WAF enabled or disabled.
GPT_WAF_OPEN_AI_API_KEY OpenAI API key for GPT-4.

ex.

GPT_WAF_ENABLED=true
GPT_WAF_OPEN_AI_API_KEY=st-tGC**********

Option

Param Description
GPT_WAF_BLOCK_STATUS_CODE Status code at block.
(default: 403)
GPT_WAF_DEBUG_MODE Output "question" and "answer" to log.
(default: false)
GPT_WAF_QUESTION_TEXT Beginning of message when asking a question to GPT.
By default, the question is asked with the following text.
Begin your answer with 'Yes' or 'No'.\nIs the following HTTP request a cyber attack?(Beware of false positives.)\n-----
GPT_WAF_SYSTEM_ROLE GPT role(system).
(default: You are Security engineer.)

ex.

GPT_WAF_BLOCK_STATUS_CODE=403
GPT_WAF_DEBUG_MODE=true
GPT_WAF_SYSTEM_ROLE=
GPT_WAF_QUESTION_TEXT=

统计信息

  • 总下载量: 13
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固