Restricting access to directories by IP from the panel

Initial data.
There are many accounts with different sites (>100). Let’s assume that they are all on WordPress. Every site has a /wp-admin or /admin directory.
How can I block access to all */wp-admin or */admin directories from the Hestia panel for all IPs except those specified?
Go into each and edit .htaccess for a long time. Also, there is no way to do it from the panel, except for the FM manager.
Is it possible to do from the panel? Maybe by installing some package on Ubuntu/Debian?

I am close to finishing a solution like this:

You can have an Nginx geo map with the allowed addresses and a custom nginx template.

Nginx will deny the connection unless it is from the list.

You can have one geo with all clients together or a variable for each client.