How to Execute a Script from a Browser? [Closed]

I've abash script on my machine and my client needs to use this script through remote connections. I don't want them to access my source code so I have to give them a tool i.e a html page through which they can only execute my script without being able to view or modify the script.

How can I do that?

6

Not by default from a browser unless you can find and exploit a bug that lets you. Browsers are sandboxed to prevent executing code on the system itself.

What you would need to execute a script from a browser:

  • Apache. There is a package called lampserver that installs a working webserver with apache, mysql, and support for using php, perl, python.
  • A coding language supported by your browser to create something clickable (javascript, php, etc) in the browser.
  • Software on the server to act on that clickable something and execute that script you want to start.
Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest