
| Tutorials Main Latest Tutorials Popular Tutorials Top Rated Tutorials |
| Login to See your Favorite Tutorials |
| Description: How to make your admin area more secure | |
| Version: 1.0 | |
| Added on: 16 June 2007 | |
| Author: ped | |
| Difficulty Level: Intermediate | |
| Views: 791 | |
| Rating: 9.5 (2 Votes) | |
Make backups of the files we are going to edit on your server.. (.htaccess)
If you want to add HTTP authentication to your admin area and you cant get it to work with Nuke Sentinel this is how you do it!
Place this code into a file called crypt.php and upload it to your site and call it in your browser
http://yoursite.com/crypt.php
| Code: |
| A simple crypt script to use on your sentinal install<br /><br />
<form method='post'> Enter your password to be encrypted using crypt(): <input name='pw'><br /><br /> Enter the 'salt' value for the encryption (2 long i.e. R7 or JR or 0b): <input name='salt' maxlength='2'><br /><br /> <input type='submit' name='submit' value='Encrypt'><br /><br /> <? if (isset($_POST['submit'])&&isset($_POST['pw'])&&!empty($_POST['pw'])) { echo "Password <b>".$_POST['pw']."</b> translated is <b>".crypt($_POST['pw'],$_POST['salt'])."</b>"; } ?> |
| Code: |
| # -------------------------------------------
# Start of NukeSentinel(tm) admin.php Auth # ------------------------------------------- <Files .fred> deny from all </Files> <Files admin.php> <Limit GET POST PUT> require valid-user </Limit> AuthName "Restricted" AuthType Basic AuthUserFile /home/ped/public_html/.fred </Files> # ------------------------------------------- # Start of NukeSentinel(tm) DENY FROM area # ------------------------------------------- |