Welcome Guest, Not a member yet? Register   Sign In
how to block app access without login
#1

(This post was last modified: 04-22-2022, 01:12 AM by Ahmed Haroon.)

is there a way to prevent users to access any url " except login and sign up "
as we can use App\Config\Filters.php as below (per my CI 4 course video till this question), it is a specific url to block and i can mention here in array multiples entries to block but is there a way to block all except above mentioned easy way (do not want to enter all one by one in the below list - if possible).
may be, my questions irritate but as metnioned i am very new to CI and my previous experience is not for a real web application development like CodeIgniter, so please, pardon me.


Code:
public $filters = [
        'login' => ['before' => ['/tasks(/*)?']]
    ];


regards
Reply


Messages In This Thread
how to block app access without login - by Ahmed Haroon - 04-22-2022, 01:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB