Some testing platforms like Watir actually perform mouse and keyboard actions instead of just HTTP requests (so any bot-prevention methods you do in Javascript could be avoided). This means it is basically impossible to differentiate between a bot and a human. Things like Captcha rely on bots being unable to correctly identify a word or words in an image, but even this can be broken some of the time with OCR.
Basically there are many measures you can put in place to discourage bots, but it's pretty much impossible to stop them if they are diligent.
然后使用任何语言向 site.com/submit.php 发送 POST 请求。一般用数据“url=xxx&name=xxx”。
基于标签,尽管你不太可能使用 JS 或 HTML 来做到这一点。
You don't particular need to always download the source. You can do it manually to find out the form fields, then build something (almost anything, Python script for example) that submits.
发布评论
评论(3)
一些测试平台(例如 Watir)实际上执行鼠标和键盘操作,而不仅仅是 HTTP 请求(因此您在可以避免使用 JavaScript)。这意味着基本上不可能区分机器人和人类。像验证码这样的东西依赖于机器人无法正确识别图像中的一个或多个单词,但即使这样有时也可以通过 OCR。
基本上,您可以采取许多措施来阻止机器人,但如果它们勤奋的话,几乎不可能阻止它们。
Some testing platforms like Watir actually perform mouse and keyboard actions instead of just HTTP requests (so any bot-prevention methods you do in Javascript could be avoided). This means it is basically impossible to differentiate between a bot and a human. Things like Captcha rely on bots being unable to correctly identify a word or words in an image, but even this can be broken some of the time with OCR.
Basically there are many measures you can put in place to discourage bots, but it's pretty much impossible to stop them if they are diligent.
您并不特别需要总是下载源代码。您可以手动查找表单字段,然后构建提交的内容(几乎任何内容,例如 Python 脚本)。
然后使用任何语言向 site.com/submit.php 发送 POST 请求。一般用数据“url=xxx&name=xxx”。
基于标签,尽管你不太可能使用 JS 或 HTML 来做到这一点。
You don't particular need to always download the source. You can do it manually to find out the form fields, then build something (almost anything, Python script for example) that submits.
Then use whatever language to send a POST request to site.com/submit.php. Generally with the data "url=xxx&name=xxx".
Based on the tags though its unlikely you can do it with JS or HTML.
看一下脚本语言的有状态浏览器。 Python 有一个名为
mechanize
的模块Take a look at stateful browsers for scripting languages. Python has this module called
mechanize