Support

Admin Tools

#40209 waf allowed_domains rules with CLI

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.2
PHP version
8.2.15
Admin Tools version
7.4.3

Latest post by toonetcreation on Monday, 29 January 2024 06:14 CST

toonetcreation

Hi,

When I try this command :

/opt/alt/php80/usr/bin/php /home/www/cli/joomla.php admintools:waf:set --key=allowed_domains --value="my-website.com" --add

I get the success message : https://i.imgur.com/bqAAkGH.png

But nothing added : https://i.imgur.com/OFvfQrs.png and https://i.imgur.com/PhNAcLb.png

Any idea why?

I did a mistake?

THanks

L.

tampe125
Akeeba Staff

Hello,

thank you for the report, please note that when you want to add a new value to a set of possible values, the correct syntax is the following:

/opt/alt/php80/usr/bin/php /home/www/cli/joomla.php admintools:waf:set --key=allowed_domains --add="my-website.com"

Please give it a try, it should be working fine

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

toonetcreation

works fine many thanks.

L.

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!