Previous Thread
Next Thread
Print Thread
Rate Thread
#101530 10/23/2000 5:48 AM
Joined: Sep 2000
Posts: 305
CTH
Offline
Member
Member
Offline
Joined: Sep 2000
Posts: 305
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

This message has been edited by TotalNewbie on October 23, 2000 at 06:21 AM

Sponsored Links
#101531 10/24/2000 5:21 AM
Joined: Aug 2000
Posts: 335
Member
Member
Offline
Joined: Aug 2000
Posts: 335
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 [Linked Image]

This message has been edited by Dave_L on October 24, 2000 at 05:22 AM

#101532 10/24/2000 6:24 AM
Joined: Sep 2000
Posts: 305
CTH
Offline
Member
Member
Offline
Joined: Sep 2000
Posts: 305
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

#101533 10/24/2000 7:16 AM
Joined: Jul 2000
Posts: 610
Member
Member
Offline
Joined: Jul 2000
Posts: 610
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.

#101534 10/24/2000 8:46 AM
Joined: Aug 2000
Posts: 469
Member
Member
Offline
Joined: Aug 2000
Posts: 469
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
Choose your future.
www.antipopculture.org


This message has been edited by evil-empire on October 24, 2000 at 08:46 AM

Sponsored Links
#101535 10/24/2000 3:38 PM
Joined: Aug 2000
Posts: 335
Member
Member
Offline
Joined: Aug 2000
Posts: 335
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.

This message has been edited by Dave_L on October 27, 2000 at 04:53 AM

#101536 10/25/2000 6:46 AM
Joined: Sep 2000
Posts: 1
Junior Member
Junior Member
Offline
Joined: Sep 2000
Posts: 1
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.

#101537 10/26/2000 11:04 AM
Joined: Aug 2000
Posts: 335
Member
Member
Offline
Joined: Aug 2000
Posts: 335
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

This message has been edited by Dave_L on October 26, 2000 at 06:46 PM

#101538 10/26/2000 9:19 PM
Joined: Aug 2000
Posts: 335
Member
Member
Offline
Joined: Aug 2000
Posts: 335
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

This message has been edited by Dave_L on October 27, 2000 at 04:53 AM


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)