Skip to content

Wires Request

Each wire has a optional set of global overrides and some specific settings:

Optional wire specification

Each wire can override the default settings like below. If they are not specified in a wire, the global settings are used

php
WireDetailsConfig::make()
    // ...
    
    //... the following are all optional, if these are not present the global values are used        
    ->trainingMode(true) // set this to trainingMode
    ->debugMode(true) // set this to debugMode
    ->urls(UrlsConfig::make()) // urls to include or exclude
    ->inputFilter(InputsFilterConfig::make())
    ->punish(PunishConfig::make(1000, 60 * 24, 5))
    ->rejectResponse(
        JsonResponseConfig::make()->code(406)->json(json_decode(env('TRIPWIRE_REJECT_JSON', '[]'), true)),
        HtmlResponseConfig::make()->code(406)->view(env('TRIPWIRE_REJECT_PAGE', 'tripwire-laravel::blocked')),
    )

Specifics

Agent

Setup Agent wire

Bot

Setup Bot wire

Geo - WORK_IN_PROGRESS

Setup Geo wire

Lfi

Setup Lfi wire

Php

Setup Php wire

Referer

Setup Referer wire

RequestSize

Setup RequestSize wire

Rfi

Setup Rfi wire

Session

Setup Session wire

Sqli

Setup Sqli wire

Swear

Setup Swear wire

Text

Setup Text wire

Xss

Setup Xss wire

Custom

Setup Custom wire

Honeypot

Setup Honeypot wire

Request Validator / Checksum

Setup Checksum wire

FileUpload- WORK_IN_PROGRESS

Setup Upload wire -- Work in progress --

Released under the MIT License.