CF Block Countries

Block countries by IP - Open source free Joomla plugin cfBlockCountries

This plugin helps you to block users from different countries based on their ip address. This is open source application based on Joomla.

The Plugin now supports Joomla version 1.5 and 2.5

Take a look at cfBlockCountries-PRO available for Joomla 2.5 at 33% discount with many more features packed in cfBlockCountries:

The cfBlockCountry is a Joomla plugin that can be used to block IP address from certain countries. For example if you want to block access of the site from any IP in United States you can use this plugin.

Some important points:

It only blocks access to website and not the admin interface so that if you accidently block your own country you can reset the country list

This plugin uses free DB from MaxMind ( As per the MaxMind this DB is 99.5% accurate.

There are 2 options in the plugin, if you want to use geoip database from local server, you can select the Local option after installing the plugin. But before you select local option please upload geoip folder in the plugin zip file to /libraries/ folder of joomla installation.

If this operation is not performed and local option is selected this will cause error on Joomla and you may not be able to access joomla site unless plugin is disabled from DB.


Country Codes:This requires comma (,) separated list of Country codes that need to be blocked. For example US, IN, FR to block IP Address from United States, India and France. Get the list of country codes from here

Verification:External (default) or Local. External will use our Server to validate the country. We use latest Free DB from MaxMind In case you want to use local Verification you will need to install the geoip DB on your server. Please do not enable Local without installing the DB. (Refer below for installing the DB)

Message or Redirect: In case a user from blocked country accesses the site, you can display an error message or redirect them to some other site.

Text Message: This is the error message that will be displayed.

Site: You need to set url for the site where you want to redirect the user example

Install GeoIP DB for local option.

  • Extract the geoip folder from the plugin zip.
  • Upload the folder geoip to libraries/ folder of Joomla installation
  • Get the latest GeoIP.dat from and replace the existing (blank file with same name)one in /library/geoip folder
    Enable Local option in plugin settings.
  • In case you face an issue with the plugin and site stops working as an immediate relief measure delete the file CFBlockCountry.php from plugins/system folder.
  • Joomla 1.5 ( Download PluginDemo)
  • Joomla 2.5(Download Plugin)

This product includes GeoLite data created by MaxMind, available from

To know more about our Joomla offering Click here

Our Numbers do the Talking

Projects Implemented
Projects Implemented


Happy Clients
Happy Clients




Years of awesomeness
Years of awesomeness


About CodeFire

CodeFire Technologies is software services based company. We provide services in different technical and functional domains.

We offer technology intensive solutions and services while being highly cost effective. Thus we are able to offer to our clients the best of both the worlds - Technology and Cost. Our core expertise includes solving complex and hard to crack problems and developing applications. The processes we follow for development are tuned for quick turnaround and quality deliverables. Read more about our development methodology here

Need experienced Indian professionals

Want to discuss your idea or project with us

Project Inquiry

Interested to Join Us?

Post Your Resume