Support

Admin Tools

#26656 Htaccess Maker Question - Is pycurl related or can block cURL on a server?

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, 04 January 2017 17:17 CST

Chacapamac
This is an Htaccess Maker Question -
Is the blocked Agent “pycurl” related or can block cURL on a server?

I want to use cURL for sending Newsletters (With Acymailing) as you seem to see the function “wget” a security problem.

nicholas
Akeeba Staff
Manager
PyCURL is the Python language bindings for the cURL library. Blocking it will block all applications written in Python which use PyCURL to access external sites (so, in practice, all applications written in Python). You will definitely make some people unhappy but you will NOT block your own use of cURL, e.g. in the CRON jobs you use to trigger AcyMailing's email sending.

FWIW cURL allows you to change the reported user agent string in the command line. Please read this related article for more information. This means that you can change your CRON jobs to use a different user agent. For example, if you'd pass the parameter
-A "MyWebsiteCRONJobForEmailSending"

you can be quite sure that the user agent filtering will NOT block it: it's very unique and it's not blacklisted ;)

On another note, I do not consider WGet per se to be security issues. What I have observed is that a lot of script kiddies and wannabe hackers use plain vanilla wget to launch simplistic attacks. They don't understand that their simplistic attacks won't work and they are too inexperienced to even realize just how trivial it is to change the user agent string. They are simply annoying and waste server resources. That's how the default user agent string for WGet ended up on that list. WGet is a great tool, being abused by script kiddies.

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!

Chacapamac
Thanks Nicholas for your answer and all the details, really appreciated.
Solved.

nicholas
Akeeba Staff
Manager
You're welcome, Patrick! Always a pleasure being able to help :)

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!

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!