{"id":21597375,"url":"https://github.com/cleantalk/_sfw","last_synced_at":"2026-02-15T06:31:45.273Z","repository":{"id":61767399,"uuid":"554904860","full_name":"CleanTalk/_sfw","owner":"CleanTalk","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-17T07:04:00.000Z","size":194,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-11T00:52:34.507Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CleanTalk.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-20T15:47:21.000Z","updated_at":"2025-02-17T07:02:51.000Z","dependencies_parsed_at":"2023-12-26T07:23:44.737Z","dependency_job_id":"e7c71a03-64eb-4e32-a170-2cd6d78b4aeb","html_url":"https://github.com/CleanTalk/_sfw","commit_stats":{"total_commits":24,"total_committers":2,"mean_commits":12.0,"dds":0.04166666666666663,"last_synced_commit":"f731a35056fc746d889954a229d589261c2b2762"},"previous_names":[],"tags_count":35,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CleanTalk%2F_sfw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CleanTalk%2F_sfw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CleanTalk%2F_sfw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CleanTalk%2F_sfw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CleanTalk","download_url":"https://codeload.github.com/CleanTalk/_sfw/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248322610,"owners_count":21084336,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-24T18:08:51.601Z","updated_at":"2026-02-15T06:31:45.227Z","avatar_url":"https://github.com/CleanTalk.png","language":"PHP","readme":"## Install:\n\n`composer require cleantalk/firewall`\n\n## Using:\n\n### Running checking FireWall\n\n```php\n\u003c?php\n\nnamespace Cleantalk\\Common\\Firewall;\n\n$api_key = 'API_KEY_HERE';\n$fw_logs_table_name = 'TBL_FIREWALL_LOG';\n$fw_data_table_name = 'TBL_FIREWALL_DATA';\n\ntry {\n    $firewall = new Firewall($api_key, $fw_logs_table_name);\n\n    $firewall-\u003eloadFwModule(\n        new SFW($fw_logs_table_name, $fw_data_table_name)\n    );\n    \n    $firewall-\u003erun();\n} catch (\\Exception $e) {\n    error_log('CleanTalk Firewall is not loaded: ' . $e-\u003egetMessage());\n}\n\n```\n\n### Running updating FireWall\n\n```php\n\u003c?php\n\nnamespace Cleantalk\\Common\\Firewall;\n\n$api_key = 'API_KEY_HERE';\n$fw_logs_table_name = 'TBL_FIREWALL_LOG';\n\n$firewall = new Firewall($api_key, $fw_logs_table_name);\n\n$fw_updater = $firewall-\u003egetUpdater();\nif ( defined('APBCT_SFW_DIRECT_UPDATE') \u0026\u0026 APBCT_SFW_DIRECT_UPDATE ) {\n    return $fw_updater-\u003edirectUpdate();\n}\nreturn $fw_updater-\u003eupdate();\n\n```\n\n### Running sending FireWall logs\n\n```php\n\u003c?php\n\nnamespace Cleantalk\\Common\\Firewall;\n\n$api_key = 'API_KEY_HERE';\n$fw_logs_table_name = 'TBL_FIREWALL_LOG';\n\n$firewall = new Firewall($api_key, $fw_logs_table_name);\nreturn $firewall-\u003esendLogs();\n\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcleantalk%2F_sfw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcleantalk%2F_sfw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcleantalk%2F_sfw/lists"}