Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 567ba19

Browse filesBrowse files
committed
Merge pull request #3259 from symfony/security-access-control
Security access_control reword
2 parents 9d6e1b5 + 287bfe4 commit 567ba19
Copy full SHA for 567ba19

File tree

Expand file treeCollapse file tree

1 file changed

+13
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+13
-3
lines changed

‎book/security.rst

Copy file name to clipboardExpand all lines: book/security.rst
+13-3Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -893,6 +893,14 @@ prevent any direct access to these resources from a web browser (by guessing the
893893
ESI URL pattern), the ESI route **must** be secured to be only visible from
894894
the trusted reverse proxy cache.
895895

896+
.. caution::
897+
898+
As you'll read in the explanation below the example, the ``ip`` option
899+
does not restrict to a specific IP address. Instead, using the ``ip``
900+
key means that the ``access_control`` entry will only match this IP address,
901+
and users accessing it from a different IP address will continue down
902+
the ``acces_control`` list.
903+
896904
Here is an example of how you might secure all ESI routes that start with a
897905
given prefix, ``/esi``, from outside access:
898906

@@ -951,11 +959,13 @@ Now, if the same request comes from ``127.0.0.1``:
951959

952960
.. _book-security-securing-channel:
953961

954-
Securing by Channel
955-
~~~~~~~~~~~~~~~~~~~
962+
Forcing a Channel (http, https)
963+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
956964

957965
You can also require a user to access a URL via SSL; just use the
958-
``requires_channel`` argument in any ``access_control`` entries:
966+
``requires_channel`` argument in any ``access_control`` entries. If this
967+
``access_control`` is matched and the request is using the ``http`` channel,
968+
the user will be redirected to ``https``:
959969

960970
.. configuration-block::
961971

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.