If you want to restrict some component(s) or components parts, use ‘Components Restrictions’ tab:

components_restrictions_tab

 

In order to have the component restricted, tick it:

checked component

 

 

When you tick a component, 2 sets of fields appear: URL Variable / Variable Value. If you leave the fields empty, the whole component gets restricted.

However you may not need to restrict the entire component but some part(s) of it. Those fields(URL Variable/Variable value) allow you to specify certain parts of the component to be restricted. Restrictions are URL based, therefore you need to know the component’s URLs that are to be restricted.
 

Every URL has parameters: variables and values.
 
Variable sits before the ‘=’ sign.
Variable Value goes after the ‘=’ sign and before the ‘&’ sign.
 

For example, the URL index.php?option=com_resource&controller=article&article=1&category_id=1 has the following variables: option, controller, article and category_id
/index.php?option=com_resource&controller=article&article=1&category_id=1
The value of the ‘option’ variable is com_resource;
the value of the ‘controller’ variable is article;
the value of the ‘article’ variable is 1;
the value of the ‘category_id’ variable is 1
 
index.php?option=com_resource&controller=article&article=1&category_id=1
 

option=com_xxx   denotes the component the URL associates with.

option=com_resource denotes that the URL is part of the Mighty Resources component, therefore Mighty Resources should be ticked off.

The URL index.php?option=com_resource&controller=article&article=1&category_id=1 can be restricted in 3 different ways:

Option #1

URL Variable 1: controller
Variable Value 1: article
 
URL Variable 1: article
Variable Value 1: 1
 

component restr_option1

 

These restrictions are applied to every Mighty Resources URL that contains controller=article AND article=1 parameters.
 
Option #2

URL Variable 1: controller
Variable Value 1: article
 
URL Variable 1: category_id
Variable Value 1: 1

 

component restr_option2

These restrictions are applied to every Mighty Resources URL that contains controller=article AND category_id=1 parameters.

 

Option #3

URL Variable 1: article
Variable Value 1: 1
 
URL Variable 1: category_id
Variable Value 1: 1

 

component restr_option3

These restrictions are applied to every Mighty Resources URL that contains article=1 AND category_id=1 parameters

If you need to restrict several URLs that differ in one parameter then you can specify the variable's values separated by comma. Suppose the URLs that you want to restrict are:

/index.php?option=com_resource&controller=article&article=90&category_id=28&Itemid=55&lang=en

/index.php?option=com_resource&controller=article&article=91&category_id=28&Itemid=75&lang=en

/index.php?option=com_resource&controller=article&article=95&category_id=28&Itemid=5&lang=en

 

In order to restrict them, you can use the following settings:

URL Variable 1: category_id
Variable Value 1: 28
 
URL Variable 1: article
Variable Value 1: 90,91,95

 

Restricting downloading DocMan files:

Suppose, the URL which you need to restrict is:
http://mysite.com/joomla/index.php?option=com_docman&task=doc_download&gid=7&Itemid=11

To restrict it, open 'Components restrictions' tab, check DocMan component and fill the variable fields with the following values:
 
URL Variable 1: task
Variable Value 1: doc_download

URL Variable 2:gid
Variable Value 2: 7

 

Restricting Agora forum's URL:

To restrict this URL /index.php?option=com_agora&task=forum&id=6&Itemid=134 you need to tick off the Agora forum component and enter the following values:

URL Variable 1: task
Variable Value 1: forum
AND
URL Variable 2: id
Variable Value 2: 6

 

Important!!! Do not specify ItemId variable and its values in the restrictions; it will not affect anything!

Notice that SEF URLs values cannot be used for restrictions. Prior to entering the URL's values turn SEF off and check the URL's variables and values. Then you can turn SEF back On.