Support

Admin Tools

#33020 Allowing wget only on specific pages?

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 on Wednesday, 10 June 2020 17:17 CDT

jorlan
Hi,

On one our our sites we need to run a 'wget' cron job. By default, AdminTools is blocking 'wget' and I understand that this is better for our safety, yet sometimes it could be handy to use it.

Now I know that I can allow wget by removing it from the Agents to Block list, but it seems to me that will enable it globally for the site. Wouldn't it be possible to allow it for specific urls only?

Kind regards

tampe125
Akeeba Staff
Hello,

how do you trigger the WGET command?
If you can modify the command before launching it, you can replace default WGET User Agent (which is blocked) with something else (anything, actually) and it will work.

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!

jorlan
Hello Davide,

Thanks for your reply. Do you mean replacing wget with somthing like curl, as in this example?

https://serverfault.com/questions/299287/how-do-i-use-curl-in-a-cron-job


Kind regards

tampe125
Akeeba Staff
No, most likely you're using wget in this way:

wget www.example.com/somepage


replace it with

wget --user-agent="Mozilla Firefox" www.example.com/somepage


In this way Admin Tools won't block your request.

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!

jorlan
I see, I had no idea that this would work.

I'll give it a try,

Thank you!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

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!