Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

How to block an entire website from a country?

How to block an entire website from a country?

How to block an entire website from a country?

Also after blocking is it possible to show a text saying - We have blocked this site in your country !

Tijj
Beginner Modder
ranks
useravatar
Offline
18 Posts
Administrator has disabled public posting

Re: How to block an entire website from a country?

To do this with Chameleon I would do the following:

1 - set up an article linked to a hidden menu item, that contains the "Blocked" text
2 - set up a new rule in Chameleon
3 - turn on GeoIP for that rule
4 - enter the list of country codes for the blocked countries into the "only these countries" box, e.g: CL,ES,FR,DE
5 - in the Succeed Action, choose the menu item with the Blocked text, from the redirection dropdown.
6 - save the rule.

In this way, if the user is from one of the blocked countries, s/he will be redirected through to that page.

Hope that helps,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3313 Posts
User info in posts
Administrator has disabled public posting

Re: How to block an entire website from a country?

Hi Stephen -  That almost worked !!

The user gets redirected to the page but he still can access other pages of the site - either by clicking links in the menu OR by indexed results from Google. Is there a way to block each and every page of the site and not just the home page?

Thanks for your help !!

Tijj
Beginner Modder
ranks
useravatar
Offline
18 Posts
Administrator has disabled public posting

Re: How to block an entire website from a country?

That should have fixed all pages - perhaps you have included something else in the rule that detects only the front page? That might be the URL or a certain menu item.

If you can't work out what's going on, try turning on the debug mode in the Chameleon Options panel, then view the site as you visit it (you might want to temporarily remove the redirection action while you do this). Info should appear indicating which options were tried and which actions performed, and this should help you find out why only the front page is being targeted.

Hope that helps,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3313 Posts
User info in posts
Administrator has disabled public posting

Re: How to block an entire website from a country?

Hi Stephen,
Can we turn this upside down so that instead of blocking countries we only allow access to specific countries

Thanks,

Ian C

ianc
Doctor or so they tell me
Beginner Modder
ranks
useravatar
Offline
18 Posts
User info in posts
Administrator has disabled public posting

Re: How to block an entire website from a country?

Hi Stephen,

Think I found it. So I shall play for a while.

Thanks,

Ian C

ianc
Doctor or so they tell me
Beginner Modder
ranks
useravatar
Offline
18 Posts
User info in posts
Administrator has disabled public posting

Re: How to block an entire website from a country?

Thanks for letting me know Ian - all the best.

Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3313 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1680
Total Polls:
6
Total Posts:
5914
Total Posts Today:
1
User Info:
 
Total Users:
10831
Newest User:
bluesky1
Members Online:
0
Guests Online:
167

Online: 
There are no members online

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked