An open API service indexing awesome lists of open source software.

https://github.com/cleantalk/_sfw


https://github.com/cleantalk/_sfw

Last synced: 10 months ago
JSON representation

Awesome Lists containing this project

README

          

## Install:

`composer require cleantalk/firewall`

## Using:

### Running checking FireWall

```php
loadFwModule(
new SFW($fw_logs_table_name, $fw_data_table_name)
);

$firewall->run();
} catch (\Exception $e) {
error_log('CleanTalk Firewall is not loaded: ' . $e->getMessage());
}

```

### Running updating FireWall

```php
getUpdater();
if ( defined('APBCT_SFW_DIRECT_UPDATE') && APBCT_SFW_DIRECT_UPDATE ) {
return $fw_updater->directUpdate();
}
return $fw_updater->update();

```

### Running sending FireWall logs

```php
sendLogs();

```