Daan(NL) Posted August 17, 2008 Share Posted August 17, 2008 Hello, I'm still a PHP beginner, so I tried to make my own login system for practise, it works with pre-made usernames and login names. I know it's not safe yet, so I'd like to ask some help on that, besides that please tell me what you think Click Here Username: Daan Password: MyAdmin Cheers! Link to comment https://forums.phpfreaks.com/topic/120062-custom-login-system/ Share on other sites More sharing options...
darkfreaks Posted August 17, 2008 Share Posted August 17, 2008 in your robots.txt do not use stuff like inurl: or intitle: Link to comment https://forums.phpfreaks.com/topic/120062-custom-login-system/#findComment-618545 Share on other sites More sharing options...
gs Posted August 18, 2008 Share Posted August 18, 2008 Disable right clicking, othervise people will view source code Link to comment https://forums.phpfreaks.com/topic/120062-custom-login-system/#findComment-619141 Share on other sites More sharing options...
dlate Posted August 18, 2008 Share Posted August 18, 2008 Disabling right clicking wont prevent people from seeing the source code... Cant find much wrong with the login, did u trim, striptags and mysql escape on the input? Though storing the passwords in the login file itself isnt smart... if u are determined not to use a databse id suggest putting the passwords and usernames outside the root directory of the website. If u can show the script i could tell u if anything else might be wrong. Link to comment https://forums.phpfreaks.com/topic/120062-custom-login-system/#findComment-619226 Share on other sites More sharing options...
PFMaBiSmAd Posted August 18, 2008 Share Posted August 18, 2008 Disabling right-click, besides being useless in stopping someone from seeing or getting the HTML/CSS/Javascript/images/media on a site, also prevents the most common way of creating a short-cut or favorite to that site. Do you really want to make it harder for someone to create a short-cut or favorite to a site so that they can easily come back to it? I don't think so. Link to comment https://forums.phpfreaks.com/topic/120062-custom-login-system/#findComment-619235 Share on other sites More sharing options...
ev5unleash Posted August 18, 2008 Share Posted August 18, 2008 I suggest putting the style into a CSS file. Instead of having the CSS in the page itself. Link to comment https://forums.phpfreaks.com/topic/120062-custom-login-system/#findComment-619495 Share on other sites More sharing options...
dlate Posted August 18, 2008 Share Posted August 18, 2008 I suggest putting the style into a CSS file. Instead of having the CSS in the page itself. Yeah looks like u used dreamweaver for markup code, id suggest writing the html yourself as dreamweaver throws in alot of garbage and can make code that isnt w3c valid. Link to comment https://forums.phpfreaks.com/topic/120062-custom-login-system/#findComment-619500 Share on other sites More sharing options...
Lamez Posted August 19, 2008 Share Posted August 19, 2008 http://www.monse.nl/Daan/ I know this is semi revalent, and you probably want it like this, but I would add a php file that redirects to the main site in this directory, and sub directorys so users cannot view its contents <?php header("Location: http://www.monse.nl/"); ?> save that in a php file called index.php and add it to all directorys except your main. Link to comment https://forums.phpfreaks.com/topic/120062-custom-login-system/#findComment-620140 Share on other sites More sharing options...
Daan(NL) Posted August 20, 2008 Author Share Posted August 20, 2008 I suggest putting the style into a CSS file. Instead of having the CSS in the page itself. Jupjup, but when designing/coding I like to have my css on top of the page, forgot to delete it though (also the reason why the <style> has got no type and rel) Yeah looks like u used dreamweaver for markup code, id suggest writing the html yourself as dreamweaver throws in alot of garbage and can make code that isnt w3c valid. I handcoded it, so... and it's valid if you don't count the <style> tag and the alt for the test images. what's wrong with the CSS is unclear to me @Lamez, thanks Link to comment https://forums.phpfreaks.com/topic/120062-custom-login-system/#findComment-621414 Share on other sites More sharing options...
ev5unleash Posted August 20, 2008 Share Posted August 20, 2008 Do you mean what's wrong with the CSS in the page or the CSS Style? Link to comment https://forums.phpfreaks.com/topic/120062-custom-login-system/#findComment-621484 Share on other sites More sharing options...
darkfreaks Posted August 20, 2008 Share Posted August 20, 2008 did you fix the problem with your robots.txt file? Link to comment https://forums.phpfreaks.com/topic/120062-custom-login-system/#findComment-621487 Share on other sites More sharing options...
Recommended Posts