У меня есть простое приложение Laravel, и у меня есть специальные разрешенные параметры GET для моего приложения:
Код: Выделить всё
$allowedGetParameters = [
'user',
'event',
'action'
]
Для пример возможных URL-адресов:
Код: Выделить всё
- https://app.com/?user=16
- https://app.com/?event=242&user=16
- https://app.com/?user=16&event=242&action=like
Код: Выделить всё
- https://app.com/?user=16&post=43&like=true
- https://app.com/?guru=242&set=superguru&action=true
If the URLs contain one or more unallowed GET parameters with or without allowed GET parameters in this case, the result should also be returned 404.
Источник: https://stackoverflow.com/questions/528 ... ock-others
Мобильная версия