| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Mar 2005 Location: Massachusetts
Posts: 1,999
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | How to limit access to admin file? I'm looking for some sort of code, script or technique, that limits complete access to my admin.php file without a password. The admin.php file is the backend to one of my sites and does have a secure login before allowing access to website controls, however I would like to add another security measure. Basically I'm looking for something like cPanel's directory password lock, except for a single file so that it cannot be read, open, or run without a password. +Rep for all who assist me!
__________________ FREE Xbox Live Gold codes added daily! |
| |
| | #2 (permalink) |
| Senior Member Join Date: May 2005 Location: Australia
Posts: 1,197
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | PHP Code: |
| |
| | THREAD STARTER #3 (permalink) |
| Senior Member Join Date: Mar 2005 Location: Massachusetts
Posts: 1,999
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | I just realized the admin page is encoded with Ioncube... Will the above code still work inserted in an Ioncube encoded page?
__________________ FREE Xbox Live Gold codes added daily! |
| |
| | #4 (permalink) |
| Domains my Dominion Join Date: Aug 2005 Location: Web 1.0
Posts: 9,557
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | You can use HTTP authentication with .htaccess file to protect one single file Check this tutorial: http://www.wise-women.org/tutorials/htaccess/ Scroll to the bottom for details on the <Files> directive
__________________ NameNewsletter.com - free lists of available domain names ZoneFiles.net (beta) - ccTLD and gTLD droplists |
| |
| | THREAD STARTER #5 (permalink) | ||||
| Senior Member Join Date: Mar 2005 Location: Massachusetts
Posts: 1,999
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
__________________ FREE Xbox Live Gold codes added daily! | ||||
| |