This application relates to a method,
system, and
computer device for preventing
web scraping. The method includes: when a
client sends an access request to a target website, determining whether the target website has configured anti-scraping measures based on preset anti-scraping information; if the target website has configured anti-scraping measures, injecting an SDK into the access response, generating a first access response, and returning the first access response to the
client; the access response is generated by the target website based on the access request; the
client asynchronously submits its runtime information to a human-
machine interface
verification unit based on the first access response; when the client sends an access request to a
subpage of the target website, determining whether the interface corresponding to the
subpage is a protected interface; if the interface corresponding to the
subpage is a protected interface, the human-
machine interface
verification unit performs human-
machine interface
verification based on the client's runtime information; if the human-
machine interface verification result is successful, an access request is sent to the subpage. This method can prevent the target website from being accessed by malicious programs.