![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Too lazy to set a custom title
Industry Role:
Join Date: Mar 2004
Posts: 16,116
|
Htaccess + htpasswd question
Need to use htaccess and htpasswd to protect all pages besides index.html along with all images used outside of the index.
Here's what I have so far, but it's pw protecting the index.html as well. Code:
AuthName "Site Name" AuthType Basic AuthUserFile /path_to_/.htpasswd Require valid-user <Files "*"> Require valid-user </Files> <FilesMatch "(index\.html|logo\.png)$"> Allow from all Satisfy any </FilesMatch>
__________________
Your Paysite Partner Strength In Numbers! StickyDollars | RadicalCash | KennysPennies | HomegrownCash |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Jul 2006
Location: Philadelphia
Posts: 1,282
|
not sure but I can almost guarantee that whatever youre doing, youre doing it the hard way
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Too lazy to set a custom title
Industry Role:
Join Date: Mar 2004
Posts: 16,116
|
Well, yeah. I could set it up in a folder, but I'd rather not have to move everything.
__________________
Your Paysite Partner Strength In Numbers! StickyDollars | RadicalCash | KennysPennies | HomegrownCash |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Aug 2008
Posts: 1,719
|
No expert but I think you need an ignore index line.
Something like this: Code:
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Confirmed User
Industry Role:
Join Date: Jun 2012
Posts: 457
|
Gottit working on my server in a folder www.carlparry.com/gfy/
Quote:
Paz. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Sexy Beast
Industry Role:
Join Date: Jan 2005
Posts: 617
|
Yeah, it's best to keep the htaccess files and folders in a separate protected folder.
__________________
AdultWebHosting.com ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |