Hello, is there a way that actual admin directory is not viewable to visitors. Like if they visit http://mysite.com/admin they will get 404 error. I cannot rename admin directory because php is coded for only named "admin" folder, if i wish to rename admin folder it will make a big list of php errors. And secondly, if i can visit admin folder with a new name to get into admin panel. Thanks.
Hmmm... Try making your own 404 Page Does not Exist error page for the site and upload it as whatever you want. Then, for the admin panel, if they user level <2, then they get redirected to your error page. If it is =>2, then allow them to view the page.
use 'Password Protect Directories' of cpanel. 1. select the folder 2. create a user with strong password 3. check 'Directory requires a password to access via the web (you must check this to activate password protection)' 4. enter Protected Resource Name, eg admin panel, restricted area.... 5. click save
I personally think that BMXRider09's idea is better than password protecting the directory. Password protecting can easily be cracked or hacked but when the person gets an 404 error message, they will most likely think that they have visited the wrong page for admin.
Thank you guys, i can password protect the directories. But i don't want to show any one that my "admin" directory exists. Is there a way i can do that?
simply rename index file to something else like home.php and put a dummy index file pointing 404 - page not found