Jurge Posted February 25, 2009 Share Posted February 25, 2009 I have made a few developments to my site that alloow the site to be edited with php, however i ahve not been able to secure these files so technically anyone could use them. I have tried 3 different methods of protecting them but none of them have been quite what i was looking for does anyone have any ideas that can be achieved without the use of a database (I am too noob for database). The methods i have tried are: .htaccess and .htpasswd, but my free hosting service doesn't let em go above the root folder to add the .htpasswd file. <?php require_once('../login.php'); ?> at the top of all protected pages, this clashed with the scripts that I already had on the pages. and a pre-made php script for a login but you can bypass the login by going straight to the file so it's pointless for my needs. very grateful to anyone that can help thanks. Quote Link to comment https://forums.phpfreaks.com/topic/146918-solved-admin-section/ Share on other sites More sharing options...
stuffradio Posted February 26, 2009 Share Posted February 26, 2009 Learn how to not be a "n00b" and use a database. http://www.tizag.com/mysqlTutorial/ Quote Link to comment https://forums.phpfreaks.com/topic/146918-solved-admin-section/#findComment-771578 Share on other sites More sharing options...
Jurge Posted February 26, 2009 Author Share Posted February 26, 2009 sounds like a good solution and the link seems like a good explanation. thanks. Quote Link to comment https://forums.phpfreaks.com/topic/146918-solved-admin-section/#findComment-771892 Share on other sites More sharing options...
stuffradio Posted February 26, 2009 Share Posted February 26, 2009 I feel that using a database can be a lot more secure then trying to use a work around. Quote Link to comment https://forums.phpfreaks.com/topic/146918-solved-admin-section/#findComment-771943 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.