You are using a browser which is not compatible with CSS (for more information, see Tara's tutorial). Because of this, it is possible that our website may not appear correctly in your browser. We apologise for the inconvenience, and recommend you upgrade your browser to one which is compatible with CSS. For more information, please visit our Browser Upgrade page.

4WebHelp

Online Tools: .htpasswd Encryption Tool

Before using this tool, you may wish to read our tutorial on Password Protection.

Insert your desired username and password below to create a line to place in your .htpasswd file. Use three or more characters. You may only use letters, numbers and underscores (_).
Name:
Password:
Password Again:

FrontPage Warning:

FrontPage sites have a .htaccess file in the root directory that is created when the FrontPage extensions are installed. FrontPage users should proceed with caution and make a backup copy of their .htaccess file before making any changes. Incorrect changes to your .htaccess file can result in your site being unreachable.
Latest comments
bus rental dubai
thanks for sharing <a href="https://rentbusdubai.com">bus rental Dubai</a>
Symple Logix
As an IT services provider specializing in web design, development, branding, and SEO, we understand the ever-evolving nature of the industry. Staying updated with the latest trends is essential for delivering cutting-edge solutions to our clients.

If anyone is interested in exploring how our services can help their business thrive in the digital landscape, please visit our website at <a href="https://symplelogix.com">Symple Logix</a>. We're passionate about transforming ideas into successful online ventures!
Symple Logix
As an IT services provider specializing in web design, development, branding, and SEO, we understand the ever-evolving nature of the industry. Staying updated with the latest trends is essential for delivering cutting-edge solutions to our clients.

If anyone is interested in exploring how our services can help their business thrive in the digital landscape, please visit our website at
<a href="https://symplelogix.com">Symple Logix<a/>
. We're passionate about transforming ideas into successful online ventures!
Mark A
If you enter the same name and password in the same case more than once you get a different code!

All the different strings work with the same name and password.
EG. Name='name', password='password'
name:76umD9fPv0k2g
name:35Ll2Q1/BozcQ
name:83qv92pCVqzk6
name:47amUs3AWvq5A
sanam
best travel agency in Dubai with lots of offers. don't miss the chance book your trip right now!
https://www.ubltravels.com/
Helen
THANK YOU!!! for posting the whereami.php script.  Was going mad.  I wish you good things!
white smith
<a href="http://zellmeonline.com">channel V</a>
opbouwspots
I recently came across your blog and have been reading along. I thought I would leave my first comment. I don't know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often.
<a href="http://opbouwspotskopen.nl/">opbouwspots</a>
uplighter
I simply want to tell you that I am new to weblog and definitely liked this blog site. I have been meaning to write something like this on my website and you have given me an idea.
<a href="http://uplighterkopen.nl/">uplighter</a>
Erick Mark
Quote:
Very Nice and Amazing share. Finally Found what i was looking for. Thanks.
Regards
<a href="http://www.skylandtourism.com/">Erick Mark</a>
x4 labs
This post provides the light in which we can observe the reality. That is very nice one and provides in-depth information.<a href="https://sites.google.com/site/penometgaiters/x4-labs-discount-150-off-promo-code-x4-labs-reviews">x4 labs </a>
sizegenetics discount
This can be among the ideal posts that I've ever seen; you might contain some extra ideas inside the similar theme. I'm nonetheless waiting for some interesting thoughts from your side inside your subsequent post.https://sites.google.com/site/bathmatepump/sizegenetics-coupon-code-50-off-30-discount-information-sizegenetics-review
sp奢侈品
very usefull !thanks
Paula
Thank you for this!
Cristiano Costa
Thank you, very helpful!!!
Tinel Barb
So, the password hashes you provide are in obsolete format and don`t work.
For anybody who need a password generator i recommend using "htpasswd" utility which is the Apache`s package.
The commands are:
1. to CREATE the .htpasswd file use:
htpasswd -cmb .htpasswd USER PASSWORD
2. To ADD more users in the existing file use:
htpasswd -cmb .htpasswd USER PASSWORD
3. To DELETE a user from existing file use:
htpasswd -D .htpasswd USER
4. To just display the result line (no need to provide a filename):
htpasswd -nmb USER PASSWORD

Windows users can find the tool in the Apache`s install directory, in the "bin" folder.

webmaster@4webhelp.net: be aware, your POST variables are not well sanitized, an sql injection can be possible.
(I`ve got this:
There was an error adding your comments to the database:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near .... at line 4)
Louis
Love it. Thank you!!!
Matt
This is what I put in the .htaccess file

AuthUserFile /absolute/path/.htpasswd
AuthName "Restricted"
AuthType Basic
require valid-user
gilad
cool, thanks for the tool, very helpful.
Buck Wilde
Thank you. Very helpful!
Victoir
Thank you very much, very handy tool Smile
Carol
Just stopping in to say I use the htaccess page at least 3 times every year.  I want to thank you for making this site for us.  
barbablues
Thanks for a very useful tool...
betty james
Hi, I am betty james, I like this blog very much, So I am happy to open this blog..........
Matt
According to Apache manual, maximum length would be limited to 255 characters.

http://httpd.apache.org/docs/1.3/programs/htpasswd.html
matugm
The maxium length with the default encryption algorithm is 8,so if you use a longer password it will be trimmed without notice,if you want to use a longer password you can use the htpasswd tool with the -s switch.
Matt
Itried this online tool, and it worked perfectly:
http://apps.mathieu-rodic.com/Encryption/.htpasswd-Generator
Rob Miller
I liked your site.
Mezzy
Thanks Smile
Jon
Big thanks to 4webhelp and Tim Woolfson who shared his php. With his script I found the correct path, that I alway suspected was the problem, and resolved the issue! I now have a password-protected site.
how show htpasswd in every one hour?
how to show htpasswd in every one hour ?
what we can used please tell me briefly.

Regards
yann
Salt can be different any time you generate a new one, please before to say stupid thing, READ THE **** MANUAL.

for information you htaccess shoud look like :


AuthUserFile /path/to/a//non/web/directory/.htpasswd
AuthName "Not for noob"
AuthType Basic
<limit GET POST>
require valid-user
</limit>
terenzio
It just works... thanks a lot!
CharlottewE19
Oh, superior fact related to this post. Will please let me know how long time this would take? Just because I am willing to do some thesis topic or may be it will be good to order the <a href="http://www.topthesis.com">thesis writing service</a>. Thank you.
liko
very nice work.
will appreciate it if i can get the awesome tool. Smile
Brian Stanfill
   # AllowOverride controls what directives may be placed in .htaccess files.
   # It can be "All", "None", or any combination of the keywords:
   #   Options FileInfo AuthConfig Limit
   #
   AllowOverride None

## change to AllowOverride AuthConfig
## if you want to use .htaccess to control
## password access.
Muxin
Hi,
Have a nice weekends.

It's a great tool.
Could you mail me the SoftWare Please?Thank you!
Neil
Can anyone give a definitive answer to what the maximum allowable password length please?

I'm using htpasswd on a BSD system and my server will let me access the protected directory if I enter just the first 8 characters even though my password is 9 characters long. Does this have something to do with a flaw in whatever's being used to encode/encrypt the password? Thanks!
Klinggon22
This works just fine.  If all your other steps are done correctly this does encrypt the password just fine.  Thanks for supply it.  
K
Works like a charm.  Thank you so much!
Lud
THIS IS SO WRONG!

It doesn't work, the encryptions just outputs rubbish *sigh*

(and *double sigh* to all these [insert female name] comments)
Doug
i created a .htpasswd file but i dont no how to create a login form please help
Greg
Nice work!
cusco
your root path have to be like that.. else, your password does not accepted..

AuthUserFile "/var/www/vhosts/xxxxx.com/httpdocs/.htpasswd"

PRV2 Admin
Guys i have asked a question here but it was removed by the site admin!!!
I need your help on how to create and link the .htaccess and the .htpasswd files to gather instep to create password protected directories?
am using Linux based web hosting for the website and i need to protect some folders with password, any help would be really appreciated, thank you all inhere, hope you will help me?
http://www.prv2.com
wayne
Ive tried EVERYTHING I can think of. I'm almost positive my path is correct and it still says my username/password is invalid?

any ideas?
jaws
Just want to comment:  This tool is not for everyone.  If you are running apache in windows you need to use MD5 encryption for passwords. This tool does not seems to do that.   I am guessing that it uses the crypt function.  To generate the correct ones with MD5Encryption just go to the bin dir for apache and run htpasswd.exe. -c [location of .htaccess] [username]  It will prompt you for a password.  See: http://httpd.apache.org/docs/2.2/programs/htpasswd.html
Wed Developer
Excellent tool, works as said to.
giacomo
nice if there's no unix box around
USER
This tool is rubish doesnt work at all,

when i enter my password i get nothin when i enter what is meant to be the encrypted password wow i get in what goin on here ppl
Eve
Thanks for a very useful encryption tool! I like the rest of your site as well.
Imran
Hello everyone,

I have created the .htpasswd from this site http://www.4webhelp.net/us/password.php.
Name = develop
password = develop
It created me the .htpasswd as
develop:59DQtVkPTS4jk

I just copied and pasted in the .htpasswd file and tried logging in.
It jsut doesn't allow me to log in, Infact when i typed the password as 59DQtVkPTS4jk it allowed me in...

Can somebody help in this ?

Thanks in advance.
shemeer m ali
thanxsssssssssssssssssssssssssssss


very,,,,,,,,,,,,,,,,,,,,,,,,,, much


its very help fullllllllll

thanxs..................................................
Ljuba
I want to thank you for great script
IEmailer
Hi all,
Am new to the .hta file thing.
And am asking for help to set the file on my server
am running a software site and i want to block access to specific folders in there so how to create and upload this file?
Any extra help would be really appreciated

http://www.IEmailer.com
Bulk Email Marketing Software
David
Could you just state what the maximum password length is, please? Can it work with 20-character passwords?
Travis Longley
How come my passwords dont have to be encrypted?...I was trying to figure this out forever but if my username was admin and the password was admin too the entry in the .htpasswd file would look like    Admin:Admin  How Come?
Am I going made passwords don't match
Hi,

I've used free htaccess password encription sites for years. However I've tried to create a new one today using the user name and password of admin / apple. However, with each attempt the encrypted password is different.

admin:847JKPnLAjPPc

admin:93qbg0W7frhPQ

admin:26Dv7rhFZ7CUA

What is going on?
Afzal
I am new to this htaccess business, i am in the proces of building a website with web hosting company.  I have managed to create the pop up box and everyting, but i cannot seem to get my head the on why it does not accept the encryted login.  

I have been reading a lot on ht access, and some of it, is not making much sence.  

Do i have to install PHP, Apache on my Windows O/S.  

Can someone please advice
Simon
Hi, how can i find out the true path to put into my .htaccess file? i think thats what isn't working at the moment Sad it asks for password though, just doesn't seem to want to read the .htpasswd file with the answers in Sad
help much appreciated
Sx
heather
i love you. i really do. telnet directions were bothering me for 2 hours straight. this is just amazing. thank you.
Mickay
Great stuff! Cheers to the person who came up with the idea to get the server path using php! I cant believe i didnt think of it! =P me being a genious and all =P
Ramsey
NOTE:  On Godaddys server, that php code to see the path to the root directory will not show the whole thing, but godaddy's help menu show's what the code leaves out.  
Jean
I was having problems determining the full path to my root directory. I'm very thankful to the person who posted the small php file to extract the path. Now why didn't I think of that... Doh!!

Thanks again,
Jean Bisson
Tim Woolfson
Hi all,

It seems to me that relative paths from .htaccess to .htpasswd don't work - or at least not on my ISPs configuration.

I wrote a simple PHP file called whereami.php like this.
<?php

$dir = dirname(__FILE__);
echo $dir

?>
Uploaded it to the relevant directory then opened it in a browser. That gave me the path and resolved the issue. Hope that helps you.

Tim Woolfson
Internet Marketng Consultant (UK and Spain)
http://www.pwp1.com
Ramsey
This is perfect!!  After 2 day's of tring to figure this out and get Apache dowloaded, some one sends me this site and it saves me!!  Great job!
Thomas Walde-Jensen
Thanks.

After fiddling with the true path for about half an hour i got it to work beautifully. Very Happy
Paul
Have the same very annoying problem of finding HTACCESS no longer works. I have wasted 6 hours trying to discover how the problem can be resolved - but without success Sad

Our configuration is Apache  2.0.54 (Fedora)

Appreciate any ideas www.g56.net

Thanks,

Paul.
Martin
Very interesting and beautiful site. It is a lot of helpful information. Thanks!
Martin
Hi. You have very nice website! Beautiful design.
john
sorry Johan, my comment was ment for Michael Friedlander
Johan Geuze
Thanks again for this wonderful tool

http://www.linc.com.mx
Dave
The reset button doesn't work.
Daniel, 4WebHelp Team Member
BT: The source code is not available for release, however the code is pretty simple and is based on the PHP crypt function. More information is available at http://www.php.net/crypt
daniel
Great job! Thanks a lot...

Open resources, rule!!!

Wink
Ricki
Thanks to who ever made this scripts>

It's the Bees Knees

Lovin' Ur Work!
Hexx
I'm loving this script...It's very usefull, thanks for putting it here, saves me having to encourage a friend into writing me one. Please don't ever take it away..
steve
salt? hashs's? i duno how it works but i like it Smile
Turbo
Hey, i just wanna tell i love your script, and i use it all the time, don't ever break the link! Cheers T
adam
Just thought I would say that this script is very useful....I use it all the time Very Happy

Add a new comment

This page is © Copyright 2002-2024, 4WebHelp. It may not be reproduced without 4WebHelp's prior permission.