Support

Admin Tools

#39990 Exceptions from Server Protection: trying to add a directory exception

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
4.4.1
PHP version
8.1.26
Admin Tools version
7.4.4

Latest post by infini on Monday, 18 December 2023 11:42 CST

infini

trying to add a folder exception to be "hacked-me-plenty" using admin tools, but it seems to completely crash the htaccess file.

even just opening .htaccess Maker window, then clicking save and create .htaccess breaks it completely. 

sorry if duplicate ticker, i checked and searched as much as i could.  did i miss something? do i need to do or not do something in the  .htaccess maker page?

nicholas
Akeeba Staff
Manager

You describe an issue nobody else had over 14 years on hundreds of thousands of sites. Unfortunately, none of the screenshots contain any information I wouldn't consider “self-understood” given the description of the problem, and lack any detail I could use further troubleshooting this issue.

Without further ado, let's move on to troubleshooting. Even if you have already tried something of that, please humour me and try again. Stick to the instructions. Do not deviate in the exact steps taken, or the order, please.

A. Establish if things are as described. Open the .htaccess Maker. Remove the folder you just allowed. Do NOT make any other changes. Click on Save & Create .htaccess. If the problem persists, please read https://www.akeeba.com/documentation/admin-tools-joomla/athtaccess500.html and stop troubleshooting here.

B. What is the name of the folder? This is a very important piece of information for me to have.

C. What happens if you allow a different folder? Create a new folder under your site's root named foo. Give it permissions 0755. This is important! Create a new file inside that folder called bar.php with the contents:

<?php echo "Hello, world!";

Give this file 0644 permissions. Go ahead and allow all files (including .php) for the folder foo. Click on Save & Close .htaccess.

Do you have a problem? If not, try accessing foo/bar.php from your browser. Do you see the hello world message?

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!

nicholas
Akeeba Staff
Manager

To clarify, the first paragraph in my reply does not imply that you did something wrong. I was just trying to say that since this is an issue nobody else had, I suspect that either something else was also changed, or the name of the folder is triggering a problem I have never seen. Not knowing what you tried to do to troubleshoot it, not having the folder name, and only having screenshots of what I would logically assume are the steps you took to enable this feature I have nothing to go on, hence the need to ask for more information. Upon re-reading what I wrote, I am not sure any of that was clear. Sorry. Not enough coffee.

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!

infini

Hi Nicholas,

Really appreciate your response. we went and tried the same thing in another project and noticed that the htaccess maker worked as expected.

and looking back at the htaccess of the one in question, seems quite long, and complicated. i used a diff tool to compare the new htacess with the broken, and found that the original file is 700 lines of rules/instructions, and the new htacess file written is about 200. 

sadly, not too sure what all the rules are actually doing. and how they got there, but figuring at the moment, nothing we can do for we are lacking time to look more into at the moment. but we found a workaround, and its working for the moment, we'll revisit later, so can close this ticket. 

appreciate your response and color :D

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!