如何让我的网站链接执行? [英] How do I make the website execute links?

查看:139
本文介绍了如何让我的网站链接执行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做的是要执行环节,连接细节磁铁链接小网页。但webserveruserrole没有携带足够的魔力(权利,的Process.Start())来做到这一点。

I'm making a small webpage that is going to execute links, en specifics magnet links. But the webserveruserrole does not carry enough mojo (rights, Process.Start()) to make that happen.

我试图寻找这个用户的角色,但无法找到它。

I've tried to look for this user role but could not find it.

如何让我的网络服务器执行/启动磁铁:?XT 链接

How do I make the webserver execute/start magnet:?xt links?

推荐答案

如果开始从网页的过程是可能的,这将是病毒公路。

If starting a process from a webpage was possible, this would be a highway for viruses.

当然,我想你理解HTTP模式。网页实际上是在服务器上的服务器上执行时,所有的code运行。客户端浏览器只显示从一次HTTP请求/响应收到的HTML。

Of course, I assume you understand the http model. The webpage is actually executed on the server, all the code runs on the server. The client browser only display the html received from the one time http request/response.

您可以但是,正如你猜到了,创建自定义URL方案(yourapp:// yourquery)。该客户端必须注册一个应用程序来处理此类URL(这是磁铁链接是如何工作的)。

You can however, as you guessed, create custom url Scheme (yourapp://yourquery). The client side has to register an application to handle such urls (that's how the magnet links works).

MSDN页面的更多信息:注册到URL协议的应用

不过,我强调了微软说:

However, I emphasis what Microsoft says :

安全警告应用可以处理URL
  协议必须考虑如何以恶意数据作出反应。因为
  处理应用程序可以接收来自不受信任来源的数据,该网址
  并传递给应用程序的其他参数值可以含有
  试图利用处理应用程序恶意数据。

Security Alert Applications that handle URL protocols must consider how to respond to malicious data. Because handler applications can receive data from untrusted sources, the URL and other parameter values passed to the application may contain malicious data that attempts to exploit the handling application.

这可能会导致严重的问题,如果应用程序不知道如何处理恶意数据。

This can lead to serious problem if the application does not know how to handle malicious data.

这篇关于如何让我的网站链接执行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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