PHPackages                             designsecurity/laf - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. designsecurity/laf

ActiveLibrary

designsecurity/laf
==================

Language application firewall

30PHP

Since Jul 25Pushed 6y ago2 watchersCompare

[ Source](https://github.com/designsecurity/laf)[ Packagist](https://packagist.org/packages/designsecurity/laf)[ RSS](/packages/designsecurity-laf/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

laf
===

[](#laf)

> A language application firewall
> Only PHP is currently supported

[![Build Status](https://camo.githubusercontent.com/5b01cb52bb83ec8871a830110c3ad2b6d801c2f305e736e64896527642e647a2/68747470733a2f2f7472617669732d63692e6f72672f64657369676e73656375726974792f6c61662e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/designsecurity/laf) [![Packagist](https://camo.githubusercontent.com/ab3021c87693f293e00f0ebb3418635ba570835fd2aa640cad56c5d556b2ce59/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64657369676e73656375726974792f6c61662e737667)](https://packagist.org/packages/designsecurity/laf) [![Packagist](https://camo.githubusercontent.com/a7c601aa6ef75387d621d7df391d35bf583fd1720668ffb4d6fae7bbbc7b8d24/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f64657369676e73656375726974792f6c61662e737667)](LICENSE)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#--)

Example
-------

[](#example)

- Embed your code between $detector-&gt;start() and $detector-&gt;finish()
- If attacks are detected, alarms are generated and can be retrieved with $detector-&gt;getAlarms()

```

```

when yourcode.php is vulnerable to an attack (in this example a simulated XSS attack) :

```
