You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ip_prefixes = include 'google_ip_prefix_diff.php';
63
+
64
+
foreach ($ip_prefixes as $cidr) {
65
+
echo$cidr. PHP_EOL;
66
+
}
67
+
68
+
## Important Note: Avoid Direct Inclusion in Executed Scripts
69
+
70
+
This script downloads large JSON files and processes the differences in IP ranges, which can be **time-consuming and resource-intensive**. For this reason:
71
+
72
+
- **Do not include the script directly**in frequently executed scripts or APIs.
73
+
- Implement a **local caching mechanism** to store the resulting CIDR ranges for repeated use.
74
+
75
+
### Suggested Basic Caching Logic
76
+
77
+
1. Run the script periodically (e.g., hourly) to generate the CIDR ranges:
0 commit comments