cPanel & WHM Version 94 has been released, and brings a slew of great updates. Take a look at what is included, and then upgrade today!

Expand the API to provide a function to toggle a domain's "userdirprotect" preference.

cPTrevor shared this idea 5 years ago
Open Discussion

At the moment, WHM API 1 provides a function to check a variety of userdata settings from the command line that's pretty useful ( https://documentation.cpanel.net/display/SDK/WHM+API+1+Functions+-+domainuserdata )

However, each of the individual settings must be changed in their own various ways, and there's not one modify-domainuserdata API function to complement this one.

While a generalized function would be useful (and can hopefully be considered in time!), we recently wanted to update the "userdirprotect" value from the API so users could have only temporary access to those links, but found it requires modifying the files manually, rebuilding Apache's configuration, and restarting the service to take effect: https://forums.cpanel.net/threads/add-mod_userdir-exception-via-api-howto.212692/

Please consider expanding the API to enable a cPanel provided way to modify our userdirprotect settings.

Leave a Comment
 
Attach a file