Welcome Guest, Not a member yet? Register   Sign In
Restricting /assets to non logged in users
#2

You need to move them and make a PHP-reader class, that you point your <img> tags to.

So all users visits e.g /assets/myimage.jpg will actually visit an Controller named Assets that will look for myimage.jpg inside your hidden folder, check if they are logged in and display it, by reading the entire image into memory and setting jpeg headers.
Reply


Messages In This Thread
RE: Restricting /assets to non logged in users - by jreklund - 08-29-2020, 12:18 PM



Theme © iAndrew 2016 - Forum software by © MyBB