Welcome Guest, Not a member yet? Register   Sign In
How to hide Login url?
#1

[eluser]Horvat[/eluser]
What is the best way in CI to hide login link?
In small app, there is only one admin and I'm trying to find out what is the best way to hide login for anybody but admin? Any ideas?
#2

[eluser]Aken[/eluser]
I wouldn't put a link at all. Let the single user memorize it.
#3

[eluser]Horvat[/eluser]
memorize what?
I didn't get it, sorry
#4

[eluser]jprateragg[/eluser]
Since I don't know how you display links (database-driven menu, hard coded into HTML, etc.), there are a number of ways to hide it. If you're simply trying to hide the login controller/method, you could always rename it to something random (like http://www.domain.com/login/asd23e2a; http://www.domain.com/asd2/add2tiso). Or you could pass another parameter in the URI and check for that parameter in your method (http://www.domain.com/login/index/093ur0fpje02). But these aren't really good ways to prevent this. You need to use a login/authentication system to check username/password/etc. and create a "logged in" session.
#5

[eluser]boltsabre[/eluser]
On top of the above mentioned, if it is just one user and they are only going to access it from a selected number of machines, you could also put a .htaccess IP address whitelist in place for the "admin" controllers so that everyone else cannot even navigate to that page/s even if they happen to know what the url is.
#6

[eluser]Horvat[/eluser]
tnx !!!




Theme © iAndrew 2016 - Forum software by © MyBB