Prestashop Module Block Unwanted Bots by IP, Country or User-Agent
Compatible with PrestaShop 1.7 · 8 · 9 (up to 9.2.1)- Regular price
- 55,99€
- Sale price
- 55,99€
- Regular price
-
excl. VAT (67,75 € incl. VAT)
Support and updates
One-time payment. The module is yours forever.
- 6 months of support and updates included (12 months for €10 more)
- Renew for 6 more months for €10 anytime from your client area
- You have 15 days after the end date to renew at the same price
- If you don't renew, you keep using the module and downloading versions released up to that date
- Block by IP, by IP range (for example "66.249.") and by country
- Block by user-agent
- Back office only for the IP addresses you choose, with a safeguard so you never lock yourself out (disabled by default)
- One-click button to ban the most aggressive SEO and scraping bots (Ahrefs, Semrush, MJ12, Petal…)
- Works on Apache (.htaccess) and also on Nginx, with a fallback block in PHP
- Country blocking without mod_geoip: uses the PrestaShop GeoLite2 database or the Cloudflare header
- Compatible with Apache 2.4 and with password-protected stores
- Shows a blank page with a 403 error message
- Unlimited bans, easy to create and remove
Benefits for you
We developed this module to help you block unwanted groups of visitors from your store, especially bots and price comparison sites that can harm your business.
Block by IP
Enter the IP address you want to block and click "Confirm". The person using that IP will no longer be able to access your website and will see a blank page with the message "Forbidden - You don't have permission to access ... on this server". You can create as many IP bans as you need.
Note: enter the full IP address or a prefix ending in a dot to block its whole range.
Block by country
Enter the code of the country you want to block and click "Confirm". Nobody from that country will be able to access your website; they will see a blank page with the message "Forbidden - You don't have permission to access ... on this server". You can create as many country bans as you need.
Note: if your server has no GeoIP, download the GeoLite2 database in International > Localization > Geolocation or use Cloudflare.
Block by user-agent
Enter the user-agent you want to block and click "Confirm". That user-agent will no longer be able to access your website and will see a blank page with the message "Forbidden - You don't have permission to access ... on this server". You can create as many user-agent bans as you need.
Back office only for your IP addresses
Enable the option in the "Back office access" tab and enter the IP addresses you work from (or a prefix ending in a dot). Any other IP will get a 403 error when trying to open your back office, including the login page. When you enable it, your current IP is always added, so you never lock yourself out.
Some examples of user-agents
A few examples: yandexbot, baiduspider, sogou spider, bingbot, slurp, msnbot, twengabot, shopzilla, taringa, facebook...
You can easily find the names of the user-agents you are looking for on these websites:
http://user-agent-string.info/list-of-ua/bots
http://www.useragentstring.com/pages/useragentstring.php
Frequently asked questions
Which PrestaShop versions does the Línea Gráfica module for blocking bots, IPs and countries support?
It works with PrestaShop 1.7 up to 9.2.1. On Apache it blocks through the .htaccess file, and on Nginx it uses a PHP fallback block, so it runs on both servers. It includes translations in eight languages.
How does the module block SEO and scraping bots such as Ahrefs or Semrush?
A single button bans the aggressive SEO and scraping bots Ahrefs, Semrush, MJ12 and Petal in one go. You can also create unlimited bans by IP, IP range, country or user-agent, and remove them easily whenever you want.
Do I need mod_geoip to block visitors by country in PrestaShop?
No. The module detects the country using the PrestaShop GeoLite2 database or the Cloudflare CF-IPCountry header, with no need for mod_geoip. Blocked visitors see a blank page with a 403 error. It is compatible with Apache 2.4 and with password-protected shops.