User Tools

Site Tools


trigger:Public_Web

**This is an old revision of the document!**

The Public Web trigger makes a trigger available without authentication via the Keyboard Maestro web server.

KeyboardMaestro has an built-in web server. You can enable it in the Keyboard Maestro Web Server preferences. If enabled, and if you configure a username and password, you can connect to your KeyboardMaestro’s web server and login and then execute any macro you have defined. Also, if the web server is enabled, and if you have configured any macro with a Public Web trigger, then anyone on the Internet can connect to your Mac and trigger Public_Web macros.

Note that this means anyone with Internet access to your Mac (which could be anyone, although it does depend on firewalls and NAT settings) can potentially trigger this macro so it should generally only be a safe macro such as restarting a service that is always supposed to be running, or launching iTunes or some other fairly innocuous activity.

As with all triggers, macros are only available if they are currently active, that is if they are enabled and in a Macro Group that is enabled and active.

For example, if you are running some sort of process on your Mac that occasionally fails, you could write a script to restart it and make it available as a Public_Web triggered Macro, which you (or anyone else) could then execute to restart the process.

Clearly there are some serious security issues with this, so you should use a lot of caution when you allow any macro to be executed with a Public Web trigger.

See Also

Triggers

trigger/Public_Web.1504575340.txt.gz · Last modified: 2017/09/04 21:35 by peternlewis