Remix.run Logo
JonathonW 3 hours ago

You can trick the user into copying the same malicious link, but browsers have generally already implemented the same mitigation that is Microsoft's fix for this issue inside Notepad (specifically, prompting before opening outside applications after the user enters or clicks a URL that isn't one of the built-in schemes).

westurner 2 hours ago | parent [-]

It is also possible to use a different application as the http and file: url handler at the os level;

Write an app to display the (URL) argument passed and require the user to confirm or reject before running the browser using any of one or more default and configurable command line templates.

Add a "Install as default http, https, file:// uri handler" button in the settings gui. Prompt the user to install the app as default handler on first run.

Add opt-in optional debug logging of at least: {source_app_path:, url:, date_opened: } to a JSON lines log file