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)
-   -   is there way to protect flv videos from hotlinking? (https://gfy.com/showthread.php?t=920439)

Phil 08-07-2009 09:03 AM

is there way to protect flv videos from hotlinking?
 
Anything out there that works against Turks and Chinese guys hotlinking your flv files?

madm1k3 08-07-2009 10:59 AM

bump, i'm interested too.

fris 08-07-2009 11:00 AM

http://trafficguardian.com/

Phil 08-07-2009 09:10 PM

does it work for flash files? looks like htaccess thing. I can do that myself.

SmokeyTheBear 08-07-2009 09:22 PM

i have a simple method that will also generate revenue without having to alter existing links/code much.

Most flv players will also play playlists even if the extension is flv. using playlists you can insert ads or promo clips after or before the video.

example

lets say your flvs are in http://mysite.com/videos/sample1.flv

and your embed code is like http://mysite.com/myplayer.swf?file=...os/sample1.flv

first change the flv folder to "secret"

then remake the flv folder and drop in this htaccess
Code:

RewriteEngine on

 RewriteRule ^(.*)\.flv index.php?x=$1 [nc]

then make an index.php and place the following inside it ( dynamic playlist creator )

Code:


<?php

header('Cache-Control: no-cache, must-revalidate');

header('Content-type: video/x-ms-asf');

$x = $_GET['x'];


?>

<asx version="3.0">

        <title>title</title>



        <entry>

                <title>title</title>



                <author>SmokeyTheBear</author>

                <abstract>Hello World</abstract>

                <moreinfo href="http://sponsorlink.com" />

                <ref href="http://mysite.com/secret/<?php echo $x; ?>.flv" />

   

        </entry>



        <entry>

                <title>an ad after the video</title>



                <author>SmokeyTheBear</author>

                <abstract>Hello World</abstract>

                <moreinfo href="http://sponsorlink.com" />

                <ref href="http://mysite.com/promoclip.flv" />

   

        </entry>



</asx>

so now when they hotlink your flv they will be hotlinking your playlist with ad and promoclip

now lets say they are smart and read the playlist to find the secret flv folder, no problem , just rename the master flv folder and change the path in the index.php in one simple place every so often and they will be thwarted. :)

munki 08-07-2009 09:32 PM

Quote:

Originally Posted by SmokeyTheBear (Post 16160048)
i have a simple method that will also generate revenue without having to alter existing links/code much.

Most flv players will also play playlists even if the extension is flv. using playlists you can insert ads or promo clips after or before the video.

example

lets say your flvs are in http://mysite.com/videos/sample1.flv

and your embed code is like http://mysite.com/myplayer.swf?file=...os/sample1.flv

first change the flv folder to "secret"

then remake the flv folder and drop in this htaccess
Code:

RewriteEngine on

 RewriteRule ^(.*)\.flv index.php?x=$1 [nc]

then make an index.php and place the following inside it ( dynamic playlist creator )

Code:


<?php

header('Cache-Control: no-cache, must-revalidate');

header('Content-type: video/x-ms-asf');

$x = $_GET['x'];


?>

<asx version="3.0">

        <title>title</title>



        <entry>

                <title>title</title>



                <author>SmokeyTheBear</author>

                <abstract>Hello World</abstract>

                <moreinfo href="http://sponsorlink.com" />

                <ref href="http://mysite.com/secret/<?php echo $x; ?>.flv" />

   

        </entry>



        <entry>

                <title>an ad after the video</title>



                <author>SmokeyTheBear</author>

                <abstract>Hello World</abstract>

                <moreinfo href="http://sponsorlink.com" />

                <ref href="http://mysite.com/promoclip.flv" />

   

        </entry>



</asx>

so now when they hotlink your flv they will be hotlinking your playlist with ad and promoclip

now lets say they are smart and read the playlist to find the secret flv folder, no problem , just rename the master flv folder and change the path in the index.php in one simple place every so often and they will be thwarted. :)

thexiness

d-null 08-07-2009 10:48 PM

nice technique and very well explained Smokey :thumbsup

SmokeyTheBear 08-07-2009 11:56 PM

what i do is go one step further and instead of using the flv url in the embed code you just use a simple dynamic swf url

so instead of adding all your params to the swf flv player in the embed code like logo=&link=&file=

you just use <embed src=http://mysite.com/swf/1789234.swf>

the swf folder uses htacces to run thru a php script the php script checks referrer and only makes the asx file if the swf is hotlinked ( so you can display different/more/less ads when they are on your site compared to when someone hotlinks or uses the embed code ) , plus you can have super short embed codes instead of long ones :)

st0ned 08-08-2009 12:49 AM

Great information Smokey. Thanks for sharing! :thumbsup

quantum-x 08-08-2009 01:07 AM

Or, use a combination of ModSecURL + referrer blocking.

#1 - ModSecURL creates rolling URLS that change every X minutes. Even if people spread your links, the links die after X minutes.

#2 - All flash players (ALL) send referrer information. You can simply use .htaccess to whitelist certain domains / urls.

Davy 08-08-2009 01:48 AM

Google gives no results for modsecurl.
What's the real name for this extension?

quantum-x 08-08-2009 02:25 AM

Sorry, mod_sec I believe

seeandsee 08-08-2009 04:51 AM

we need security expert to make something

fris 08-08-2009 07:04 AM

Quote:

Originally Posted by CAMOKAT (Post 16160035)
does it work for flash files? looks like htaccess thing. I can do that myself.

its an apache module, dosnt work the same as htaccess


All times are GMT -7. The time now is 04:56 AM.

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