GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   can someone help me password protect pages (https://gfy.com/showthread.php?t=633207)

spacedog 07-14-2006 09:22 AM

can someone help me password protect pages
 
I'm trying to password protect some pages..

I'd like to be able to protect certain pages, but don't know how to do this.
I know how to protect a directory, like /members/ but what about just single pages in the root. Can it be done,, I can't just move the pages into a directory because then the scripts to run the site won't work unless I recode the entire thing,,,

for example, I know how to password protect domain.com/members/
but what I want to do is password protect domain.com/members.html without password protecting domain.com

I hope this is understandable

teksonline 07-14-2006 09:25 AM

icq me

just need to redirect members.html to /members/ you can't just password protect one file

MyNameIsNobody 07-14-2006 09:25 AM

Wrong posting... ehm :helpme

CamsLord 07-14-2006 09:30 AM

htaccess :2 cents:

spacedog 07-14-2006 09:30 AM

Quote:

Originally Posted by teksonline
icq me

just need to redirect members.html to /members/ you can't just password protect one file


hitting you up now,,

Thomas N 07-14-2006 09:36 AM

I can tell you exactly what to do, but first you must update us on the "love of my life" drama. Haha just kidding bro :)

Actually I don't really know how to do it, I'm sure someone here will hook you up though, good luck.

RayVega 07-14-2006 09:49 AM

----------------
To password protect just a single file in a folder, use the following .htaccess file:

AuthUserFile /full/path/to/.htpasswd
AuthType Basic
AuthName "My Secret Page"

<Files "mypage.html">
Require valid-user
</Files>

This will password protect just the mypage.html file in the folder where you put the .htaccess file.

-----------

spacedog 07-14-2006 10:47 AM

thanks Ray.
I tried something similar found on Dynamic Drive
But it does not look like it is working?

It did for a second & I logged in, now I don't get the prompt anymore.. must because I have cookie maybe

http://www.77k.org/testing.htm

is anyone getting the password prompts?

boldy 07-14-2006 10:59 AM

Quote:

Originally Posted by spacedog
thanks Ray.
I tried something similar found on Dynamic Drive
But it does not look like it is working?

It did for a second & I logged in, now I don't get the prompt anymore.. must because I have cookie maybe

http://www.77k.org/testing.htm

is anyone getting the password prompts?


Yep... :thumbsup

spacedog 07-14-2006 11:01 AM

Quote:

Originally Posted by boldy
Yep... :thumbsup


thanks Boldy

what about without the www

http://77k.org/testing.htm

boldy 07-14-2006 11:02 AM

Quote:

Originally Posted by spacedog
thanks Boldy

what about without the www

http://77k.org/testing.htm

Yep :thumbsup

spacedog 07-14-2006 11:03 AM

Quote:

Originally Posted by boldy
Yep :thumbsup


thanks, :thumbsup


All times are GMT -7. The time now is 08:00 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123