User Tools

Site Tools


trigger:Public_Web

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
trigger:Public_Web [2018/07/15 01:44]
JMichaelTX Rewrite using screenshots and sections
trigger:Public_Web [2018/07/16 22:49]
JMichaelTX [Public Web Trigger]
Line 4: Line 4:
  
  
-The *Public Web trigger* makes a trigger ​available without further authentication via the Keyboard Maestro web server, which _does_ require authentication to setup.  See [[trigger:​Web_Server|Set Setup and Use of Web Server]].+The *Public Web trigger* makes a macro available without further authentication via the Keyboard Maestro web server. ​ See [[trigger:​Web_Server|Set Setup and Use of Web Server]].
  
-Any macro with the [[Public Web]] trigger can be triggered by anyone without the username or password.+The _Public Web Trigger_ is one of several triggers that use a `URL`. ​ See\\ 
 +[Macro Triggers that Use a URL](https://​forum.keyboardmaestro.com/​t/​request-for-a-working-example-of-remote-trigger/​10844/​10?​u=jmichaeltx),​ 2018-07-15, peternlewis 
 + 
 +Any macro with the [[Public Web]] trigger can be triggered by anyone without the username or password,  
 +assuming the Keyboard Maestro web server is enabled, and assuming they can connect to your Mac  
 +(which is usually anyone on your local network, but depends entirely on how your network is configured).
  
 **Public Web Trigger on a Macro** **Public Web Trigger on a Macro**
Line 14: Line 19:
 **To Execute a Specific Macro** **To Execute a Specific Macro**
 ```html ```html
-http://127.0.0.1:<​Port>/​action.html?​macro=<​YourMacroUUID>&​value=<​TheTriggerValueToPass>​ +https://localhost:<​Port+1>/​action.html?​macro=<​YourMacroUUID>&​value=<​TheTriggerValueToPass>​ 
-(by default, the <​Port>​ is 4490)+or 
 +http://​localhost:<​Port>/​action.html?​macro=<​YourMacroUUID>&​value=<​TheTriggerValueToPass>​ 
 +(by default, the <​Port>​ is 4490, <​Port+1>​ is 4491)
 ``` ```
  
 ===== Security Caution ===== ===== Security Caution =====
  
-  * (!) 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 +  * (!) 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:   * So it should generally only be a safe macro, such as:
     * Restarting a service that is always supposed to be running, or      * Restarting a service that is always supposed to be running, or 
     * Launching iTunes or      * Launching iTunes or 
 +    * Reporting or alerting you to something.
     * Some other fairly innocuous activity.     * Some other fairly innocuous activity.
   * 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**.   * 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**.
trigger/Public_Web.txt · Last modified: 2018/07/16 22:49 by JMichaelTX