https://github.com/cleantalk/_sfw
https://github.com/cleantalk/_sfw
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cleantalk/_sfw
- Owner: CleanTalk
- Created: 2022-10-20T15:47:21.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-02-17T07:04:00.000Z (12 months ago)
- Last Synced: 2025-04-11T00:52:34.507Z (10 months ago)
- Language: PHP
- Size: 189 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
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();
```