The DDoS Firewall Protection for Magento 2 (Adobe Commerce) module allows the admin to enable DDoS protection for the online store. Using this module the admin can set the firewall provider and the URL to trigger for DDoS protection of the website.
The admin can even set the average server load threshold value and the RAM usage threshold value. If the server usage or RAM usage is more than the configured value then this module automatically triggers the firewall protection.
The admin can also enable the automatic email alert on Firewall activation. Moreover, can even set the email template for it.
Check the brief overview of the plugin in the video –
Features – DDoS Firewall Protection for Magento 2
- Supports auto Firewall protection. Moreover, the Firewall could be enabled/disabled through admin configuration.
- The Console Command to check the status of the Firewall.
- The Console Command to enable/disable the Firewall.
- Works with Cloudflare WAF.
- Can measure server load and memory.
- Receive email alerts on Firewall activation.
- The admin can select a template for the firewall enabled email.
Installation – DDoS Firewall Protection for Magento 2
Firstly, the customers will get a zip folder and they have to extract the contents of this zip folder on their system. Moreover, the extracted folder has an src folder, in the src folder, you will find the app folder.
Magento 2 Company ? Find out More
Then, you will have to transfer this app folder into the Magento 2 (Adobe Commerce) root directory on the server as depicted below.
First command –
php bin/magento setup:upgrade
Second Command –
php bin/magento setup:di:compile
Third Command –
php bin/magento setup:static-content:deploy
Fourth Command –
php bin/magento indexer:reindex
After the successful installation of DDoS Firewall Protection for Magento 2, you have to run the command in the Magento 2 root directory.
Then, after running the commands. Further, you have to flush the cache from the Magento admin panel. So, navigate through->System->Cache management as shown below.
Now, the admin will navigate to Stores->Configuration->General ->Locale Options. Here, you can select the locale as German. (Locale is the language into which the admin desires to translate his store content).
If you want to translate the module language from English to German. Then, follow the following path in the unzipped Magento 2 web security folder. src/app/code/Webkul/DDoSFirewallProtection/i18n.
After that, you will receive a CSV file with the name “en_US.csv”. Now, rename that CSV on your region code and language code “de_DE.csv”.
Next, translate all right-side content in your language. After editing the CSV, and saving it Next, you need to upload it where you have installed Magento 2 on the server.
Consequently, it will translate the module into your desired Language.
Module Configuration – DDoS Firewall Protection for Magento 2
After the successful installation of this module. To configure the module navigate to the Stores > Configuration > DDoS Firewall Protection for Magento 2.
Enable Auto DDoS Protection: The admin can enable the Distributed Denial of Service Protection to protect the web store from an attack and enable the firewall security system.
Average Server Load Threshold: The admin needs to enter a server load value, exceeding which the firewall protection will be activated.
RAM Usage Threshold: The admin needs to enter a RAM Usage Threshold value, exceeding which the firewall protection will be activated.
Firewall Provider: The admin needs to select a Firewall service provider from here.
Note: Currently, this module supports the Cloudfare Firewall service provider.
URL To Trigger: The admin needs to enter the URL which will trigger the firewall.
User Name: The admin needs to enter the User Name associated with their Firewall service provider account.
Password: The admin needs to enter the password associated with their Firewall service provider account.
Check Firewall Status – Commands
Moreover, the admin can check the status of the firewall by running the below command.
php bin/magento ddosprotect:status:show
Manually Activate Firewall
However, the admin can enable/disable the Firewall by simply running the below commands for each :
php bin/magento ddosprotect:status:set enable
php bin/magento ddosprotect:status:set disable
As a result, it will enable or disable the Firewall security.
Further, the admin can configure Email options and alerts.
Firstly, the admin needs to give input for the below fields.
Auto Email Alerts: Whenever the Firewall security is enabled the admin will be sent email alerts if this field is set as Yes.
Firewall Enabled Template: The admin can select a template for the firewall enabled email.
Email to Alert: The admin can specify an email Id here to which the firewall enables email alerts will be sent.
Firewall Activation – DDoS Protection
As per the admin configuration as soon as one of the conditions is reached or met i.e namely Average Server Load Threshold or RAM Usage Threshold.
As a consequence, once the Firewall is activated, the Cloudflare WAF image could be seen on the website.
Further, check a sample of the email alert sent to the specified email address by the admin.
That’s all for the DDoS Firewall Protection for Magento 2. However, if you still have any questions regarding the module please create a support ticket by clicking here or send an email to [email protected]
Current Product Version - 5.0.0
Supported Framework Version - Magento 2.0.x, 2.1.x, 2.2.x,2.3.x, 2.4.x