任何人都可以发布示例代码来运行来自浏览器的本地exe文件吗? [英] Can any one post the sample code for run the local exe file frombrowser?

查看:78
本文介绍了任何人都可以发布示例代码来运行来自浏览器的本地exe文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

i want to implement local file will open when open the url in browser please help me on this issue.





我尝试了什么:



i想要实现本地文件将在浏览器中打开url时打开请帮我解决这个问题。



What I have tried:

i want to implement local file will open when open the url in browser please help me on this issue.

推荐答案

你做不到。这是故意的,非常非常不可能改变。在某些系统上可能只有很短的时间,但所有浏览器都禁止ActiveX,因为它允许这样的事情!



想一想:如果你能从你的网站上做到这一点,还有谁能做到?你会通过访问一个安全的网站来获取什么勒索软件?



号码不会发生
You can't. That's deliberate and very, very unlikely to change. It was possible for a very short period on some systems, but ActiveX was effectively banned by all browsers simply because it allowed things like that!

Think about it for a moment: if you could do it from your site, who else could do it? What ransomware would you pick up just by visiting a "safe looking" site?

No. Not going to happen


假设你的意图不是恶意的,以合法方式实现这一目标的主要方式是通过自定义URI协议。



将应用程序注册到URI方案(Windows) Microsoft Docs [ ^ ]
Assuming your intentions are not malicious, the main way to accomplish this in a legitimate manner is via custom URI protocol.

Registering an Application to a URI Scheme (Windows) | Microsoft Docs[^]


Quote:

我想在浏览器中打开url时打开本地文件请帮我解决这个问题。

i want to implement local file will open when open the url in browser please help me on this issue.



按设计,你不能没有用户同意。这是一个安全功能。

要将文件加载到本地存储,您必须询问用户,并且您无法强制执行特定目标或执行,两者都是用户选择。

您想要的功能是任何恶意软件的梦想。


By design, you can't without user consent. It is a security feature.
To load a file to local storage, you have to ask the user, and you have no way to force a particular destination or execution, both are user choice.
The feature you want is a dream for any malware.


这篇关于任何人都可以发布示例代码来运行来自浏览器的本地exe文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆