50% discount in conference replays
2020 and 2021 events
In English, French, German, Polish and Spanish

How to Restrict Firewalls to a Specific Host

Edit this page

Warning: You are browsing the documentation for Symfony 2.7, which is no longer maintained.

Read the updated version of this page for Symfony 6.0 (the current stable version).

How to Restrict Firewalls to a Specific Host

As of Symfony 2.5, more possibilities to restrict firewalls have been added. You can read everything about all the possibilities (including host) in "How to Restrict Firewalls to a Specific Request".

This work, including the code samples, is licensed under a Creative Commons BY-SA 3.0 license.