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 01-03-2005, 04:26 PM   #1
StuBradley
Confirmed User
 
StuBradley's Avatar
 
Join Date: Jul 2002
Location: Las Vegas
Posts: 2,625
.htaccess help

I noticed that in the member's area of Amateur-Facials.com you cannot download their video clips (when you right-click and "Save as" you get a generic .html page) I looked at their source code and couldn't find anything different about their links and didn't see any java scripts. I'm thinking that it must be something in the .htaccess file that prevents the saving of certain file types (kind of like hotlink protection). Any ideas how this is done?

__________________

51-566-514
StuBradley is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2005, 05:40 PM   #2
BackToMine
Confirmed User
 
Join Date: Nov 2004
Posts: 541
probably yes.

you've been checking out the competition's members area havn't you?

Anyway when i want to beat .htaccess when leeching from members area in GetRight:

Configuration -> Advanced -> Protocols -> Check "Send Referer in HTTP requests" -> Check "Random from the download URL"
BackToMine is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2005, 05:53 PM   #3
xxxdesign-net
My hips don't lie
 
Industry Role:
Join Date: Nov 2002
Posts: 10,129
when clicking "save traget as" .. did it do something like vid1.mpg.html ...?
xxxdesign-net is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2005, 06:14 PM   #4
StuBradley
Confirmed User
 
StuBradley's Avatar
 
Join Date: Jul 2002
Location: Las Vegas
Posts: 2,625
Quote:
Originally Posted by xxxdesign-net
when clicking "save traget as" .. did it do something like vid1.mpg.html ...?
Actually, it was going to "main.html". However, when I went to double check it just now it let me download the movie...very odd.

__________________

51-566-514
StuBradley is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2005, 06:18 PM   #5
TheMob
Confirmed User
 
Join Date: Jan 2003
Location: 2006
Posts: 8,584
hmm, interesting thread. i want to know too.
TheMob is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2005, 08:24 PM   #6
Centurion
Confirmed User
 
Industry Role:
Join Date: Dec 2002
Location: SeATtle
Posts: 6,033
Quote:
Originally Posted by xxxdesign-net
when clicking "save traget as" .. did it do something like vid1.mpg.html ...?
I get something like this from a picture site when I try and save a jpeg.
Is this a java script blocking this or something else? Any way of getting around it so you can actually save the jpegs to your own hard drive?
__________________
Centurion is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2005, 10:37 PM   #7
Workshop_Willy
Confirmed User
 
Join Date: Oct 2004
Location: Southern California
Posts: 452
Quote:
Originally Posted by StuBradley
I noticed that in the member's area of Amateur-Facials.com you cannot download their video clips (when you right-click and "Save as" you get a generic .html page) I looked at their source code and couldn't find anything different about their links and didn't see any java scripts. I'm thinking that it must be something in the .htaccess file that prevents the saving of certain file types (kind of like hotlink protection). Any ideas how this is done?

Well I don't know how this is being done by those guys, but here's one of the tools I've always used to stop hotlinkers:

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com/ [NC] [OR]
RewriteCond %{HTTP_REFERER} !^http://mydomain.com/ [NC] [OR]
RewriteCond %{HTTP_REFERER} !^http://www.anotherOKdomain.com/ [NC] [OR]
RewriteCond %{HTTP_REFERER} !^http://anotherOKdomain.com/ [NC] [AND]
RewriteCond %{REQUEST_FILENAME} ^.+jpg [NC]
RewriteRule /* URL.gif

Translation:
"If the referring URL does not contain "http://blah.blah.blah" [OR]
"http://blah.blah" (etc etc) [AND]
The requested filename ends in ".jpg"
Give them this instead (in this case, a handy little cute GIF file advertising your paysite).

Pretty part: The URL window of the browser or any requesting client reports that it's giving you the ".jpg" that you asked for.


You can add conditionals to this, for instance, by adding:
RewriteCond %{REQUEST_FILENAME} ^.+jpg [OR]
RewriteCond %{REQUEST_FILENAME} ^.+mpg [NC]

You get the point. This snippet is intended to keep people from hotlinking (for instance, from those DAMNABLE Chinese BBS's. It doesn't prevent your legitimate members from using an automatic download tool, although you can make some tweaks combined with some php or dhtml code to prevent that as well.

This htaccess code (you can simply add it to anything you already have in htaccess or use it by itself) goes into the directory you want to protect, along with whatever replacement file you want to send the hotlinker. This is just a basic framework. Once you understand the logic of the code, you can use proper syntax to make it pretty elaborate.
Workshop_Willy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2005, 11:20 PM   #8
d00t
Confirmed User
 
Industry Role:
Join Date: Sep 2002
Location: In your mind
Posts: 3,766
search google for htaccess protection... there is HEAPS of tutorials around for this kind of thing..
d00t is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-04-2005, 01:06 AM   #9
klinton
So Fucking Banned
 
Industry Role:
Join Date: Apr 2003
Location: online
Posts: 8,766
Quote:
Originally Posted by StuBradley
I noticed that in the member's area of Amateur-Facials.com you cannot download their video clips (when you right-click and "Save as" you get a generic .html page)
you can
klinton is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-04-2005, 01:32 AM   #10
TheMob
Confirmed User
 
Join Date: Jan 2003
Location: 2006
Posts: 8,584
hmm, I will ahve yo try that
TheMob 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.