March 10 2010 23:32:39
Navigation
Last Seen Users
Lordx< 5 mins
yanokage< 5 mins
Wenon< 5 mins
spooninear< 5 mins
maha515200:06:12
madness54600:06:24
Kobe00:09:22
scathing00:09:42
chris9000:09:43
BULIT00:10:37

Members: 13,474
Newest: BULIT
Blogs
Diemux
» 18-09-2009 - Say ...
Diemux
» 10-07-2009 - Will...
Diemux
» 24-06-2009 - Blog...
elyn
» Elyn + Streamyx (...
Diemux
» 19-05-2009 - Thin...
Diemux
» 15-05-2009 - Week...
Diemux
» 13-05-2009 - Comp...
elyn
» Number 1925
Diemux
» Number One
Things to Do
Latest Articles
Protect your Fusion ...
Change your database...
Handling MySQL Datab...
Admin Control Panel ...
How to Secure Your I...
Show Content by Defa...
v7 | Add social book...
v7 | Custom MySQL er...
How To: A PM after r...
v7 | SEO friendly UR...
v7 | SEO friendly UR...
Comments Advanced Vi...
Auto-redirect to the...
A tour through PHP-F...
Upgrading to PHP-Fus...

View all articles
Downloads v7
Currently popular Downloads

FusionBoard 4 3155
Video Gallery 2266
Professional Down... 2230
Photoalbum Mass U... 2051
Avatar Studio 1993
Extended Profile 1687
VArcade 2.1 1581
HighSlide Gallery... 1554
XHTML mod for mod... 1441
Button panel 1439

Latest Downloads


User Info [Remade] 260
BBcode: AVI 3
Pimped PHP-Fusion 2
XHTML mod for modern... 1441
Banner Rotater 861
Who's Where Panel 729
VU Tab Panel 379
Viewlog Script 184
Usergroup Management 650
Unauthenicated User 183

Latest 100
Downloads v6
Currently popular Downloads

Banner System v2.0.4 1411
Video Gallery 1063
Extreme Theme Editor 813
Fuzed Shoutbox 703
Seoname.php 664
Icon Package 2.0 651
Extended Profile ... 610
EXTboard 542
News.php 540
Tabbed welcome panel 488

Latest Downloads


Google Sitemap Fast 3
ExtBoard 1.2 366
EXTboard 542
v6.01.18 - v6.01.19 20
v6.01.19 FULL 54
Birthday 88
Moneybookers 32
User info 74
Link to us 244
jNews.php 312

Latest 100
Provider
PHPfusion-mods.net is hosted at:

110MB
Admin Control Panel Protection

As you already know the admin panel can easily be accessed with an admin or super admin account. Admin and super admin accounts are one of many hacker targets.

I'm going to show you how to add easy but effective protection to your admin control panel using htacess and htpasswd. The nice thing about using htaccess and htpasswd is there are no back doors to retrieving username and passwords unlike php and js.



First create a .htaccess file. Also create a .htpasswd file which we will use later on. Make sure you put both of those files into the administration directory.

Add the following code to the .htaccess file...

AuthName "Admin Control Panel"
AuthType Basic
AuthUserFile /full/path/to/.htpasswd
Require valid-user

NOTE: Change the "/full/path/to/.htpasswd"
to the full path on your server where your .htpasswd file is located. If you do not know the full path contact your web host.

Next open the .htpasswd file that we created earlier (nothing in front of the dot). This file will contain the usernames and passwords for accessing the admin control panel.


Add the following code to the htpasswd file...

username:password

Change the username and password to the ones you desire to use. (do not use the same account info that your admin account has otherwise this tutorial is useless)

* Note: do not put your password in regular form, encrypt it at htaccesstools.com !

Simply add that code on a new line to add another username and password possibility.

Also don't forget to add the following code to the .htaccess file which will protect the htaccess file and htpasswd file itself.

<Files ".htaccess">
order allow,deny
deny from all
</Files>

<Files ".htpasswd">
order allow,deny
deny from all
</Files>

Congratulations you've just added more security to your admin panel. You will only need to login once when the pop up comes up when accessing the acp per browser session.

You will not regret doing this especially if your account is ever hacked, the hacker will only do minor damage like delete forum posts and etc. Remember the admin control panel is like the brain that operates and controls the content of the site, so lets keep its security protection high.

Besides this small security addon it's highly recommended to backup your site every x weeks. Whenever your websites gets more active make backups more frequent, this to prevent data loss!

Written by Brandon, a thanks to webadmin88 for extra information.

Comments
#1webadmin88 on October 18 2008 23:33:42
webadmin88
I have to disagree with this tutorial. When inserting the line in the .htpasswd file YOU SHOULD NOT use usernamePuh.assword, but ENCRYPTED password instead. The logic behind this encryption is hard so just use this method here:

http://www.htacce...generator/

Regards
#2snowneo on October 23 2008 11:08:25
snowneo
Very well written and informative.

Thanks!
#3Stic on July 11 2009 23:00:02
Stic
BIG thanks for guide
#4Stic on July 12 2009 00:02:48
Stic
You can allow known IPs to access the administration directory. Here is how I do it with .htaccess in administration folder:

Order Deny,Allow
Deny from all
allow from YOU IP

Just change YOU IP to your IP. You can find your IP here >> http://www.myip.x..., You can ofcourse add another "allow line" to above code, if you want to use the admin from multiple computers. Smile
Post Comment
Please Login to Post a Comment.
Ratings
Rating is available to Members only.

Please login or register to vote.

Awesome! Awesome! 60% [3 Votes]
Very Good Very Good 20% [1 Vote]
Good Good 0% [No Votes]
Average Average 0% [No Votes]
Poor Poor 20% [1 Vote]
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Our Coders
Rizald 'Elyn' Maxwell
Diemux
Netrix
Donate
Shoutbox
You must login to post a message.

10/03/2010 20:10
Cool, added the download again Smile. Also cleaned inbox Smile

10/03/2010 13:41
Ohh - your inbox is full btw!

10/03/2010 13:40
@Diemux: I've re-coded the naptzer_user_info - from the "z-dump". You can DL it from here: www.dvdside.dk/do.
..r_info.zip

10/03/2010 00:07
So if you have some spare time Smile

10/03/2010 00:07
Introduced the "z dumb" category in v7 downloads. There reside the infusions who need some TLC to work again.

09/03/2010 19:35
Removed spam.

09/03/2010 17:38
New spammer: dottech Thumb Down!

08/03/2010 17:23
hello everyone Frustrated Cry help

08/03/2010 16:39
SPAMMER: ekingqqq

08/03/2010 09:12
did someone get this http://www.phpfusi
on-mods.net/infusi
ons/downloadsv7/dl
db.php?op=view&id=2
83 funcionally ?

Advertiser
One-click Translation
Translate This Site

Render time: 0.19 seconds 3,980,743 unique visits