PMDStyles
Advertisement

PMDStyles RegistrationPMDStyles Recommends DreamHost
Securing your Administrator Directory PDF Print E-mail

Securing your administrator CP directory using .htaccess files


To protect your admin panel a bit more against hacking attempts, you can protect your admin CP directory using htaccess files. There are a few options available: restrict access by ip address and password protection.

1. Restrict access by IP Address

If you are in the possession of a static IP Address it might be a wise idea to only allow access to the phpMyDirectory admin panel from that address. This can be easily done in the following way. Create an empty .htaccess file in your admin CP directory. Put the following in it:
Change 10.0.0.150 in your static internet ip address. You can also use partial IP Addresses: 10.0.0
When you visit the admin panel from any other address than the one in here, you will see a 403 Forbidden error.
You can add multiple address by separating them by comma's: 10.0.0.150,10.0.0.151

2. Password protection

You can also create an extra barrier by adding password protection to your admin CP directory. Some admin panels like webmin and cpanel support the creation of password protected directories through their admin panel. For others, these are the steps to follow:

Create an empty file .htaccess in your phpMyDirectory admin CP directory. Put the following in it:
Modify the /full/path/to/phpMyDirectory to match where your site is.

Then create an empty file .htpasswd in the same directory. You will have to enter the user name and encrypted password in that file.
An easy tool to create this line is: http://www.flash.net/cgi-bin/pw.pl and Enter the user name & password and click encrypt.

On the next page you will see the user name and password that will have to be put in the .htpasswd file:
Copy and past that line in your .htpasswd file and things should work. To add another user, encrypt the user name and password and put them on the line below the first one.

Monday, 10 September 2007
 

Latest Templates

You are expecting a bright, simple but straightforward style for your business directory? Then ProNet is the right template for you. The ProNet template offers a professional, yet stylish, design that is perfect for business oriented directories. The ProNet template was created to provide a beautiful clean design that focused on Typography and Accessibility. Together with this, PMDStyles have desi...
Corporate Business type websites are interestingly popular, however not usually because of their design. Business websites have a stereotype to be simple without any fancy features. The same concept has been used for our latest phpMyDirectory template. The template VIVA was created to provide a beautiful design focused on elegance, variety and typography. It makes a great basis for any site that ...
We look out for our customers requests, and we heard many members interested in a artistic template. PMDStyles presents an artistic yet professional template 'Frescos'. Frescos helps us to see how beautiful a phpMyDirectory template can be. Frescos features a fresh, stylish new look and also a CSS based template that uses minimal tables to control the layout, this allows for increased perform...
Are you looking for a good template for your personal directory or a business directory? Our new template Nova has been released. The design team keep it came in a simple and clean way, simple to use and simple to customize. The boring phpMyDirectory traditional homepage has been completely replaced by neat and eye-catching CSS based layout. Nova is a very clean design that really shows off th...
PMDStyles unleashes the next powerful Web 2.0 template: Neon! Neon comes packed with a lot of new eye-catching features. This exciting new template features a clean and simple design and plenty of PMDStyles horsepower under the hood. Maximum flexibility and a plethora of typography and module variations give this subtle design the power needed to make any content look amazing. Neon is has bee...
The much awaited "Edge" is now ready for its debut. You will find "Edge" to be sleek, highly appealing and on the cutting "Edge" of technology. Due to some technical issues in the text color changer, we had to abandon this feature at this time so as to get this outstanding template off and running. We will keep working on the issues for the color changer and perhaps release it in the next templa...

Client Login

Forgot Password? | Signup Now!