0

Hi,

I have a web site.

On index.php I have a HTML link to admin/admincp.php

By simply adding a htaccess file to the directory 'admin', will the admin directory and it's contents be fully protected?

I only want it to be possible for me to access mysite.com/admin/admincp.php, because I am the administrator and will be adding records to a mysql database through a HTML form in it.

Edited by Carrots: n/a

3
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by Carrots
1

I don't really think so. Maybe, if you have it check if the person is an admin on every page, and if they aren't, use 'header' to redirect to another page, that would work. I don't think that htaccess makes a difference, but I might not be right.

Votes + Comments
Thanks man.
1

Why not You Chose the Login System in Your Site Admin Panel because this Make Your Admin Panel More Secure and Only You are Access Your admincp.php page not anyone.

Votes + Comments
Thanks man
0

Thanks for the responses.

From my understanding, as I long as I am located within the protected directory structure, and I use an SSL connection for remote login, I am good to go.

I will not be adding any code for cookies or sessions. I don't know if .htaccess creates any, but I don't plan to.

Edited by Carrots: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.