BetaArchive Logo
Navigation Home Screenshots Image Uploader Server Info FTP Servers Wiki Forum RSS Feed Rules Please Donate
UP: 8d, 17h, 57m | CPU: 21% | MEM: 2239MB of 3581MB used
{The community for beta collectors}

Forum rules


Any off topic discussions should go in this forum. Post count is not increased by posting here.
FTP Access status is required to post in this forum. Find out how to get it


Post new topic Reply to topic  [ 13 posts ] 
Author Message
 PostPost subject: '.htaccess' password protection        Posted: Tue Oct 07, 2008 11:24 am 
Reply with quote
Donator
User avatar
Offline

Joined
Mon Feb 12, 2007 12:50 pm

Posts
965

Favourite OS
First Edition UNIX
I am writing my RPG, which I am now confident enough about to release as 'alpha-1,' and would like to have a small webpage for it so that I can host it.

The reason why I'd like to use a '.htaccess' file is that I'd like to keep the present build private (until it's ready for a proper release). Access would be allowed to pretty much anyone who wanted it, but I just want to know who has it and who to accept feedback from.

Can anyone tell me how this can be done? Will I need to start a new site (eg. qfd.monkey-hole.co.uk)?

Thanks.

_________________
Have a day.


Top  Profile
 PostPost subject:        Posted: Tue Oct 07, 2008 11:43 am 
Reply with quote
FTP Access
Offline

Joined
Sun Dec 03, 2006 9:29 pm

Posts
74

Location
Germany
Create a .htaccess file with this content:

Code:
AuthType Basic
AuthName "RPG-Alpha"
AuthUserFile C:/Apache/htdocs/.htusers (<- Change this with the path to your .htusers!)
require valid-user


and create a .htusers file with this content:

Code:
Username1:Password1
Username2:Password2


and so on.

Just place them in the RPG folder on your webspace and it will be fine. ;)

_________________
c(o.o)


Top  Profile  ICQ
 PostPost subject:        Posted: Tue Oct 07, 2008 3:25 pm 
Reply with quote
Staff
User avatar
Offline

Joined
Wed Apr 11, 2007 2:11 pm

Posts
2607

Location
Germany, Earth

Favourite OS
Windows 10
The password has to be crypted - here is a generator for the .htpasswd

_________________
MS vNext: Windows 10 ESD Database - Windows 10 Build Labs - Windows 10 Update Archive - Office 2016 Version Tracker - Office Downloader


Top  Profile  WWW
 PostPost subject:        Posted: Tue Oct 07, 2008 4:55 pm 
Reply with quote
Donator
User avatar
Offline

Joined
Mon Feb 12, 2007 12:50 pm

Posts
965

Favourite OS
First Edition UNIX
Thanks, I've made my own account to start with. Can I just use it to password-protect a single directory in a website, or will I have to start a new domain?

EDIT: Doesn't work on the site, I get a 500 error.

_________________
Have a day.


Top  Profile
 PostPost subject:        Posted: Tue Oct 07, 2008 5:59 pm 
Reply with quote
Staff
User avatar
Offline

Joined
Wed Apr 11, 2007 2:11 pm

Posts
2607

Location
Germany, Earth

Favourite OS
Windows 10
You can protect single directories with this...

_________________
MS vNext: Windows 10 ESD Database - Windows 10 Build Labs - Windows 10 Update Archive - Office 2016 Version Tracker - Office Downloader


Top  Profile  WWW
 PostPost subject:        Posted: Tue Oct 07, 2008 6:55 pm 
Reply with quote
Donator
User avatar
Offline

Joined
Fri Jun 13, 2008 10:22 am

Posts
2366
Make sure people can't access your .htpasswd or .htaccess files otherwise they could get your usernames and passwords. Even hashed passwords, brute forcing isn't too difficult to do.


Top  Profile
 PostPost subject:        Posted: Tue Oct 07, 2008 6:56 pm 
Reply with quote
Staff
User avatar
Offline

Joined
Wed Apr 11, 2007 2:11 pm

Posts
2607

Location
Germany, Earth

Favourite OS
Windows 10
QuiescentWonder wrote:
Make sure people can't access your .htpasswd or .htaccess files otherwise they could get your usernames and passwords. Even hashed passwords, brute forcing isn't too difficult to do.


Depends on the pw you choose :P But yeah, put both files into the directory you want to protect.

_________________
MS vNext: Windows 10 ESD Database - Windows 10 Build Labs - Windows 10 Update Archive - Office 2016 Version Tracker - Office Downloader


Top  Profile  WWW
 PostPost subject:        Posted: Tue Oct 07, 2008 9:27 pm 
Reply with quote
Donator
User avatar
Offline

Joined
Mon Feb 12, 2007 12:50 pm

Posts
965

Favourite OS
First Edition UNIX
Is there a way I can find the whole path of the site? The furthest back I can go is /htdocs/.

_________________
Have a day.


Top  Profile
 PostPost subject:        Posted: Tue Oct 07, 2008 10:53 pm 
Reply with quote
Staff
User avatar
Offline

Joined
Wed Apr 11, 2007 2:11 pm

Posts
2607

Location
Germany, Earth

Favourite OS
Windows 10
Create a php-file with this content:

Code:
<?php phpinfo(); ?>


put it on your server and open it in your browser.

Search for "DOCUMENT_ROOT" - the value of it is the full path ;)

_________________
MS vNext: Windows 10 ESD Database - Windows 10 Build Labs - Windows 10 Update Archive - Office 2016 Version Tracker - Office Downloader


Top  Profile  WWW
 PostPost subject:        Posted: Wed Oct 08, 2008 12:07 am 
Reply with quote
Donator
User avatar
Offline

Joined
Mon Feb 12, 2007 12:50 pm

Posts
965

Favourite OS
First Edition UNIX
Thanks, the php file worked. I'm afraid the .htaccess still doesn't work though, it spits out a 500 server config error - I've had these before, especially trying to set up forums. Problem is, it's not my server, it's a Streamline.net one...

_________________
Have a day.


Top  Profile
 PostPost subject:        Posted: Wed Oct 08, 2008 6:00 am 
Reply with quote
FTP Access
User avatar
Offline

Joined
Fri Sep 01, 2006 10:04 pm

Posts
1022

Location
The Ephemeral between existance and non-existance: AKA "being"

Favourite OS
Rhapsody, BeOS
You may have to use the absolute address or the one relative to you /htdocs/ folder...
So, node12.streamline.net or /htdocs/mydirectory

Also try contacting their customer support, some of these sites have very poor web administration...

_________________
Image
Part Time Troll - HPC Enthusiast - Spelling Master - Old Fart


Top  Profile  WWW
 PostPost subject:        Posted: Wed Oct 08, 2008 9:14 am 
Reply with quote
Donator
User avatar
Offline

Joined
Mon Feb 12, 2007 12:50 pm

Posts
965

Favourite OS
First Edition UNIX
Thanks, will do that now.

_________________
Have a day.


Top  Profile
 PostPost subject:        Posted: Sat Dec 06, 2008 9:59 am 
Reply with quote
if you need help, pls contact me ... i have some tools that might could help you


Top
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 




Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  

All views expressed in these forums are those of the author and do not necessarily represent the views of the BetaArchive site owner.

Powered by phpBB® Forum Software © phpBB Group

Copyright © 2006-2018

 

Sitemap | XML | RSS