简体   繁体   English

伪验证码,可从仅静态(html + javascript)页面下载vcard…如何?

[英]pseudo captcha to download a vcard from a static (html+javascript) only page…how?

i set up a simple personal page that shows some personal information of mine. 我建立了一个简单的个人页面,显示我的一些个人信息。 I included a vcard download. 我包括了vcard下载。 Now, the amount of spam I am getting has increased considerably. 现在,我收到的垃圾邮件数量已大大增加。
Its a simple page, static only, no php. 它是一个简单的页面,仅静态,没有php。
How can I "hide" the vcard for it to be downloaded only by human beings? 我如何“隐藏”电子名片以使其仅由人类下载? I suppose it would require the human to do something a spam harvester doesnt do. 我想这将要求人类做垃圾邮件收集器不做的事情。 Press a button maybe? 按下按钮? Also, how can I hide the path of the vcard from the html so that its not obviously in there. 另外,我该如何从html隐藏vcard的路径,以使其不明显存在于其中。
thanks, 谢谢,
-gk -gk
PS.- I am not a programmer, so please be gentle with the explanation :) . PS.-我不是程序员,所以请谨慎对待:)。 thanks! 谢谢!

If it's in your page, even if it is hidden, a bot can easily see your source code and grab your data. 如果它在您的页面中,即使它是隐藏的,机器人也可以轻松地查看您的源代码并获取您的数据。

The options are: 选项包括:

  • Use an image so it's not readily machine-readable (but this negates the value of a v-card). 使用图像,使其不易于机器读取(但这会否定v卡的值)。
  • Use Javascipt to load it based on user interaction. 使用Javascipt基于用户交互来加载它。 (as cusimar proposes) (如cusimar所建议)

也许打开vcard的javascript链接会有所帮助(我不知道vcard是什么,但我假设它是文件!)

<a href="http://www.myhomepagetothrowthebots.com" onclick="window.open(path/to/my/vcard.whatever); return false;">click here</a>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM