# US 2016/0119371 A1 · Identifying bots

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2016/0119371 A1
- Document ID: US20160119371A1
- Status: Published application
- Kind: A1
- Application number: 14/987,823
- Filed: 2016-01-05
- Published: 2016-04-28
- Earliest claimed: 2009-06-10
- Assignees: Fireblade Ltd.
- Applicants: Fireblade Ltd.
- Inventors: Shay RAPAPORT; Erez AZARIA
- Web page: https://patentgrep.com/patent/US20160119371A1

## CPC

- H04L 63/1441: {Countermeasures against malicious traffic (countermeasures against attacks on cryptographic mechanisms H04L9/002)}
- G06F 21/552: {involving long-term monitoring or reporting}
- H04L 63/08: {for authentication of entities (cryptographic mechanisms or cryptographic arrangements for entity authentication H04L9/32)}
- H04L 63/126: {the source of the received data}
- H04L 63/1416: {Event detection, e.g. attack signature detection}
- H04L 63/168: {above the transport layer}
- H04L 67/025: for remote control or remote monitoring of applications
- H04W 12/06: Authentication
- H04L 2463/144: Detection or countermeasures against botnets
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)

## Abstract

A method of identifying if a web client has browser capabilities. An originating machine receives a web page request from the web client. The originating machine generates a page request id (PRID) and a script which, when executed by a web client with a browser, regenerates a PRID, and embeds the script in a response. The originating machine sends the response to the web client for the web client to process and, if the web client is capable, to execute the embedded script, thereby to regenerate a PRID, and to return the regenerated PRID to the originating machine. The originating machine compares the returned regenerated PRID with the generated PRID, a match indicating that the web client has browser capabilities.

## Claims

### Claim 1

A method of determining browser capabilities of a web client, comprising:
receiving, by an originating machine, a request for a web page from the web client;
generating, by the originating machine, responsive to receipt of the request:
a page request identification (PRID),
a response to the received request for a web page, said response including instructions that, when interpreted by a browser, cause the browser to generate at least one of a page object or a browser object, and
a script which, when executed by the browser, causes the browser to regenerate the PRID based on the at least one page object or browser object, and
embedding, by the originating machine, the generated script in the generated response;
sending, by the originating machine, the response, including the embedded script, to the web client for the web client to process by utilizing the browser;
automatically and independently executing, by the web client, the embedded script to regenerate the PRID based on the web client having browser capabilities, and returning the regenerated PRID to the originating machine;
comparing, by the originating machine, the returned regenerated PRID with the generated PRID to determine whether a match exists, the match indicating that the web client has the browser capabilities.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the PRID comprises a combination of numbers and/or characters.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the PRID is generated using a server-side code.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the PRID is generated using a web-server filter or a network appliance.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the embedded script comprises a sequence of functions or sub-scripts.

### Claim 6 (depends on 5)

The method according to claim 5, wherein a controller machine produces banks of functions or sub-scripts for the originating machine, and the controller machine updates the banks on the originating machine from time-to-time.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the embedded script comprises a portion of a document which can be interpreted by the browser and rendered into a document object model, and client side script which is used to query the document and the document object model and yield known characters or strings in return.

### Claim 8 (depends on 7)

The method according to claim 7, wherein the embedded script yields different PRIDs on different browsers, depending on the way the different browsers run scripts and render documents into the document object model, and in which the different PRIDs serve to further identify a browser type and version and validate the browser type and version against the HTTP headers, including User-Agent.

### Claim 9 (depends on 1)

The method according to claim 1, wherein the regenerated PRID is returned with the next page request or in a separate request designated for the purpose.

### Claim 10 (depends on 1)

The method according to claim 1, wherein the originating machine further comprises storage means for storing the generated PRIDs and an indication of the returned regenerated PRIDs.

### Claim 11 (depends on 1)

The method according to claim 1, wherein the originating machine further sends the generated PRIDs and the returned regenerated PRIDs to a controller machine which comprises storage means for storing the generated PRIDs and the returned regenerated PRIDs and computes matches and match ratios per corresponding IP address and session.

### Claim 12 (depends on 1)

The method according to claim 1, further comprising: determining that the web client is a suspected bot based on detecting at least one of a predetermined number and a predetermined ratio of PRIDs generated in response to page requests from the same IP address without the web client returning the regenerated PRIDs or with the web client returning only deformed PRIDs.

### Claim 13 (depends on 12)

The method according to claim 12, wherein the suspected bot or a chosen IP or session is set a challenge that must be satisfied before a requested web page is delivered.

### Claim 14 (depends on 13)

The method according to claim 13, wherein the challenge comprises:
generating, by the originating machine, a second PRID and a second script which, when executed by the web client with said browser, regenerates the second PRID and reproduces the previous page request;
embedding, by the originating machine, the second script in a second response;
sending, by the originating machine, the second response to the web client for the web client to process, utilizing the browser, and, based on determining that the web client has the browser capabilities, automatically executing the embedded second script, thereby to regenerate the second PRID and the previous page request, and to return the regenerated second PRID and the previous page request to the originating machine; and
comparing, by the originating machine, the returned regenerated second PRID with the generated second PRID and, in response to a match, sending the previously requested page.

### Claim 15 (depends on 13)

The method according to claim 13, wherein the challenge comprises additional functions to condition re-submission of the page request with the embedded PRID on further tests that ensure that the page is being viewed and displayed on a web browser and is not run in the background on an iFrame, a child window or a browser running as a background service.

### Claim 16 (depends on 12)

The method according to claim 12, wherein the page requests from the suspected bot are either blocked or restricted according to rules, optionally held on a rule engine.

### Claim 17 (depends on 1)

The method according to claim 1, wherein the originating machine comprises a web server or an intermediate entity in front to the web client side of the web server.

### Claim 18 (depends on 1)

The method according to claim 1, wherein a controller machine performs one or more at least a portion of the method.

### Claim 19 (depends on 7)

The method according to claim 7, wherein said portion of the document includes HTML tags.

### Claim 20

A system for determining browser capabilities of a web client, the system comprising an originating machine having a processor configured to perform instructions stored on a non-transitory computer readable medium, to implement at least the following tasks:
receive a request for a web page from the web client;
generate:
a page request identification (PRID),
a response to the request for a web page, said response including instructions that, when interpreted by a browser, cause the browser to generate at least one of a page object or a browser object, and
a script which, when executed by the browser, causes the browser to regenerate the PRID based on the at least one page object or browser object;
embed the generated script in the response;
send the response, including the embedded script, to the web client for the web client to process, utilizing the browser, and, based on the web client having the browser capabilities, to automatically and independently execute the embedded script, thereby to regenerate the PRID, and to return the regenerated PRID to the originating machine; and
compare the returned regenerated PRID with the generated PRID, to determine whether a match exists, the match indicating that the web client has the browser capabilities.
