Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 14th Jan 2010, 11:03 AM   #1
Active Warrior
 
trafficman01's Avatar
 
Join Date: 2009
Posts: 46
Thanks: 3
Thanked 2 Times in 2 Posts
Default
Need Help With Simple HTML Log In
Share on: 
fb share twitter share gplus share more share

Hi,

Need a little help here. I need a very simple html code that would allow me a login on a website that could use the same name and password.

If there is a code available and where would it be placed. Is this possible? The login would be for the index page.

Thanks for your help

Quality website traffic creates leads! Is it true? You too can earn web site income!
trafficman01 is offline  
Unread 14th Jan 2010, 11:10 AM   #2
Crazy Internet Marketer
War Room Member
 
saschakimmel's Avatar
 
Join Date: 2010
Location: Germany
Posts: 101
Thanks: 1
Thanked 34 Times in 12 Posts
Default
Re: Need Help With Simple HTML Log In
Share on: 
fb share twitter share gplus share more share

Hi,
this is not possible with HTML only (if you want it to be somewhat secure).
You'd need to use an .htaccess file (and a .htpasswd file containing user/password combinations) on the server to achieve that.
Or you could use PHP for that purpose.
What's available to you?

** Get my ViralListMachine software now for free and build your own list virally by giving away free stuff @ http://www.virallistmachinegiveaway.com **
saschakimmel is offline  
Unread 14th Jan 2010, 11:13 AM   #3
Active Warrior
 
trafficman01's Avatar
 
Join Date: 2009
Posts: 46
Thanks: 3
Thanked 2 Times in 2 Posts
Default
Re: Need Help With Simple HTML Log In
Share on: 
fb share twitter share gplus share more share

Originally Posted by saschakimmel View Post

Hi,
this is not possible with HTML only (if you want it to be somewhat secure).
You'd need to use an .htaccess file (and a .htpasswd file containing user/password combinations) on the server to achieve that.
Or you could use PHP for that purpose.
What's available to you?
I don't need it to be completely secure just block the index page. I could create a .htaccess file and .htpasswd file but what would I include in thos files to make a login happen at the point of the index page?

Quality website traffic creates leads! Is it true? You too can earn web site income!
trafficman01 is offline  
Unread 14th Jan 2010, 11:19 AM   #4
Crazy Internet Marketer
War Room Member
 
saschakimmel's Avatar
 
Join Date: 2010
Location: Germany
Posts: 101
Thanks: 1
Thanked 34 Times in 12 Posts
Default
Re: Need Help With Simple HTML Log In
Share on: 
fb share twitter share gplus share more share

You can use this generator to create both files:
Yellowpipe - .htaccess generator

This article should help you configuring which file should be protected:
Password Protect a Single File with HTAccess - Use HTAccess to Password Protect One Web Page

** Get my ViralListMachine software now for free and build your own list virally by giving away free stuff @ http://www.virallistmachinegiveaway.com **
saschakimmel is offline  
The Following User Says Thank You to saschakimmel For This Useful Post:
Unread 14th Jan 2010, 11:21 AM   #5
Active Warrior
 
trafficman01's Avatar
 
Join Date: 2009
Posts: 46
Thanks: 3
Thanked 2 Times in 2 Posts
Default
Re: Need Help With Simple HTML Log In
Share on: 
fb share twitter share gplus share more share

Much appreciated! Thanks a ton this will help.

Quality website traffic creates leads! Is it true? You too can earn web site income!
trafficman01 is offline  
Unread 14th Jan 2010, 11:23 AM   #6
Enthusiastic Warrior
War Room Member
 
Join Date: 2009
Posts: 800
Thanks: 201
Thanked 213 Times in 166 Posts
Blog Entries: 4
Default
Re: Need Help With Simple HTML Log In
Share on: 
fb share twitter share gplus share more share

Mark, that's easier than patching fiberglass. You don't need to edit your index page at all. Instead, use .htaccess to limit the access to this page.

Here's another handy-dandy little tutorial I found with a Google search for ".htaccess password":
Password Protecting Your Pages with htaccess

Now there is an important, serious limitation with this technique of basic HTML authentication. The limitation is that if someone is eavesdropping on your Internet connection, they'll be able to read the user ID and password in plain text. The eavesdropper could then go to the site themselves, and type in the user ID and password they just stole.

Be aware that basic authentication is like an easily picked little plastic lock. Ethical people will recognize the intention to lock the door, and not bother it. Unethical people might go get a butter knife and slide right on in. To more securely lock up your page requires more sophisticated authentication techniques. A great place to start would be using SSL to encrypt the connection, so that eavesdropping is blocked.

If the password is simply to prevent people who haven't paid from reading more articles about fiberglass, then you should be reasonably safe with this basic access control. It's unlikely that someone who eavesdrops on passwords would steal or misuse that information in a way that hurts anyone.

If your web page will contain anyone's personal, confidential information, you should use one of the more robust forms of access control. If you're collecting something like credit card numbers, fiberglass boat registrations, addresses of homeowners with fiberglass showers, etc., then you could be in legal hot water if you don't use more than this minimal .htaccess trick to protect their information.

I hope this is enough to get you started!

Chris
Mr. Enthusiastic is offline  
The Following User Says Thank You to Mr. Enthusiastic For This Useful Post:
Unread 14th Jan 2010, 11:37 AM   #7
Active Warrior
 
trafficman01's Avatar
 
Join Date: 2009
Posts: 46
Thanks: 3
Thanked 2 Times in 2 Posts
Default
Re: Need Help With Simple HTML Log In
Share on: 
fb share twitter share gplus share more share

Thanks Chris very helpful

Quality website traffic creates leads! Is it true? You too can earn web site income!
trafficman01 is offline  
Unread 14th Jan 2010, 06:27 PM   #8
Active Warrior
 
trafficman01's Avatar
 
Join Date: 2009
Posts: 46
Thanks: 3
Thanked 2 Times in 2 Posts
Default
Re: Need Help With Simple HTML Log In
Share on: 
fb share twitter share gplus share more share

Hey,

I got it! Actually that was pretty simple once you understand. Once again I appreciate all the help guys.

Quality website traffic creates leads! Is it true? You too can earn web site income!
trafficman01 is offline  
Unread 14th Jan 2010, 06:37 PM   #9
Enthusiastic Warrior
War Room Member
 
Join Date: 2009
Posts: 800
Thanks: 201
Thanked 213 Times in 166 Posts
Blog Entries: 4
Default
Re: Need Help With Simple HTML Log In
Share on: 
fb share twitter share gplus share more share

Originally Posted by trafficman01 View Post

Hey,

I got it!
That's my favorite follow-up message to see around here. Way to go!
Mr. Enthusiastic is offline  
Unread 25th Jan 2010, 03:57 PM   #10
Advanced Warrior
War Room Member
 
Justin Wheeler's Avatar
 
Join Date: 2009
Location: Trujillo, Peru
Posts: 566
Thanks: 374
Thanked 527 Times in 249 Posts
Default
Re: Need Help With Simple HTML Log In
Share on: 
fb share twitter share gplus share more share

Thanks for this. I was looking for a simple way to password protect a website too. I tried with .ht access but for some reason probably to do with the way my blogs are set up using wp-hive it didn't work and ended up password protecting a number of other pages on the same site.

In the end I went with .php and found this very simple free solution so thought I would share it with anyone else looking.

:: Web Page Password Protect :: Free PHP Scripts

I sometimes review products and offer bonuses at www.wantabonus.com
Justin Wheeler is offline  
Closed Thread


Bookmarks

Tags
html, log, simple


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 12:13 PM.