@@ -726,7 +726,9 @@ Certain situations may arise when you may need to restrict access to a given
726
726
route based on IP. This is particularly relevant in the case of :ref: `Edge Side Includes<edge-side-includes> `
727
727
(ESI), for example, which utilize a route named "_internal". When
728
728
ESI is used, the _internal route is required by the gateway cache to enable
729
- different caching options for subsections within a given page.
729
+ different caching options for subsections within a given page. This route
730
+ comes with the ^/_internal prefix by default in the standard edition (assuming
731
+ you've uncommented those lines from the routing file).
730
732
731
733
Here is an example of how you might secure this route from outside access:
732
734
@@ -768,18 +770,18 @@ adding a new access_control entry:
768
770
security :
769
771
# ...
770
772
access_control :
771
- - { path: ^/_internal , roles: IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: https }
773
+ - { path: ^/cart/checkout , roles: IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: https }
772
774
773
775
.. code-block :: xml
774
776
775
777
<access-control >
776
- <rule path =" ^/_internal " role =" IS_AUTHENTICATED_ANONYMOUSLY" requires_channel: https />
778
+ <rule path =" ^/cart/checkout " role =" IS_AUTHENTICATED_ANONYMOUSLY" requires_channel: https />
777
779
</access-control >
778
780
779
781
.. code-block :: php
780
782
781
783
'access_control' => array(
782
- array('path' => '^/_internal ', 'role' => 'IS_AUTHENTICATED_ANONYMOUSLY', 'requires_channel' => 'https'),
784
+ array('path' => '^/cart/checkout ', 'role' => 'IS_AUTHENTICATED_ANONYMOUSLY', 'requires_channel' => 'https'),
783
785
),
784
786
785
787
.. _book-security-securing-controller :
0 commit comments