Redeem Now
Read More
Read now
Menu Close
    Start a Project Request quote Reading list Switch to dark mode

    DDoS Firewall Protection for Magento 2


    The DDoS Firewall Protection for Magento 2 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 and RAM usage threshold. If both 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 for the DDOs protection and can even set the email template for it.

    What is DDoS Attack – Distributed Denial of Service?

    A scenario where your web store has flooded with too much traffic that it can not accommodate anymore is called a distributed denial-of-service attack.

    Now since the website is now not in a state to function it can be termed as denial of service. Moreover, the module helps the store owners to protect their website using a Firewall service provider.

    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 measures server load and memory.
    • Email alerts on High server usage and load.
    • 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.

    Then, you will have to transfer this app folder into the Magento 2 root directory on the server as depicted below.

    First command –

    Second Command –

    Third Command –

    Fourth Command –

    After the successful installation of DDoS Firewall Protection for Magento 2, you have to run the command in the Magento 2 root directory.

    Cache Management

    Then, after running the commands, you have to flush the cache from the Magento admin panel. So, navigate through->System->Cache management as shown below.

    Multilingual Support

    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).

    Module Translation

    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, the module will get translated 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.

    General Settings

    Further, the admin can configure the general settings by entering the inputs for the below fields.

    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, the Cloudfare Firewall service provider is supported in this module.

    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.

    Manually Activate Firewall

    However, the admin can enable/disable the Firewall by simply running the below commands for each.

    As a result, the Firewall security will be enabled or disabled. 

    Auto Firewall Activation Using Cron

    Further, leveraging the cron in Magento 2 the admin can save considerable time by setting cron using which the firewall will be activated after a set interval of time.

    Note: Moreover, the admin can set the time interval of the cron frequency.

    Email Options

    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 enable email alerts will be sent.

    Firewall Activation – DDoS Protection

    As per the admin configuration as soon as one of the conditions occurs i.e namely Average Server Load Threshold or RAM Usage Threshold. 

    As a consequence, once the Firewall is turned on, the URL of the websites is hit only once i.e just for the first time when a user opens the website in their browser.

    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

    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

    . . .

    Leave a Comment

    Your email address will not be published. Required fields are marked*

    Be the first to comment.

    Back to Top
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just recieved your project brief and our expert will contact you shortly.
    Send Again

    Table of Content

    Hide Index