Reference documentation and code samples for the App Engine v1 API class Firewall.
Firewall resources are used to define a collection of access control rules
for an Application. Each rule is defined with a position which specifies
the rule's order in the sequence of rules, an IP range to be matched against
requests, and an action to take upon matching requests.
Every request is evaluated against the Firewall rules in priority order.
Processesing stops at the first rule which matches the request's IP address.
A final rule always specifies an action that applies to all remaining
IP addresses. The default final rule for a newly-created application will be
set to "allow" if not otherwise specified by the user.
public static void BindService(ServiceBinderBase serviceBinder, Firewall.FirewallBase serviceImpl)
Register service method with a service binder with or without implementation. Useful when customizing the service binding logic.
Note: this method is part of an experimental API that can change or be removed without any prior notice.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis documentation page covers the \u003ccode\u003eFirewall\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.AppEngine.V1\u003c/code\u003e namespace, detailing its use in defining access control rules for applications.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFirewall\u003c/code\u003e class evaluates requests against a prioritized list of rules, stopping at the first matching IP address and includes a final rule to manage remaining IP addresses.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBindService\u003c/code\u003e method is a core function provided by the \u003ccode\u003eFirewall\u003c/code\u003e class, which is utilized to create service definitions or register service methods with a service binder.\u003c/p\u003e\n"],["\u003cp\u003eThe class is inheriting from the \u003ccode\u003eobject\u003c/code\u003e class, and therefore can use \u003ccode\u003eobject\u003c/code\u003e methods such as \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eGetType()\u003c/code\u003e, \u003ccode\u003eMemberwiseClone()\u003c/code\u003e and \u003ccode\u003eToString()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe available versions for this \u003ccode\u003eFirewall\u003c/code\u003e documentation range from \u003ccode\u003e1.0.0\u003c/code\u003e to \u003ccode\u003e2.4.0\u003c/code\u003e, with the latter being the latest.\u003c/p\u003e\n"]]],[],null,[]]