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)
-   -   ANTI-HOTLINKING for videos (https://gfy.com/showthread.php?t=702953)

SmokeyTheBear 02-04-2007 04:23 PM

ANTI-HOTLINKING for videos
 
Just finished a little script to protect against video hotlinking.


http://tools.webspacemania.com/vprotect/1/fudge.wmv

Basically what the script does is disables videos unless the person linking or hotlinking the video has a banner for the site displayed..

http://tools.webspacemania.com/vprotect/make.php
now visit this page you will see a banner.. close it and come back and try the link again and you will notice the video works fine now

If anyone is interested in the details let me know.

This is a GREAT move for sponsors, as it allows you to ALLOW your affiliates to hotlink your videos easily AND promote your site while disallowing blatant hotlinking..

There are many features that can be added to provide even more functionality. such as adding popups if people try to hotlink the videos ( but still allowing the video to be played ) or displaying alternate videos

Its also built to allow individual banners for each video before they can have access ( so they cant just view the banner once then view all the videos )

SmokeyTheBear 02-04-2007 04:27 PM

p.s. its really easy to add to your existing site.

I thought up the idea while i had my afternoon nap and coded and installed it in less than half an hour. all you gotta do is put it in place

SmokeyTheBear 02-06-2007 07:49 PM

figure i would bump this as i dont see many people utilizing any sort of hotlink protection for videos

SmokeyTheBear 02-06-2007 08:24 PM

its actually pretty cool because the end url cannot be detected . well it can but its useless.

The actual url of the video is in a folder with your ip in it.. so when you view the image it records your ip , it checks ip log , if your not on it you get served a diff video, if you ARE on the list having viewed the banner , then the folder containing the video is renamed to your ip , and then you are sent there.. :) although if you gotta shitload of people theres a diff way of doing it ( as the folder might get renamed before the last guy has finished watching

SmokeyTheBear 02-06-2007 08:26 PM

basically your forwarding your videos from one folder to another thus your perm video link always stays the same but the real video link is changing all the time , so if anyone copies it ( the real url ) , it will work for a short time ( or in the above case it would only work for them )

Jace 02-06-2007 08:27 PM

very nice man!

I would grab it from you, but my new tours are all using flash video embeds

Space Monkey 02-06-2007 08:29 PM

Can't believe you have gotten more response than this?

Very nice code, champ. I will be looking into it (and perhaps I cant host it on a site I own? The code that is).

Brad Mitchell 02-06-2007 09:07 PM

Hey that's pretty cool! Send me an email if you are interested in licensing it out.

Cheers,

Brad

SmokeyTheBear 02-06-2007 09:37 PM

Quote:

Originally Posted by Brad Mitchell (Post 11873656)
Hey that's pretty cool! Send me an email if you are interested in licensing it out.

Cheers,

Brad

well i always enjoy sharing my ideas so i'll post some dirty code here for your programmers to clean up for free.

If you want something custom i would be happy to create something cool for you for whatever time is costs me.

CaptainHowdy 02-06-2007 09:53 PM

Mad stuff as usual, Smokey!!

TheHatchet 02-06-2007 10:01 PM

Very Nice!!

The Sultan Of Smut 02-06-2007 10:06 PM

I'm glad you bumped this thread I almost missed it! Awesome job Smokey!

Myst 02-06-2007 10:28 PM

theres an easier way to do it..
make a .htaccess file and redirect all requests to video files to a php script (sending of course the name of the file requested)

in the php file check to see if the person is 'allowed' to download the file (cookie, referer, ip, whatever) and use readfile() to let the user download the file if its ok; otherwise u can send em to another file, or a website (header(Location:.... ))

Brad Mitchell 02-06-2007 11:54 PM

I wouldn't recommend posting your code here.. Even if it's dirty, it might have some value - your idea is inevidably worth something to multiple parties. We're always looking for neat tools to give to our clients for free. Shit, I spent 5 digits so that we could give MojoHost clients LinkSentinal (antihotlinking protection created by the makers of ProxyPass)... for free.

:)

Brad

Myst 02-07-2007 12:05 AM

Quote:

Originally Posted by Brad Mitchell (Post 11874228)
I wouldn't recommend posting your code here.. Even if it's dirty, it might have some value - your idea is inevidably worth something to multiple parties. We're always looking for neat tools to give to our clients for free. Shit, I spent 5 digits so that we could give MojoHost clients LinkSentinal (antihotlinking protection created by the makers of ProxyPass)... for free.

:)

Brad

5 digits? :1orglaugh :1orglaugh :1orglaugh

Brad Mitchell 02-07-2007 12:07 AM

Quote:

Originally Posted by Myst (Post 11874269)
5 digits? :1orglaugh :1orglaugh :1orglaugh

One Two Three Four Five :thumbsup

It's a great product, much more sophisticated than you are anticipating.

Brad

BV 02-07-2007 12:16 AM

i like to be linkhotted

SmokeyTheBear 02-07-2007 12:37 AM

Quote:

Originally Posted by Myst (Post 11873945)
theres an easier way to do it..
make a .htaccess file and redirect all requests to video files to a php script (sending of course the name of the file requested)

in the php file check to see if the person is 'allowed' to download the file (cookie, referer, ip, whatever) and use readfile() to let the user download the file if its ok; otherwise u can send em to another file, or a website (header(Location:.... ))

thats basically what this does , ceptin your method wouldnt really allow affiliates to hotlink your videos..

I invented this method for sponsors so anyone displaying a banner for the appropriate site can display or even embed the videos..

The Sultan Of Smut 02-07-2007 12:38 AM

Quote:

Originally Posted by Brad Mitchell (Post 11874228)
I wouldn't recommend posting your code here.. Even if it's dirty, it might have some value - your idea is inevidably worth something to multiple parties. We're always looking for neat tools to give to our clients for free. Shit, I spent 5 digits so that we could give MojoHost clients LinkSentinal (antihotlinking protection created by the makers of ProxyPass)... for free.

:)

Brad

Booooooooooooooooooo :(

Myst 02-07-2007 03:09 AM

Quote:

Originally Posted by SmokeyTheBear (Post 11874417)
thats basically what this does , ceptin your method wouldnt really allow affiliates to hotlink your videos..

I invented this method for sponsors so anyone displaying a banner for the appropriate site can display or even embed the videos..

when the request for the image is called, the ip can be added to the database (or cookie sent, etc); then when the video is called it will see that the ip is allowed to download the file =)

SmokeyTheBear 02-07-2007 04:09 AM

Quote:

Originally Posted by Myst (Post 11874860)
when the request for the image is called, the ip can be added to the database (or cookie sent, etc); then when the video is called it will see that the ip is allowed to download the file =)

thats basiclly what im doing in a nutshell..

Not saying its some huge complicated process , but i dont see many people using it.

jmk 02-07-2007 05:49 AM

Quote:

Originally Posted by Myst (Post 11874269)
5 digits? :1orglaugh :1orglaugh :1orglaugh

not that much for a script that might save just one customer 6 digits (over a few months or less)
And yes he might have been able to find it cheaper but still if something works and is top notch ... don't refrain from paying a fair price.

I think it's actually great of him to try to add value to his services :thumbsup

ModelPerfect 02-07-2007 07:51 AM

Cool idea!

Brad Mitchell 02-07-2007 10:48 AM

Quote:

Originally Posted by jmk (Post 11875411)
not that much for a script that might save just one customer 6 digits (over a few months or less)
And yes he might have been able to find it cheaper but still if something works and is top notch ... don't refrain from paying a fair price.

I think it's actually great of him to try to add value to his services :thumbsup

Why thank you :winkwink:

Everybody that does MGPs and has video heavy tours could benefit from movie hotlink protection. Saves a ton of headache and bandwidth, we think!

Brad

Calvinguy 02-07-2007 12:14 PM

I found that solution on google 4 years ago

u-Bob 02-07-2007 01:41 PM

Quote:

Originally Posted by SmokeyTheBear (Post 11873461)
..., then the folder containing the video is renamed to your ip , and then you are sent there.. :) although if you gotta shitload of people theres a diff way of doing it ( as the folder might get renamed before the last guy has finished watching

using symlinks instead of renaming would solve that problem...

Snake Doctor 02-08-2007 03:23 PM

Would something like this work for a guy who just builds movie galleries and gets say 500K unique visitors per day?

If it can handle that kind of load I'm very interested

SmokeyTheBear 02-08-2007 03:47 PM

Quote:

Originally Posted by Lenny2 (Post 11884528)
Would something like this work for a guy who just builds movie galleries and gets say 500K unique visitors per day?

If it can handle that kind of load I'm very interested

i dont think that should be a problem..

I'll toss the code here sometime today

Brad Mitchell 02-08-2007 07:10 PM

Quote:

Originally Posted by Lenny2 (Post 11884528)
Would something like this work for a guy who just builds movie galleries and gets say 500K unique visitors per day?

If it can handle that kind of load I'm very interested

LinkSentinal can certainly handle that load! Or, if you want a host to work with you to put this script into use just give me a call/email/icq :)

Brad

Argoz 02-08-2007 08:22 PM

Cool idea!:drinkup

latinasojourn 02-08-2007 09:34 PM

Quote:

Originally Posted by Calvinguy (Post 11877172)
I found that solution on google 4 years ago

are you referring to this? and if so, does this work?:

http://www.safalra.com/programming/p...nt-hotlinking/

DirtyDave 02-09-2007 02:15 AM

I would really appreciate getting that script. I was going to send you a message but I can't seem to see a way to contact you.

Thanks.

SmokeyTheBear 02-09-2007 02:23 AM

Quote:

Originally Posted by latinasojourn (Post 11886247)
are you referring to this? and if so, does this work?:

http://www.safalra.com/programming/p...nt-hotlinking/

dunno but thats kind of what im doing but i think he made it alot more complicated.. dont worry ill post the code here when i have a second to write up how t o use it , tonight or tomorrow

SmokeyTheBear 02-09-2007 12:42 PM

http://www.gofuckyourself.com/showthread.php?t=704709

modF 02-09-2007 12:56 PM

Very nice job Smokey, although I was kinda hoping for a crash at the end of that race... Have I been watching too much youtube? :)


All times are GMT -7. The time now is 11:41 AM.

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