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\u003eThe Firewall class in the App Engine v1 API allows defining access control rules for an application, using an ordered sequence of rules based on IP ranges and actions.\u003c/p\u003e\n"],["\u003cp\u003eRequests are evaluated against Firewall rules in priority order, and processing stops at the first matching rule, with a final rule handling all remaining IP addresses.\u003c/p\u003e\n"],["\u003cp\u003eVersion 2.4.0 is the latest version available in this documentation, while version 2.1.0 is the context in which this documentation is displayed, and older versions, down to 1.0.0, are available.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFirewall\u003c/code\u003e class inherits from \u003ccode\u003eObject\u003c/code\u003e, and includes methods like \u003ccode\u003eBindService\u003c/code\u003e to create or customize service definitions.\u003c/p\u003e\n"],["\u003cp\u003eThe namespace of this class is \u003ccode\u003eGoogle.Cloud.AppEngine.V1\u003c/code\u003e and is found within the \u003ccode\u003eGoogle.Cloud.AppEngine.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,[]]