php forum
php mysql forum
php mysql smarty
 
Topic Options
#101530 - 10/23/00 05:48 AM .htaccess
CTH Offline
Member

Registered: 09/13/00
Posts: 509
Loc: England
Hey,

I really didn't know where to post this so apologies if it's in the wrong forum....

Anyways, .htaccess

I'm on a UNIX Apache server and I have 3 directories in my CGI-BIN folder which I need to have pwd access to....

Members for CYPWM PM's
One for a Poll system I'm running
One for an Interactive story I'm going to be running

And before using .htaccess files I have a few questions about them....

1) If under the worst circumstances someone was to ever change my .htaccess password would I still be able to override the .htaccess files by uploading some new ones thru my ftp ????

2) Does .htaccess apply pwd protection thru ftp to ???? Or is it simply for surfing the internet ????

3) If something ever went wrong with an .htaccess can I just delete it using ftp and everything would return to normal ????

4) Do I have to have telnet access to use .htaccess ???? Can I just use FTP (CuteFTP) ????

Thanks,

TotalNewbie

<FONT COLOR="#6699cc" SIZE="1" FACE="Verdana, Arial">This message has been edited by TotalNewbie on October 23, 2000 at 06:21 AM</font>

Top
#101531 - 10/24/00 05:21 AM Re: .htaccess
Dave_L Offline
Member

Registered: 08/16/00
Posts: 356
Loc: Virginia, USA
From my research on .htaccess files, I'm pretty sure that the following is true:

.htaccess files only affect access via HTTP requests, i.e., web surfing, so they have no effect on FTP or Telnet access.

.htaccess files are just normal files, so they can be uploaded or deleted using FTP.

It's possible for the server to be configured to ignore your .htaccess files.

If any of this is wrong, please correct it

<FONT COLOR="#6699cc" SIZE="1" FACE="Verdana, Arial">This message has been edited by Dave_L on October 24, 2000 at 05:22 AM</font>

Top
#101532 - 10/24/00 06:24 AM Re: .htaccess
CTH Offline
Member

Registered: 09/13/00
Posts: 509
Loc: England
Thanks for your reply Dave.

The only question I have left is do you have to have telnet access to your server to use .htaccess files as I believe you configure the password this way ???????????

TotalNewbie

Top
#101533 - 10/24/00 07:16 AM Re: .htaccess
SpAwN Offline
Member

Registered: 07/16/00
Posts: 1051
Loc: Haarlem, The Netherlands
Only thing i know you can set the Password once with those file and if you want another password you need new .htaccess file

Thus you can upload a new .htaccess file to your server to change the password.
_________________________
SpawnBoard | Watercooling Project | UBB v5 Hacks

Top
#101534 - 10/24/00 08:46 AM Re: .htaccess
empire Offline
Member

Registered: 08/17/00
Posts: 795
Loc: U S of A
I can upload a .htaccess file ony my server, but for extra protection I can only set users/passwords through telnet.

But, I've heard other ways of doing it, so it could be different for every server.
------------------
-david
<FONT size="1">Choose your future.
www.antipopculture.org </FONT s>

<FONT COLOR="#6699cc" SIZE="1" FACE="Verdana, Arial">This message has been edited by evil-empire on October 24, 2000 at 08:46 AM</font>

Top
#101535 - 10/24/00 03:38 PM Re: .htaccess
Dave_L Offline
Member

Registered: 08/16/00
Posts: 356
Loc: Virginia, USA
Here's a link I have on password-protection.
http://www.openup.com/justin/authentication/

It looks like the passwords in the .htpasswd file are encrypted using a Telnet command. If the Perl crypt() function is used for the encryption, it might be possible to set up the .htpassword file yourself, using a Perl script.

.htaccess files can be used for things other than password protection. For example, I use one to allow a Perl module directory to be accessed by scripts, but not accessed from web browsers.

<FONT COLOR="#6699cc" SIZE="1" FACE="Verdana, Arial">This message has been edited by Dave_L on October 27, 2000 at 04:53 AM</font>

Top
#101536 - 10/25/00 06:46 AM Re: .htaccess
DaveD Offline
Junior Member

Registered: 09/28/00
Posts: 24
Dave_L

what do you have to put in the .htaccess file to make it accessable by scripts but not from web based browsers, I want to protect my cgi_local directory.

Top
#101537 - 10/26/00 11:04 AM Re: .htaccess
Dave_L Offline
Member

Registered: 08/16/00
Posts: 356
Loc: Virginia, USA
DaveD:

In my case, it's sufficient for the .htaccess file to contain the single line:
Code:
code:


If that doesn't work correctly on your server, you could try:
Code:
code:


or

Code:
code:


(where *.db would be replaced by the file type(s) you want to protect)

Here's another resource link: http://apachetoday.com/news_story.php3?ltsn=2000-07-19-002-01-NW-LF-SW

<FONT COLOR="#6699cc" SIZE="1" FACE="Verdana, Arial">This message has been edited by Dave_L on October 26, 2000 at 06:46 PM</font>

Top
#101538 - 10/26/00 09:19 PM Re: .htaccess
Dave_L Offline
Member

Registered: 08/16/00
Posts: 356
Loc: Virginia, USA
TotalNewbie et al:

While looking for something else, I came across this script, which sets up an .htpasswd file without Telnet:
http://www.croesusdesign.com/pass.html

<FONT COLOR="#6699cc" SIZE="1" FACE="Verdana, Arial">This message has been edited by Dave_L on October 27, 2000 at 04:53 AM</font>

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks