This modules blocks a range of IP-addresses and redirects requests from them to another side.
Tested with PS 1.1
Quick Setup
1) Unzip & upload to your modules directory
2) Edit the ip-ranges you want to block in the ips.txt in the module directory.
3) Edit
header("Location: http://www.example.com"); at the bottom of ipblock.php to the page the visitor or bot should be redirected to.4) Install this module through Prestashop Back Office
So I don't know if someone really needs this but the module allows you easily to block ip-ranges from your shop.
So you can block tax and revenue offices :), spambots or even whole countries from accessing your site.
Important:
The format of the addresses must be like:
58.136.0.0 58.136.255.255
58.137.0.0 58.137.255.255
58.147.0.0 58.147.127.255
Every single range is one line.
NO hyphen, comments or whatever should be in the ips.txt
This module only blocks IP-ranges, not single IP's so be carefull.
If you like what I am doing (and it is working for you) buy a pants from the shop :)
post a link on your homepage, blog or whatever, follow us on twitter ;) or just say thank you to the prestateam for giving us a nice piece of software.
When you look in the code you know it is not a cakewalk to develop this (<-- I mean the prestashop code :) ).
Regards, trip





Back to top









