Proxy Server Script Rewriting for Zero-Rated Data Leakage

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Affordable Internet access remains a challenge in developing regions, with consumers facing difficulties in accessing the Internet using mobile devices due to limited affordability, and existing solutions do not effectively prevent paid data leakage when accessing non-zero-rated content.

Innovation Solution

A proxy server system that rewrites scripts of web pages to direct requests through the proxy server, ensuring that all Internet access, including zero-rated and non-zero-rated content, is managed efficiently, thereby preventing paid data leakage by intercepting requests for non-zero-rated content.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of operation

If users access zero-rated content through a proxy server, then affordability of Internet access is improved, but paid data leakage may occur when scripts generate direct requests to non-zero-rated content

Engineering Contradiction:
Improveaffordability of Internet accessVSAvoidpaid data leakage
Core Design Contradiction:
Ease of operationVSObject-affected harmful factors

Solution Approach 1:

The proxy server performs preliminary rewriting of JavaScript scripts before they are executed by the user's browser. The rewriting process pre-modifies script code to replace direct URL references with proxy server addresses, ensuring that all subsequent requests (including those generated dynamically by scripts) are routed through the proxy server. This preliminary action prevents paid data leakage before it can occur.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The proxy server acts as an intermediary between the user's browser and the Internet. By rewriting scripts to route all requests through the proxy server, it mediates between zero-rated and non-zero-rated content access. The proxy server can identify and block requests to non-zero-rated content, preventing paid data leakage while maintaining access to zero-rated content.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Productivity

If the proxy server rewrites all scripts to route through the proxy, then control over data traffic is improved, but device complexity increases

Engineering Contradiction:
Improvecontrol over data trafficVSAvoidproxy server complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The proxy server changes the parameters of script code by rewriting URLs and request endpoints. Instead of implementing complex traffic analysis and interception mechanisms, the solution transforms the script parameters themselves to point to the proxy server. This parameter change approach simplifies the overall system architecture while maintaining effective traffic control.

Inventive Principle:
Principle #35Parameter changes

3Object-affected harmful factors

If scripts are processed to redirect requests through the proxy server, then prevention of paid data leakage is improved, but processing time increases

Engineering Contradiction:
Improvepaid data leakage preventionVSAvoidscript processing time
Core Design Contradiction:
Object-affected harmful factorsVSLoss of time

Solution Approach 1:

The proxy server performs script rewriting as a preliminary action before the user's browser executes the scripts. By preprocessing the scripts and embedding the proxy server address directly into the code, the system eliminates the need for real-time interception and redirection of each individual request. This preliminary processing reduces overall latency while maintaining effective traffic control.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS10574771B2Methods and systems for rewriting scripts to redirect web requests
Publication Date: 2020.02.25 META PLATFORMS INC
  • US10574771B2 patent drawing
  • US10574771B2 patent drawing
  • US10574771B2 patent drawing

AI summary

A method is performed at a proxy server having one or more processors and memory. The memory stores instructions configured for execution by the one or more processors. The proxy server is coupled to one or more web servers and a user device. The proxy server receives, from the user device, a request for a web page provided by a first web server. The proxy server receives the web page, in response to the request, from the first web server. The web page includes a script. The proxy server scans the script to identify one or more URLs that specify requests directed to servers other than the proxy server. For each of the one or more URLs, the proxy server rewrites the script to redirect requests for the respective URL through the proxy server. The proxy server then sends the web page, including the rewritten script, to the user device.