Skip to content

Commit

Permalink
3.1.5
Browse files Browse the repository at this point in the history
In AbuseIPDB White List or confidence = 0 : accept it
  • Loading branch information
conseilgouz committed Dec 6, 2024
1 parent 972f581 commit 859b846
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 84 deletions.
4 changes: 2 additions & 2 deletions cgsecureinstaller.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<extension version="4.0" type="plugin" group="system" method="upgrade">
<name>plgcgsecureinstaller</name>
<author>ConseilGouz</author>
<creationDate>2024-10-30</creationDate>
<creationDate>2024-12-06</creationDate>
<copyright>(C)2024 ConseilGouz. All rights reserved.</copyright>
<license>GNU General Public License version 3 or later; see LICENSE.txt</license>
<authorEmail>pascal.leconte@conseilgouz.com</authorEmail>
<authorUrl>www.conseilgouz.com</authorUrl>
<version>3.1.4</version>
<version>3.1.5</version>
<description>CG Secure</description>
<scriptfile>script.install.php</scriptfile>
<files>
Expand Down
11 changes: 11 additions & 0 deletions com_cgsecure_changelog.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
<changelogs>
<changelog>
<element>com_cgsecure</element>
<type>package</type>
<version>3.1.5</version>
<note>
<item>Update : 06/12/2024</item>
</note>
<fix>
<item>In AbuseIPDB White List or confidence = 0 : accept it</item>
</fix>
</changelog>
<changelog>
<element>com_cgsecure</element>
<type>package</type>
Expand Down
69 changes: 0 additions & 69 deletions packages/com_cgsecure/admin/cgsecure.xml

This file was deleted.

4 changes: 2 additions & 2 deletions packages/com_cgsecure/cgsecure.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<extension type="component" version="4.0" method="upgrade">
<name>COM_CGSECURE</name>
<creationDate>2024-11-12</creationDate>
<creationDate>2024-12-06</creationDate>
<author>ConseilGouz</author>
<authorEmail>pascal.leconte@conseilgouz.com</authorEmail>
<authorUrl>www.conseilgouz.com</authorUrl>
<copyright>Copyright (C) 2024 ConseilGouz.com. All Rights Reserved</copyright>
<license>GNU/GPL Version 3 or later - https://www.gnu.org/licenses/gpl-3.0.html</license>
<version>3.1.4</version>
<version>3.1.5</version>
<scriptfile>script.php</scriptfile>
<namespace path="src">ConseilGouz\Component\CGSecure</namespace>
<description>COM_CGSECURE_XML_DESCRIPTION</description>
Expand Down
6 changes: 3 additions & 3 deletions packages/library_cgsecure/Helper/Cgipcheck.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
/**
* @component CG Secure
* Version 3.0.13
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
* @copyright (c) 2024 ConseilGouz. All Rights Reserved.
* @author ConseilGouz
Expand Down Expand Up @@ -114,6 +113,7 @@ public static function check_ip($plugin, $context)
$ip = IpHelper::getIp();
// $ip = $_SERVER['REMOTE_ADDR'];
// $ip = '218.92.1.234'; // test hackeur chinois
// $ip = '92.184.96.127'; // in abuseip confidence = 0
// $ip = '54.36.148.179'; // in abuseip whitelist
if (self::whiteList($ip)) {
return true;
Expand Down Expand Up @@ -168,7 +168,7 @@ public static function check_ip($plugin, $context)
}
return;
}
if ($resp->data->isWhitelisted) { // in AbuseIPDB whitelist
if ($resp->data->isWhitelisted || $resp->data->abuseConfidenceScore == 0) { // in AbuseIPDB whitelist
// self::redir_out();
return true;
}
Expand Down Expand Up @@ -273,7 +273,7 @@ public static function check_spammer($plugin, $context)
}
return false; // suppose OK
}
if ($resp->data->isWhitelisted) {
if ($resp->data->isWhitelisted || $resp->data->abuseConfidenceScore == 0) { // in AbuseIPDB whitelist
return false;
} // in AbuseIPDB whitelist
// Verifie si l'IP du visiteur est dans la liste des pays que j'ai autorise
Expand Down
4 changes: 2 additions & 2 deletions packages/library_cgsecure/cgsecure.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<name>CGSecure Library</name>
<libraryname>cgsecure</libraryname>
<author>ConseilGouz</author>
<version>3.1.4</version>
<creationDate>2024-11-12</creationDate>
<version>3.1.5</version>
<creationDate>2024-12-06</creationDate>
<copyright>(C)2024 ConseilGouz. All rights reserved.</copyright>
<license>GNU General Public License version 3 or later; https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL</license>
<authorEmail>pascal.leconte@conseilgouz.com</authorEmail>
Expand Down
4 changes: 2 additions & 2 deletions packages/plg_authentication_cgsecure/cgsecure.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<extension version="4.0" type="plugin" group="authentication" method="upgrade">
<name>PLG_AUTH_COUNTRY</name>
<author>ConseilGouz</author>
<creationDate>2024-11-12</creationDate>
<creationDate>2024-12-06</creationDate>
<copyright>(C)2024 ConseilGouz. All rights reserved.</copyright>
<license>GNU General Public License version 3 or later; see LICENSE.txt</license>
<authorEmail>pascal.leconte@conseilgouz.com</authorEmail>
<authorUrl>www.conseilgouz.com</authorUrl>
<version>3.1.4</version>
<version>3.1.5</version>
<description>PLG_AUTH_COUNTRY_XML_DESCRIPTION</description>
<files>
<filename plugin="cgsecure">cgsecure.php</filename>
Expand Down
4 changes: 2 additions & 2 deletions packages/plg_system_cgsecure/cgsecure.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<extension type="plugin" group="system" method="upgrade" version="4.0">
<name>System - CG Secure</name>
<author>conseilgouz</author>
<creationDate>2024-11-12</creationDate>
<creationDate>2024-12-06</creationDate>
<copyright>(C)2024 ConseilGouz. All rights reserved.</copyright>
<license>GNU General Public License version 3 or later; see LICENSE.txt</license>
<authorEmail>pascal.leconte@conseilgouz.com</authorEmail>
<authorUrl>www.conseilgouz.com</authorUrl>
<version>3.1.4</version>
<version>3.1.5</version>
<description>CG_SECURE_DESC</description>
<files>
<filename plugin="cgsecure">cgsecure.php</filename>
Expand Down
4 changes: 2 additions & 2 deletions packages/plg_user_cgsecure/cgsecure.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<extension version="4.0" type="plugin" group="user" method="upgrade">
<name>CG_COUNTRY</name>
<author>ConseilGouz</author>
<creationDate>2024-11-12</creationDate>
<creationDate>2024-12-06</creationDate>
<copyright>(C)2024 ConseilGouz. All rights reserved.</copyright>
<license>GNU General Public License version 3 or later; see LICENSE.txt</license>
<authorEmail>pascal.leconte@conseilgouz.com</authorEmail>
<authorUrl>www.conseilgouz.com</authorUrl>
<version>3.1.4</version>
<version>3.1.5</version>
<description>CG_COUNTRY_XML_DESCRIPTION</description>
<files>
<filename plugin="cgsecure">cgsecure.php</filename>
Expand Down

0 comments on commit 859b846

Please sign in to comment.