• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to hide Login url?

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?

I wouldn't put a link at all. Let the single user memorize it.

memorize what?
I didn't get it, sorry

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.

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.

tnx !!!

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.