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 Google Cloud App Engine v1 API, which manages access control rules for applications.\u003c/p\u003e\n"],["\u003cp\u003eFirewall rules are prioritized and define actions based on matching IP ranges, and the processing stops at the first matching rule.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFirewall\u003c/code\u003e class has methods such as \u003ccode\u003eBindService\u003c/code\u003e, which allows for the definition of a service to be registered with a server or binded with a service binder.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the documentation provided is 2.4.0, however, this particular page is for the 2.2.0 version of the \u003ccode\u003eFirewall\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe Firewall class inherits from the \u003ccode\u003eobject\u003c/code\u003e class and has several inherited methods from it, 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"]]],[],null,[]]