If wallets use the API port and therefore access to certain functions needs to be restricted, how can a script of mine use the full API without those restrictions?
For example https://iotasupport.com/startup-flags_fr.shtml claims that
It is essential to disable some API calls (to close attack vectors and prevent misuse): getNeighbors, removeNeighbors, addNeighbors, attachTotangle, interruptAttachingToTangle.
So how can then a script of mine connect to it to use those methods, for example to add or remove neighbors.