问题描述
有什么办法可以通过引用页面上的代码自动填写第 3 方网站上的文本框?
Is there any way to automatically fill in a textbox on a 3rd party website via code on the referring page?
我的情况是这样的:当用户点击我们在线电话目录中的寻呼机号码时,我被要求在第三方网站上自动填写该号码.他们没有 API.
My situation is thus: When a user clicks the pager number in our online phone directory, I've been asked to have that number filled automatically on the third party's site. They have no API.
当然,JavaScript 可以填充文本框,但我可以从引用的href"标签中以某种方式做到这一点吗?
Certainly JavaScript can fill in the Textbox, but can I somehow do that from the referring 'href' tag?
推荐答案
您实际上是在要求 跨站脚本 第三方网站上的漏洞.所以不,您不能填写第三方页面的表单,除非它们存在您可以滥用的漏洞,或者页面最初设计为使用来自 url 的参数填写表单.
You're essentially asking for a Cross site scripting vulnerability on the third party site. So no, you cannot fill the forms of third party pages unless they have a vulnerability that you can abuse, or if the page is originally designed to fill the form using parameters from the url.
这篇关于自动填充第 3 方文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!