Closed Thread Icon

Topic awaiting preservation: protecting a directory Pages that link to <a href="https://ozoneasylum.com/backlink?for=26173" title="Pages that link to Topic awaiting preservation: protecting a directory" rel="nofollow" >Topic awaiting preservation: protecting a directory\

 
Author Thread
CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 07-05-2005 14:58

I need to protect an entire directory but the silly host these people are using doesn't allow .htaccess
So, I need a tasty alternative.

Are php scripts pretty secure and has anyone used one that will allow protecting an entire directory without having to edit each file? I've seen some scripts that you have to use include_once on each file to check to see if the user is logged in. I'd rather not have to do that to every file.

Any sugesstions?

Thanks in advance!

Later,

C:\

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 07-05-2005 16:31

without .htaccess? Get a better host.

The only easy/quick option you have is storing the directory outside of the webroot, and have a php script include those files only if authenticated.

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 07-05-2005 18:21

get a better host is not really up to me. The people I'm doing the site for did all of the signing up for the host before I came on board. It's Yahoo! and it sucks. I can't go outside of the webroot either. Isn't that a kicker!

I've just never seen a host that wouldn't allow .htaccess. I've tried to contact them and of course I've not heard back anything. Asses!

Thanks for the reply!

Later,

C:\

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 07-05-2005 22:08

Without some form of server control (ie .htaccess) you're pretty much screwed outside of cutting and pasting something into each page.



.:[ Never resist a perfect moment ]:.

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 07-05-2005 22:47

on that note, i have never had a setup where i did not have an include at the top of each document, usually containing the <head> section, main navigation perhaps, and any other includes that were needed. such an included file would be where to stick such code.

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 07-06-2005 00:21

well I did some digging on the Yahoo website and found a phone number. Called and they do have a way of protecting an entire directory. Just have to go about it in a stupid way.

Anyway, it acts just like .htaccess and if fine. So......just had to do a lot of digging. I just didn't want to have to put some type of additional call in the <head> of every single file and then when changes or additions were made, go back and have to do it all over again.

Thanks for the help!

Later,

C:\

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 07-06-2005 03:45

just to clarify - with the setup i mentioned, you don't need to change every file later. every file will always include the 'head' file, precisely so that i only need to change that head file to alter the site.

that head file would contain the include for the authentication code.

clearly you don't need this for this purpose now, but wanted to make sure i was clear on what I meant
=)

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 07-06-2005 03:49

ah....i gotcha. I was actually a little confused on that but I think I understand what you are talking about. Thanks again for the info.

And just for the record one more time......Yahoo!'s hosting kinda sucks. Glad I'm not paying for it

Later,

C:\

« BackwardsOnwards »

Show Forum Drop Down Menu