Welcome Guest, Not a member yet? Register   Sign In
Let's make auto routes disable
#15

(02-21-2022, 07:45 PM)kenjis Wrote: Auto routes are really dangerous. It could make vulnerabilities in your app very easily.
I strongly recommend you disable auto routes.

For example, see this tutorial:
https://www.binaryboxtuts.com/php-tutori...ntication/
If you build the tutorial app, an attacker could get list of users without token.

How to disable auto routes:
app/Config/Routes.php
PHP Code:
$routes->setAutoRoute(false); 
See https://codeigniter4.github.io/userguide...outes-only

Why? I really like using it.
Is it because of the JavaScript?
Reply


Messages In This Thread
Let's make auto routes disable - by kenjis - 02-21-2022, 07:45 PM
RE: Let's make auto routes disable - by iRedds - 02-21-2022, 09:54 PM
RE: Let's make auto routes disable - by kenjis - 02-21-2022, 10:42 PM
RE: Let's make auto routes disable - by InsiteFX - 02-22-2022, 02:06 AM
RE: Let's make auto routes disable - by iRedds - 02-22-2022, 02:11 AM
RE: Let's make auto routes disable - by luckmoshy - 02-22-2022, 05:26 AM
RE: Let's make auto routes disable - by kilishan - 02-22-2022, 07:25 AM
RE: Let's make auto routes disable - by kenjis - 02-22-2022, 04:25 PM
RE: Let's make auto routes disable - by kilishan - 02-22-2022, 09:43 PM
RE: Let's make auto routes disable - by seunex - 02-22-2022, 11:26 PM
RE: Let's make auto routes disable - by kenjis - 02-26-2022, 03:04 AM
RE: Let's make auto routes disable - by luckmoshy - 02-26-2022, 03:36 AM
RE: Let's make auto routes disable - by kenjis - 03-01-2022, 06:02 PM
RE: Let's make auto routes disable - by InsiteFX - 03-02-2022, 01:41 AM
RE: Let's make auto routes disable - by ChicagoPhil - 03-24-2022, 11:13 PM
RE: Let's make auto routes disable - by kenjis - 03-25-2022, 04:15 AM
RE: Let's make auto routes disable - by sneakyimp - 02-08-2023, 06:50 PM
RE: Let's make auto routes disable - by kenjis - 03-25-2022, 04:44 PM
RE: Let's make auto routes disable - by kenjis - 03-25-2022, 09:10 PM
RE: Let's make auto routes disable - by kenjis - 03-26-2022, 02:52 AM
RE: Let's make auto routes disable - by kenjis - 03-30-2022, 07:20 PM
RE: Let's make auto routes disable - by kenjis - 02-08-2023, 06:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB