Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 07-14-2006, 09:22 AM   #1
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
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
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-14-2006, 09:25 AM   #2
teksonline
So Fucking Banned
 
Join Date: Jan 2005
Location: At My Desk
Posts: 2,904
icq me

just need to redirect members.html to /members/ you can't just password protect one file
teksonline is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-14-2006, 09:25 AM   #3
MyNameIsNobody
Confirmed User
 
Join Date: Dec 2005
Location: Swedän
Posts: 2,947
Wrong posting... ehm

Last edited by MyNameIsNobody; 07-14-2006 at 09:27 AM..
MyNameIsNobody is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-14-2006, 09:30 AM   #4
CamsLord
Confirmed User
 
Join Date: Jun 2006
Posts: 3,663
htaccess
__________________
sig for sale - pornpicz(at)gmail.com
CamsLord is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-14-2006, 09:30 AM   #5
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
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,,
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-14-2006, 09:36 AM   #6
Thomas N
Confirmed User
 
Join Date: Aug 2001
Posts: 973
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.
Thomas N is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-14-2006, 09:49 AM   #7
RayVega
Confirmed User
 
RayVega's Avatar
 
Industry Role:
Join Date: Jul 2004
Location: New York ICQ#348007554
Posts: 4,212
----------------
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.

-----------
__________________
Ray "The Don" Vega

Managing Director
Private Equity Fund

[email protected]
RayVega is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-14-2006, 10:47 AM   #8
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
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?
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-14-2006, 10:59 AM   #9
boldy
Macdaddy coder
 
Industry Role:
Join Date: Feb 2002
Location: MacDaddy pimp coder
Posts: 2,806
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...
__________________
MacDaddy Coder.
boldy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-14-2006, 11:01 AM   #10
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
Quote:
Originally Posted by boldy
Yep...

thanks Boldy

what about without the www

http://77k.org/testing.htm
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-14-2006, 11:02 AM   #11
boldy
Macdaddy coder
 
Industry Role:
Join Date: Feb 2002
Location: MacDaddy pimp coder
Posts: 2,806
Quote:
Originally Posted by spacedog
thanks Boldy

what about without the www

http://77k.org/testing.htm
Yep
__________________
MacDaddy Coder.
boldy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-14-2006, 11:03 AM   #12
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
Quote:
Originally Posted by boldy
Yep

thanks,
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.