Country Blocking (CIPRG) 0.8.1
Scripts July 26th, 2007I've rescripted the Country IP Ranges Generator in PHP (aka as Country Blocking or CIPRG), a few bugs have been fixed and the script is now powered by an SQLite database, which allows lists to be generated múch faster. 🙂
Major bugfix: countries with spaces (like United Kingdom) coudln't be generated with the country blocking script.
Everybody is free to use and change the script to suit your needs, but leave the link to ce3c.be -visible for visitors- in the script. The script uses S77.net's ip-to-country database, which can be found at Software77.net.
CIPRG v0.8.1
Features/Description:
- The CIPRG can be used to generate the ipranges for a certain (or multiple) countries.
- You may use the PHP script for generating blocklists (which you can eventually add in PeerGuardian).
- The script may be used by webhosts or people who want to block certain countries from their service.
- The script uses an SQLite-database to save the IP ranges in and can be auto-updated whenever you wish (eventually by using a cronjob).
- It is able to return lists in an IPv4 dotted address or a proper address and the format (eg. Peerguardian blocklist) can be easily adjusted.
- This script also contains s77.handler.php, which will download the ip-to-country database from Software77.net, it's very easy to make new handlers to fetch another ip2country database.
- Proxies may be used too and can be set with just one line of code: define('PROXY', 'xx.xx.xx.xx:1234');
Requirements:
- PHP using Safemode Off: the script can be used now using PHP versions < 5
- SQLite: for the databse and the class
- cURL: needed to update the ip-to-country database
Setup:
CHMOD your working dir, s77.tmp and ip2cdb to 777 if needed (those files may be named elseway and are defined in index.php). Normally the database should update itself when you try to generate a blocklist.
Download:
Don't worry, I didn't forget to add the download-link 😉
Download CIPRG v0.8.1 (link down, ask to reup if needed)
February 1st, 2008 at 2:51 pm
Hi, its User again…
I noticed that the site http://shareaza-security.puffinhost.com/countryblock/ is completely down. Do You know if it is gone for good? Will you link Your stuff anywhere else?
June 30th, 2009 at 7:00 am
please re-upload ciprg.zip or send it to me(or post a thread with it) on the shareaza forum
July 8th, 2009 at 6:44 pm
Can you please update the link to the Country Blocking (CIPRG) 0.8.1?
I would very much like to check out the code.
Thank you!
July 11th, 2009 at 4:16 pm
Hey,
http://services.ce3c.be/ciprg/archive.tgz (latest version: 0.9.7)
there u go, it doesn't come with any instructions,
but if you are able to figure out the last lines of index.php, and make some settings in ciprg.class.php you're all set.
April 17th, 2014 at 5:14 am
PHP Fatal error: SQL Error: Table 'proxy_ip.ciprg_updater' doesn't exist in
🙁
February 17th, 2015 at 4:49 pm
Vous avez des tenues en bon état, qui ne vous plaisent plus, qui sont trop petits ou trop
grands suite à un programme minceur réussi, .
. . donnez-les !C’est bientôt l’hiver, il y a certainement près de
vous, des gens qui ont besoin de vêtements chauds.
March 10th, 2016 at 8:22 pm
Please join more video clips related apt cooking whether you have,as I wish for apt study scale up regarding entire recipes of cooking.
March 11th, 2016 at 7:21 pm
Amazing video,really a fine quality, this YouTube movie touched me a lot within terms of features.
November 4th, 2017 at 3:48 pm
Thanks man, very usefull.
October 10th, 2018 at 10:44 am
No updates to the IP lists since July 2018. Maybe due to change in address of the source database at software77.net? Hopefully this is not the end of CIPRG!
October 10th, 2018 at 12:34 pm
@CyberDuck: Should be fixed now.
October 11th, 2018 at 3:07 pm
@ce3c: Many thanks for the prompt fix. And thanks for continuing to provide this very useful service to the community.
May 2nd, 2020 at 9:19 am
no any new project?
January 3rd, 2022 at 12:24 pm
@ce3c no range update since April 2021, can you check ? Can we help you in any way ?