如何使用reCAPTCHA作为弹出窗口而不是web的一部分?

时间:2021-02-21 07:15:51

I made a webpage which can provide some direct downloads. Therefore I only want real human, not crawler, to download my files. I tried to use Google reCAPTCHA but it is part of the webpage - visitors can still use the download links and doesn't have to worry about the reCAPTCHA at all. Is there a way to mandate visitors to pass the verification first? For example, is it possible to pop up reCAPTCHA before the whole page is loaded? If that's doable, how can I do it? Thanks!

我制作了一个可以提供直接下载的网页。所以我只想要真正的人类,而不是爬虫,下载我的文件。我试着使用谷歌验证码,但它是网页的一部分——访问者仍然可以使用下载链接,而且根本不用担心重新验证码。是否有办法让访问者首先通过验证?例如,是否可以在加载整个页面之前弹出验证码?如果这是可行的,我怎么做呢?谢谢!

1 个解决方案

#1


1  

What I can recommend here is the captcha form be on the current page that you have and create a new page with the download links that's not indexable.

我在这里推荐的是captcha表单在当前页面上,并创建一个新的页面,下载链接是不可索引的。

Upon authorizing the captcha code, use header('Location: download.php'); or something similar to redirect the user.

在授权captcha代码时,使用header('Location: download.php');或者类似于重定向用户的东西。

A captcha before loading a webpage is possible, but it always uses client side code such as javascript which bots can easily bypass.

一个captcha在加载网页之前是可能的,但它总是使用客户端代码,比如javascript,机器人可以轻松绕过。

#1


1  

What I can recommend here is the captcha form be on the current page that you have and create a new page with the download links that's not indexable.

我在这里推荐的是captcha表单在当前页面上,并创建一个新的页面,下载链接是不可索引的。

Upon authorizing the captcha code, use header('Location: download.php'); or something similar to redirect the user.

在授权captcha代码时,使用header('Location: download.php');或者类似于重定向用户的东西。

A captcha before loading a webpage is possible, but it always uses client side code such as javascript which bots can easily bypass.

一个captcha在加载网页之前是可能的,但它总是使用客户端代码,比如javascript,机器人可以轻松绕过。