This module allows you to ban IP addresses from accessing your OXID eShop.
The module is designed to protect your shop from DDoS attacks.
- OXID eShop Version CE/PE/EE v4.x or newer
- PHP 7.4 or newer
- Download the latest release from Github
- Unzip the archive
- Copy the content of the folder
src
to the root of your OXID eShop installation - Add the following line to the top of your
/path/to/oxid/source/index.php
file:include_once dirname(__FILE__) . "/banned_ips.php";
To configure and manage the IP banning feature, follow these steps:
- Navigate to the
banned_ips.inc.php
file located in your OXID eShop installation directory. - Add or remove IP addresses in the $aBannedIps array to control access. For example:
$aBannedIps = array( '111.230.204.202', // Example banned IP '192.168.1.1', // Add additional IPs as needed );
- You can customize the message displayed when an IP is banned by modifying the exit statement in
banned_ips.php
. - Change the default message to something more specific to your needs:
exit('Access denied. Your IP has been blocked.');
- After updating the IP list, test the configuration by trying to access your shop from one of the banned IPs.
- Ensure that the access is correctly blocked and that the custom message is displayed.
- Regularly review and update the banned IP list to ensure it reflects current threats and unwanted traffic sources.
- Consider automating the update process if the list changes frequently.
Please use the Github Issues for bug reports and feature requests.
Kussin | eCommerce und Online-Marketing GmbH
Fahltskamp 3
25462 Rellingen
Germany
Fon: +49 (4101) 85868 - 0
Email: info@kussin.de
End-User Software License Agreement
(c) 2006-2024 Kussin | eCommerce und Online-Marketing GmbH