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 Mark Forums Read
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 05-09-2003, 03:18 PM   #1
The Click
Confirmed User
 
Join Date: Apr 2003
Location: Canada
Posts: 1,685
members .htaccess question easy $10 4 u techs

I'm sure this has been a topic before but really need a straight and easy answer about my members section authentication problem.

If you login to my member section:

www.mydomain.com/members

Then try and download movies from this folder: www.mydomain.com/members or www.mydomain.com/members/girlie1/ or any damn folder within the members section the server asks for the members username and password EVERY TIME it's a real pain in the ass.

I have tried different things I have had help from other techs but I can't get a plain English answer.

I can paypal $10 to the first person that can explain this to me so I can understand it and fix the problem - you can ICQ me or post your answer to my problem here.

Thanks for your time.

CLICK
__________________


ICQ: 31-30-30
The Click is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 03:20 PM   #2
nuclei
old school fart
 
Industry Role:
Join Date: May 2001
Location: Florida
Posts: 1,015
It looks like yer actually going to mydomain.com/members and then calling the files as www.mydomain.com/members/*

apache sees mydomain.com and www.mydomain.com as 2 seperate entities.

And this wasnt worth $10 so give it to charity :P
__________________
The next generation of SEO
nuclei is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 03:25 PM   #3
The Click
Confirmed User
 
Join Date: Apr 2003
Location: Canada
Posts: 1,685
Quote:
Originally posted by nuclei
It looks like yer actually going to mydomain.com/members and then calling the files as www.mydomain.com/members/*

apache sees mydomain.com and www.mydomain.com as 2 seperate entities.

And this wasnt worth $10 so give it to charity :P
NOPE that not it. I tried www.mydomain/members/video.mpg

then I tried mydomain/members/video.mpg

same shit, after i entered my login info to get into the members section it still asked me again for username and password before i viewed any videos.
__________________


ICQ: 31-30-30
The Click is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 03:41 PM   #4
ServerGenius
Confirmed User
 
Join Date: Feb 2002
Location: Amsterdam
Posts: 9,377
Post the contents of your .htaccess file here and I'll fix it for ya.

DynaMite
__________________
| http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho |
ServerGenius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 03:42 PM   #5
gornyhuy
Chafed.
 
gornyhuy's Avatar
 
Join Date: May 2002
Location: Face Down in Pussy
Posts: 18,041
post the contents of your htaccess file...
__________________

icq:159548293
gornyhuy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 03:43 PM   #6
gornyhuy
Chafed.
 
gornyhuy's Avatar
 
Join Date: May 2002
Location: Face Down in Pussy
Posts: 18,041
Quote:
Originally posted by DynaSpain
Post the contents of your .htaccess file here and I'll fix it for ya.

DynaMite
Jinx.
Owe me a toke.
__________________

icq:159548293
gornyhuy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 03:45 PM   #7
The Click
Confirmed User
 
Join Date: Apr 2003
Location: Canada
Posts: 1,685
can ya ICQ me ya gotta work me though it.
__________________


ICQ: 31-30-30
The Click is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 03:46 PM   #8
ServerGenius
Confirmed User
 
Join Date: Feb 2002
Location: Amsterdam
Posts: 9,377
Quote:
Originally posted by gornyhuy


Jinx.
Owe me a toke.
I'll split the 10 bucks with ya

DynaMite
__________________
| http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho |
ServerGenius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 03:47 PM   #9
p00p
Confirmed User
 
Join Date: Dec 2002
Location: CanaDUH
Posts: 5,125
This sounds like that microsoft bug with media player....try embedding the clips in a webpage, bet they play. My mpegs don't play, but when I embed them in a webpage, they play great.
.wmv files should work too, embedded or not.
__________________
ICQ: 316365783
<a href="http://www.hostultra.com/~p00p" target="_blank">TEST</a>
p00p is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 03:47 PM   #10
The Click
Confirmed User
 
Join Date: Apr 2003
Location: Canada
Posts: 1,685
AuthUserFile /home/clicker/public_html/cgi-bin/pass/.htpasswd
AuthName "Members Only"
AuthType Basic
Require valid-user
__________________


ICQ: 31-30-30
The Click is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 03:48 PM   #11
ServerGenius
Confirmed User
 
Join Date: Feb 2002
Location: Amsterdam
Posts: 9,377
Quote:
Originally posted by The Click
can ya ICQ me ya gotta work me though it.
Just post the contents of your .htaccess you can replace the
path and filename of your db file with nonsense.

DynaMite
__________________
| http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho |
ServerGenius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 03:49 PM   #12
The Click
Confirmed User
 
Join Date: Apr 2003
Location: Canada
Posts: 1,685
Quote:
Originally posted by p00p
This sounds like that microsoft bug with media player....try embedding the clips in a webpage, bet they play. My mpegs don't play, but when I embed them in a webpage, they play great.
.wmv files should work too, embedded or not.

rrrr sounds like a lotta work, i know there is a way around this by fukin with the .htaccess file or something
__________________


ICQ: 31-30-30
The Click is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 03:53 PM   #13
ServerGenius
Confirmed User
 
Join Date: Feb 2002
Location: Amsterdam
Posts: 9,377
Quote:
Originally posted by The Click
AuthUserFile /home/clicker/public_html/cgi-bin/pass/.htpasswd
AuthName "Members Only"
AuthType Basic
Require valid-user
Looks ok except I would put your db file outside the docroot
of the webserver. It's quite easy to retrieve the file when it's
accessible for browsers

if it's only an issue for movies p00p just answerred that for you.
You owe him 10 bucks now

DynaMite
__________________
| http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho |
ServerGenius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 03:53 PM   #14
The Click
Confirmed User
 
Join Date: Apr 2003
Location: Canada
Posts: 1,685
oh ya is this the htaccess file that you are talking about?


Editing/home/clicker/www/members/.htaccess


AuthUserFile /home/clicker/public_html/cgi-bin/pass/.htpasswd
AuthName "Members Only"
AuthType Basic
Require valid-user
__________________


ICQ: 31-30-30
The Click is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 04:07 PM   #15
The Click
Confirmed User
 
Join Date: Apr 2003
Location: Canada
Posts: 1,685
Quote:
Originally posted by DynaSpain


Looks ok except I would put your db file outside the docroot
of the webserver. It's quite easy to retrieve the file when it's
accessible for browsers

if it's only an issue for movies p00p just answerred that for you.
You owe him 10 bucks now

DynaMite


It's an issue to access folders where pictures are within the members section too, so i guess it's not just movies.

I would gladly give p00p $10 if i could help me figure out what the problem is.
__________________


ICQ: 31-30-30
The Click is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 04:11 PM   #16
p00p
Confirmed User
 
Join Date: Dec 2002
Location: CanaDUH
Posts: 5,125
Quote:
Originally posted by The Click




It's an issue to access folders where pictures are within the members section too, so i guess it's not just movies.

I would gladly give p00p $10 if i could help me figure out what the problem is.
Do the pictures come up as broken images?
__________________
ICQ: 316365783
<a href="http://www.hostultra.com/~p00p" target="_blank">TEST</a>
p00p is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 04:14 PM   #17
The Click
Confirmed User
 
Join Date: Apr 2003
Location: Canada
Posts: 1,685
Quote:
Do the pictures come up as broken images? [/B]
no, if you try and click on the folders it will ask for username and pass again. then you have full access to the files within the folder but not any movies, it will ask for username and pass again for every movie.

Im I makin any sense here?
__________________


ICQ: 31-30-30
The Click is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 04:17 PM   #18
Why
MFBA
 
Industry Role:
Join Date: Mar 2003
Location: PNW
Posts: 7,230
apache.org has tons of usful information, i think you need to change a setting in your httpd.conf, but i could be wrong.
Why is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 04:47 PM   #19
The Click
Confirmed User
 
Join Date: Apr 2003
Location: Canada
Posts: 1,685
Quote:
Originally posted by Why
apache.org has tons of usful information, i think you need to change a setting in your httpd.conf, but i could be wrong.
ya I went to apache.org and searched around but you have to be a rocket scientist to understand it. Can anybody help me?
__________________


ICQ: 31-30-30
The Click is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 05:16 PM   #20
p00p
Confirmed User
 
Join Date: Dec 2002
Location: CanaDUH
Posts: 5,125
Quote:
Originally posted by The Click


no, if you try and click on the folders it will ask for username and pass again. then you have full access to the files within the folder but not any movies, it will ask for username and pass again for every movie.

Im I makin any sense here?
No. Please give me ftp access to your server. But only after you try embedding the mpeg first. Sounds to me like a movie is in a folder, you click into that folder, and everything loads. You click to download the mpeg, then it asks for username/pass right?
__________________
ICQ: 316365783
<a href="http://www.hostultra.com/~p00p" target="_blank">TEST</a>
p00p is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 05:44 PM   #21
The Click
Confirmed User
 
Join Date: Apr 2003
Location: Canada
Posts: 1,685
Quote:
Originally posted by p00p

No. Please give me ftp access to your server. But only after you try embedding the mpeg first. Sounds to me like a movie is in a folder, you click into that folder, and everything loads. You click to download the mpeg, then it asks for username/pass right?
Yes thats correct, only the movie files are .wmv
__________________


ICQ: 31-30-30
The Click is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 05:48 PM   #22
p00p
Confirmed User
 
Join Date: Dec 2002
Location: CanaDUH
Posts: 5,125
Quote:
Originally posted by The Click


Yes thats correct, only the movie files are .wmv
What is this you said a few posts earlier"
"NOPE that not it. I tried www.mydomain/members/video.mpg "
Are they .wmv or .mpg?
Either way, try - to - embed - the - clip so it loads off an .html page, not directly from a directory.
__________________
ICQ: 316365783
<a href="http://www.hostultra.com/~p00p" target="_blank">TEST</a>
p00p is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 06:56 PM   #23
cash69
So Fucking Banned
 
Join Date: Oct 2002
Location: chandler, az
Posts: 1,052
which processor are you using? im pretty sure epoch has as .htaaccess file ... or you could try using a cookie? or using http://members.domain.com/ and setting a cookie.. then you won't have to worry about if they have http://domain.com or http://www.domain.com
cash69 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 07:14 PM   #24
p00p
Confirmed User
 
Join Date: Dec 2002
Location: CanaDUH
Posts: 5,125
Quote:
Originally posted by cash69
which processor are you using? im pretty sure epoch has as .htaaccess file ... or you could try using a cookie? or using http://members.domain.com/ and setting a cookie.. then you won't have to worry about if they have http://domain.com or http://www.domain.com
That isn't his problem. His authentication is working, as is his members area. Everytime he loads a movie, it pops an authentication box. This is a MS Media player issue...
__________________
ICQ: 316365783
<a href="http://www.hostultra.com/~p00p" target="_blank">TEST</a>
p00p is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 07:21 PM   #25
cash69
So Fucking Banned
 
Join Date: Oct 2002
Location: chandler, az
Posts: 1,052
Quote:
Originally posted by p00p

That isn't his problem. His authentication is working, as is his members area. Everytime he loads a movie, it pops an authentication box. This is a MS Media player issue...
Oh.. i have something that would work... not the best idea.. but it would work. Everyday you generate a new username and password for your movies and when the members click the link to download the movies.. send them to the link

http://movie_user_name:movie_pass_wo.../yourmovie.wmv

would work.. that's my only idea...
cash69 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 07:24 PM   #26
cash69
So Fucking Banned
 
Join Date: Oct 2002
Location: chandler, az
Posts: 1,052
hmm the board messes up the link.. it would look like

http:// username:password @ domain.com/members/movies.wmv

without the space
cash69 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 07:37 PM   #27
The Click
Confirmed User
 
Join Date: Apr 2003
Location: Canada
Posts: 1,685
Quote:
Originally posted by cash69
hmm the board messes up the link.. it would look like

http:// username:password @ domain.com/members/movies.wmv

without the space
actually I thought of doing that but its just not practical.
__________________


ICQ: 31-30-30
The Click is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 07:42 PM   #28
cash69
So Fucking Banned
 
Join Date: Oct 2002
Location: chandler, az
Posts: 1,052
Quote:
Originally posted by The Click


actually I thought of doing that but its just not practical.
Duno why not... you could also setup a referal url .htaaccess file on all of your movies... so no one can be posting your username and pw to the movies.. could change the username and pw every 10 minutes if needed to.. or hell.. only allow 5 logins per username and password then generate new one's.. seems good to be.. but im not a programmer.. so maybe there's bugs
cash69 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 07:45 PM   #29
p00p
Confirmed User
 
Join Date: Dec 2002
Location: CanaDUH
Posts: 5,125
I GIVE UP!
embed src would solve your problems, assuming it was the username/password box always popping up when directly downloading a video.
BUT IT FALLS ON DEAF EARS!
__________________
ICQ: 316365783
<a href="http://www.hostultra.com/~p00p" target="_blank">TEST</a>
p00p is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 07:51 PM   #30
The Click
Confirmed User
 
Join Date: Apr 2003
Location: Canada
Posts: 1,685
Quote:
Originally posted by p00p
I GIVE UP!
embed src would solve your problems, assuming it was the username/password box always popping up when directly downloading a video.
BUT IT FALLS ON DEAF EARS!
dude i have like 1200 movie clips. Its would take a year to do this. I like your idea don't get me wrong it's just not practical. I have been a member to other sites and they have no problems with a direct download link from the members section.

I think its all in my dir structure or adding a line in my .htaccess I have no clue buts it's pissin me off, and my members. I need some help!
__________________


ICQ: 31-30-30
The Click is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 07:55 PM   #31
p00p
Confirmed User
 
Join Date: Dec 2002
Location: CanaDUH
Posts: 5,125
__________________
ICQ: 316365783
<a href="http://www.hostultra.com/~p00p" target="_blank">TEST</a>
p00p is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 08:06 PM   #32
Soteko
Registered User
 
Join Date: Aug 2002
Posts: 37
And how you will do that!
What is the html code for embed clips?
Soteko is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 08:09 PM   #33
The Click
Confirmed User
 
Join Date: Apr 2003
Location: Canada
Posts: 1,685
Quote:
Originally posted by Soteko
And how you will do that!
What is the html code for embed clips?
<embed src="http://www.yourdomain.com/Trailers/Trailer.wmv" mcscalemovietofit=true height=240 width=360 autoplay=true controller=false loop=false></embed>
__________________


ICQ: 31-30-30

Last edited by hive; 05-09-2003 at 08:15 PM..
The Click is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 08:09 PM   #34
The Click
Confirmed User
 
Join Date: Apr 2003
Location: Canada
Posts: 1,685
woe, that fucked up this thread.
__________________


ICQ: 31-30-30
The Click is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 08:10 PM   #35
hive
Worker Bee
 
Join Date: Apr 2003
Posts: 90
The problem is most likely to reside inside the apache configuration file itself.

It sounds alot like a virtualhost setup incorrectly.
hive is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 08:51 PM   #36
fiveyes
Confirmed User
 
Join Date: Aug 2001
Location: New Orleans
Posts: 1,680
See the answer to the question Why does it sometimes ask me for my password twice? at http://httpd.apache.org/docs/howto/auth.html#basicfaq for why the server may be at fault. Also, check that this happens for other people, your browser could be misbehaving.
__________________
<CENTER><A HREF="http://www.hot-off-bourbon.com/" target="_blank"><IMG SRC="http://www.hot-off-bourbon.com/images/hob-logosmall.jpg" border="0"></A>

<FONT face="Comic Sans MS" SIZE="-1"><I>Mardi Gras, Spring Break, Wet-T, Night Club Action, UpSkirt, Oil Wrestling, Voyeur</I></FONT></CENTER>
fiveyes is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 08:56 PM   #37
drunkdollars
Confirmed User
 
Join Date: Apr 2002
Location: Club Drunk
Posts: 2,734
Quote:
Originally posted by The Click


I like your idea don't get me wrong it's just not practical. I have been a member to other sites and they have no problems with a direct download link from the members section.


They are prolly using refferer protection not password on the videos.
__________________
SIGS ARE GAY

98055668 icq
drunkdollars is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 09:00 PM   #38
Carlito
Confirmed User
 
Industry Role:
Join Date: Dec 2001
Location: Texas
Posts: 856
I have had this issue... since I lease a members area out to paysites...

Its quite simple...

If a surfer access the members area via " http://www.domain.com/members/ " Then all of the content inside MUST be linked via " http://www.domain.com/members/* ".

If a surfer access the inside via link "/members" then it has to be " /members/whatever " Otherwise, if a surfer visits via " http://www.whatever.com/members " then the stuff inside is linked from the members main page as " /teen/gallery1/index.php " it will ask twice, but not again unless another link it " http://www.whatever.com/teen/gallery2/index.php "

GoodLuck, ICQ me if you need further detail. I have gone thru this before. Sometimes there are issues with movies... though, that cannot be fixed.
Carlito is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 09:19 PM   #39
BV
wtf
 
BV's Avatar
 
Industry Role:
Join Date: Sep 2001
Location: Bikini State, FL USA
Posts: 10,914
Poop is correct.

When WMP opens a movie inside a protected directory your server wants to reauthenticate it like a new browser session. This all started back with WMP7 if my memory serves me correct. The only way around this is to not place your movies in an htpassword protected directory and use a special script to keep people from hotlinking them.

OR

embedding them in an html page as Poop stated should work as well if you want to go that route.
BV is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 11:38 PM   #40
programmer4hire
Registered User
 
Join Date: Aug 2002
Location: Seattle
Posts: 43
The answer is:
The username/password is cached by the browser so the member doesnt have to type it in again for each authenticated request...when you click on a file type that uses a non-inline viewer, like windows media viewer, the username and password are asked for again cause the seperate viewer has no knowledge of the username and password. You can get around this by encoding the username and password in the link on a php page... username::password@www.mydomain.com/members/some.mpg
This however will not work with mpeg4's and there is no workaround as of yet for mpeg4's.
You can thank microsoft for not thinking of this and making it anoying to the members.

Chris
__________________
Available for contract programming work. C, C++, JAVA, Perl, PHP, Delphi, MySql, Oracle. [email protected]
programmer4hire is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 11:44 PM   #41
programmer4hire
Registered User
 
Join Date: Aug 2002
Location: Seattle
Posts: 43
Quote:
Originally posted by The Click
AuthUserFile /home/clicker/public_html/cgi-bin/pass/.htpasswd
AuthName "Members Only"
AuthType Basic
Require valid-user
I would add the following to your .htaccess for extra security:

RewriteEngine on
RewriteCond %{THE_REQUEST} ^.*htaccess.*$ [OR]
RewriteCond %{THE_REQUEST} ^.*htpass.*$
RewriteRule .* http://www.mydomain.com/members [R,L]

OR

<Files ~ "^.*\.ht.*">
Order allow,deny
Deny from all
</Files>

Then no one can view your htpasswd or htaccess file.

Chris
__________________
Available for contract programming work. C, C++, JAVA, Perl, PHP, Delphi, MySql, Oracle. [email protected]
programmer4hire is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 11:48 PM   #42
p00p
Confirmed User
 
Join Date: Dec 2002
Location: CanaDUH
Posts: 5,125
OR!!!!!!!!!

Embed your media files. you all suck ass.
__________________
ICQ: 316365783
<a href="http://www.hostultra.com/~p00p" target="_blank">TEST</a>
p00p is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-09-2003, 11:53 PM   #43
cash69
So Fucking Banned
 
Join Date: Oct 2002
Location: chandler, az
Posts: 1,052
could make a simple script to embed the movies... /movie.asp?url=urlof the movie
cash69 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-10-2003, 03:12 AM   #44
programmer4hire
Registered User
 
Join Date: Aug 2002
Location: Seattle
Posts: 43
Quote:
Originally posted by programmer4hire


I would add the following to your .htaccess for extra security:

RewriteEngine on
RewriteCond %{THE_REQUEST} ^.*htaccess.*$ [OR]
RewriteCond %{THE_REQUEST} ^.*htpass.*$
RewriteRule .* http://www.mydomain.com/members [R,L]

OR

<Files ~ "^.*\.ht.*">
Order allow,deny
Deny from all
</Files>

Then no one can view your htpasswd or htaccess file.

Chris
Damn forum screwed up my post
__________________
Available for contract programming work. C, C++, JAVA, Perl, PHP, Delphi, MySql, Oracle. [email protected]
programmer4hire is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-10-2003, 04:21 AM   #45
venturi
Confirmed User
 
Join Date: Aug 2001
Location: An Oasis atop a High Desert Mesa
Posts: 386
Here's a one-time-only freebie from venturi:

The reason you are having problems is that when WinAmp or RealPlayer or WinblozeMediaPlayer fires up and tries to access the movie clip it looks like a type-in (i.e. there is no refering URL), so your .htaccess file 'thinks' it's a hotlinker and blocks the program from accessing the file. The following snippets of code are all you need to grant access to your clips while still blocking hotlinkers/cheaters/etc.

.htaccess file:

RewriteEngine on
RewriteCond %{HTTP_COOKIE} !(^|(.+;)*)id=valid(;.*|$)
RewriteRule .*$ http://www.yourdomain.com/cheaters.html

js to set the cookie:

&lt;script&gt;
document . cookie = &quot;id=valid; path=/&quot;
&lt;/script&gt;

Instructions:

1) Add the js to the &lt;head&gt; section of the document containing the links to your videos. (Note: remove the spaces in 'document . cookie' )
2) Modify the .htaccess code above to reflect your proper domain and page to redirect hotlinkers and place it into your directory/folder containing the videos you want protected.
3) Upload the files.
4) HUGE PROFITS!

p.s. - you can donate the $10 to your favorite charity (even if that happens to be me )
__________________
I'm not a porn monger. I'm a porn ... STYLIST!
Buildit Cheap, build it Fast, Build it Right. - Pick Two.
venturi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-11-2003, 09:17 AM   #46
The Click
Confirmed User
 
Join Date: Apr 2003
Location: Canada
Posts: 1,685
Quote:
Originally posted by venturi
Here's a one-time-only freebie from venturi:

The reason you are having problems is that when WinAmp or RealPlayer or WinblozeMediaPlayer fires up and tries to access the movie clip it looks like a type-in (i.e. there is no refering URL), so your .htaccess file 'thinks' it's a hotlinker and blocks the program from accessing the file. The following snippets of code are all you need to grant access to your clips while still blocking hotlinkers/cheaters/etc.

.htaccess file:

RewriteEngine on
RewriteCond %{HTTP_COOKIE} !(^|(.+;)*)id=valid(;.*|$)
RewriteRule .*$ http://www.yourdomain.com/cheaters.html

js to set the cookie:

&lt;script&gt;
document . cookie = &quot;id=valid; path=/&quot;
&lt;/script&gt;

Instructions:

1) Add the js to the &lt;head&gt; section of the document containing the links to your videos. (Note: remove the spaces in 'document . cookie' )
2) Modify the .htaccess code above to reflect your proper domain and page to redirect hotlinkers and place it into your directory/folder containing the videos you want protected.
3) Upload the files.
4) HUGE PROFITS!

p.s. - you can donate the $10 to your favorite charity (even if that happens to be me )
I have been trying to get a hold of you via ICQ for 2 days now man, your idea is great and just need a bit of help to get it running if it's not too much trouble. Thanks to everyone for helping me out on my problem!
__________________


ICQ: 31-30-30
The Click 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
Thread Tools



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.