I would like to make sure I have done things right and specifically I don't create any security hole to my own J! installation.
Situation:
I have a php script that updates the .htaccess file of my installation.
This php script is in a folder in the root.
The folder permission is 755 and the php file permission is 644. Also the .htaccess file is 644.
Initially, I could not execute the php for example directly in the browser, like
mywebsite.com/scriptfolder/script.php because I was getting a 403 forbidden by AdminTools.
So I added the /scriptfolder/script.php into the AdminTool's .htaccess editor, under "EXCEPIONS - Allow direct access to this files".
Now I can run the script (no more 403 error) but is it the correct procedure ? Maybe I'm allowing now malicious people to modify the file and inject modifications into my .htaccess ?
What would be the correct way to proceed, to execute such file with maintaining the right level of security ?
Many thanks.
Regards Andrea.
https://www.elementotango.it