Support

Admin Tools

#13555 Adding a whole folder to .htaccess exclusion rules

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Saturday, 15 September 2012 13:22 CDT

alledia
Mandatory information about my setup:

Joomla! version: 1.5.25
PHP version: 5.3
Host: Rochen
Admin Tools version: 2.2.9

Description of my issue:

We're using Admin Tools Pro to block access to extra PHP files. We use this code currently:

##### Advanced server protection rules exceptions -- BEGIN

RewriteRule ^administrator/components/com_akeeba/restore.php$ - [L]

RewriteRule ^administrator/components/com_admintools/restore.php$ - [L]

RewriteRule ^idevaffiliate/idevaffiliate.php$ - [L]

##### Advanced server protection rules exceptions -- END


The second-to-last line is to allow our iDevaffiliate links to work.

We need to allow access to the rest of the folder too. Is it possible to add the whole /idevaffiliate/ folder as an exception here or would we need to list every PHP file inside the /idevaffiliate/ folder?

nicholas
Akeeba Staff
Manager
Hello Steve,

You should not need to add custom rules to the .htaccess file when you're using the .htaccess Maker.

In order to allow access to specific files please use the "Allow direct access to these files" area. In your case you only need to add these lines:
administrator/components/com_akeeba/restore.php
administrator/components/com_admintools/restore.php


Likewise, in order to allow access to all .php files in the idevaffiliates folder add this line to the "Allow direct access, including .php files, to these directories" area:
idevaffiliate


All these can be found in the Server protection slider, under the Exceptions header. I'd recommend reading the documentation where this is all detailed.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!