Advanced PrestaShop traffic and performance optimization generator (htaccess)

PP-M025
SEO & Optimization
  • 1.7.7 + | 8.x | 9.x
  • EN, FR, IT, DE, PL, ES
  • 1.0.0
  • 2026-03-03

Stack Pro is a protective module for PrestaShop that restricts artificial and automated traffic at the server level through controlled modification of the .htaccess file. Blocking rules are executed before PHP and database queries are initialised, ensuring that unwanted requests are rejected at the HTTP stage.

The solution reduces CPU and MySQL workload, stabilises response time (TTFB), and minimises the impact of bot attacks, AI crawlers, and exploitation attempts (e.g., SQLi, XSS, brute-force). The module operates without interfering with the PrestaShop core and edits exclusively its own section within the server configuration file.

89.70 € Tax excluded

Additional services:

Installation +29.10 €

Information Parameters:

  • 1.0.0
  • Store Version PHP Version
    1.7.7 + 7.1 – 7.4
    8.x 8.1 – 8.3
    9.x 8.1 – 8.5
  • 2026-03-03
  • EN, FR, IT, DE, PL, ES
  • Common configuration

Key Benefits

  • Reduction of server load: requests are filtered at the .htaccess level before PHP and database queries are executed.
  • Stability with Safe Apply: automatic testing and rollback of changes in the event of an HTTP 5xx error detection.
  • Protection against bots and scrapers: blocking of AI traffic, price-scraping tools, brute-force attacks, and exploitation attempts (SQLi, XSS, LFI/RFI).
  • No core interference: the module exclusively edits its own section in the .htaccess file without modifying the PrestaShop core.
  • Event monitoring: analysis of server logs and identification of 403 responses for rapid administrator reaction.

Module Applications

The module is designed for shops hosted on shared servers, VPS, or servers with CPU/RAM limits, where sudden bot traffic causes performance drops or account suspensions.

It is highly effective in B2B and B2C shops exposed to brute-force attacks, mass form scanning, automated stock level extraction, and competitor price monitoring.

Back Office Features

1. Safe Apply Engine

Safe implementation of changes in .htaccess with automatic validation testing.

  • Automatic rollback – restoration of the previous file version upon detecting an HTTP 500 error.
  • Background testing – deployment without interrupting shop operations.

2. Rule Profiles (ready-made configurations)

Sets of pre-defined security policies for quick deployment.

  • Balanced profile – protection with minimal risk of blocking legitimate traffic.
  • Specialised profiles – form protection, anti-hotlinking, and restrictions for specific endpoints.

3. IP Blacklist Manager

Manual blocking of IP addresses and ranges.

  • IPv4 / IPv6 / CIDR support – utility for defining entire subnetworks.
  • Quick deployment – instantaneous rule saving to .htaccess.

4. Backup Manager

Automated management of .htaccess file copies.

  • Pre-change snapshot – saving a security version before any modification.
  • Retention control – deletion of outdated copies to save storage space.

5. Log Tracking (Event Monitoring)

Built-in server access log reader directly within the administrative panel.

  • Real-time analysis – preview of IP addresses and bots rejected by the firewall (403 Forbidden responses).
  • Convenient diagnostics – comprehensive monitoring of malicious traffic from the Back Office, without the need for server console (SSH) usage.

Front Office Features

1. Strictly Server-Side Operation

No additional JavaScript and zero impact on page weight.

  • Pre-PHP filtration – rejection of requests at the Apache/LiteSpeed level.
  • CAPTCHA-free – genuine customers are not burdened with supplementary tests.

2. Form and Search Abuse Restriction

Blocking of mass queries that generate excessive load.

  • Search/Filter Flooding control – restriction of automated queries and manipulated referrers.

Impact on Sales and SEO

Rejecting unwanted traffic prior to executing MySQL queries reduces server response time (TTFB) and stabilises shop performance during traffic spikes.

Blocking artificial crawling and resource scanning aids in recovering the crawl budget and improves the quality of analytical data by eliminating empty sessions.

Important Information

Best practices: Although the module is safe and creates its own snapshots, we encourage performing a standard backup of your firewall file (.htaccess) and the database before the first use. Furthermore, please note that the built-in access log reader is an optional and auxiliary feature – due to the varied configurations and restrictions of individual hosting providers, we cannot guarantee its operability on every server environment.

Disclaimer of Liability

Legal & SEO Notice: The software is provided "as-is". This module directly interacts with the server's network traffic filtration logic (application layer). The purchaser (administrator) assumes full responsibility for any unwarranted modifications, manual IP scope blocks, or misconfigured traffic restrictions. Incorrect configuration may result in blocking legitimate customers and strictly preventing vital search engine crawler operations (e.g., Googlebot), potentially leading to severe SEO ranking drops or Google de-indexing. Always verify your website's accessibility via external performance tools, such as the fetch validation in Google Search Console, immediately after deploying new rules. The module creators and authors bear no liability for consequential damages, loss of profits, administrative configuration errors, or decline in overall search engine visibility resulting from the use of this product.

Download:


PrestaShop module installation (625.83KB)

Universal documentation describing the module installation process for PrestaShop.

## [1.0.0] - 2026-03-02

### Added

- Initial release of PP Stack Pro – Security module.

FAQs

  • Are the modules compatible with my version of PrestaShop?

    Each module in our store contains information about compatibility with specific PrestaShop versions. Please check this information carefully before purchasing. If you are not sure, contact us.

  • At what stage does the module reject unwanted traffic?

    Filtering takes place at the .htaccess level before PHP and database queries are started. This allows malicious requests to be rejected earlier, which according to the description reduces CPU and MySQL load. The module does not add extra JavaScript to the storefront.

  • How does Safe Apply work when rules are changed?

    Safe Apply saves changes to .htaccess together with an automatic validity test. If an HTTP 5xx error is detected, the module restores the previous file version through a rollback mechanism. This is intended to reduce the risk of store downtime when deploying new protection rules and adjusting firewall settings.

  • Can I manually block selected IP addresses?

    Yes. The IP blacklist manager lets you add IPv4 and IPv6 addresses as well as entire CIDR ranges. Once the configuration is saved, the rules are immediately placed in .htaccess. This feature is intended for a quick response to specific unwanted traffic sources identified in event analysis and server logs.

  • What information is available in the module monitoring?

    The built-in server access-log reader displays IP addresses and bots rejected by the firewall, including 403 Forbidden responses. This makes it easier to diagnose malicious traffic from the Back Office. Availability depends on the configuration and limitations of the particular hosting environment, so it is an auxiliary feature.

  • Does the module back up the .htaccess file before changes?

    Yes. Backup Manager creates an .htaccess snapshot before every rule modification. Administrators can use these backups when reviewing changes, while the retention mechanism removes obsolete snapshots to limit storage usage. The description also recommends making your own backup before using the module for the first time.

Do you need additional features or custom solutions?

  • Module customisation tailored to your specific requirements.
  • Extending functionality to enhance your store's capabilities.
  • Developing bespoke modules designed to meet your unique needs.
  • Integrating external systems and additional tools.
  • Optimisation and improvements for better performance and user experience.

Do you have ideas on how to improve this software? Share your suggestions for optimisation, new features, or bug reports – we’ll be happy to review them!