| 
		
			
			
				
			
			
				 
			
			
				
			
		 | 
		
			
			
				 
			
				
			
		 | 
	||||
| 
				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 | 
| 
			
			
			
			 ►SouthOfHeaven 
			
		
			
				
			
			
			Join Date: Jun 2004 
				Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer 
				
				
					Posts: 28,609
				 
				
				
				
				 | 
	
	
	
	
		
			
			 ok heres a simple way , feel free to modify it.. if you know of any other tricks , feel free to let me know 
		
	
		
		
		
		
			Save the following as index.php and put it in a folder with your videos Code: 
	<?php $mov = $_GET['x']; echo "<center>Add an advertisement here - dont use quotes<br><embed src=$mov.wmv></embed>"; ?> ok now make a new folder in your main directory, save the following as .htaccess ( modify the url to point to the directory with your videos ) Code: 
	Options +FollowSymlinks RewriteEngine on RewriteRule ^(.*)\.wmv http://yoursite.com/videos/index.php?x=$1 [nc] Now keep in mind this doesnt actually prevent hotlinking all it does is rewrite the request to a different folder , so if you try to get http://yourserver.com/protected/video.wmv it would get the video from a different folder and write it into an html file.. the end video is still unprotected , so if someone views source of the html they can simply get the redirected movie url BUT heres what you do.. you can simply rename the folder with your protected videos then change the .htaccess file to reflect that every so often , you dont have to change any of your links as they will just be redirected to the new folder without any changes on your part synopsis. If you normally had a link like http://yourserver.com/1/video.wmv it will rewrite it as http://yourserrver.com/2/video.wmv , embed it in a page so you can add advertising , if the hotlinkers ever find where the true video resides you can simply rename the destination folder without having to change any exisiting links on your page , (i.e. you can link using http://yourserver.com/1/video.wmv and never have to change it regardless of where the real videos reside ) 
				__________________ 
		
		
		
		
	
	hatisblack at yahoo.com  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 So Fucking Banned 
			
		
			
			
			Industry Role:  
				Join Date: Apr 2001 
				Location: N.Y. -Long Island -- 
				
				
					Posts: 122,992
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 bumpooooooooooooo 
		
	
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 jellyfish  
			
		
			
			
			Join Date: Dec 2003 
				
				
				
					Posts: 71,528
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 good stuff smokey 
		
	
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Too lazy to set a custom title 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Aug 2002 
				
				
				
					Posts: 55,372
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 ya video hotlinking you will need actual software or write your own module. cause when linking videos sometimes it sends blank refer, fake refer, or anything different with images, i pay for antihotlinking.com great software. 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#5 | |
| 
			
			
			
			 ►SouthOfHeaven 
			
		
			
				
			
			
			Join Date: Jun 2004 
				Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer 
				
				
					Posts: 28,609
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 With this method though you get the added benefit from people that "think" they are hotlinking your videos but they are actually helping you make some profit.. and it works about the same way as true anti-hotlinking methods other than you have to do a little modification every now and then to keep the clever people away 
				__________________ 
		
		
		
		
		
			
		
		
	
	hatisblack at yahoo.com  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 there's no $$$ in porn 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jul 2005 
				Location: icq: 195./568.-230 (btw: not getting offline msgs) 
				
				
					Posts: 33,063
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 or you could do some crazy shit with swf + php + flv + cookies + some js.  
		
	
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 <&(©¿©)&> 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jul 2002 
				Location: Chicago 
				
				
					Posts: 47,882
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 you can do similar setup to turn jpegs into jpegs on html  
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000 Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager ![]() Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 ►SouthOfHeaven 
			
		
			
				
			
			
			Join Date: Jun 2004 
				Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer 
				
				
					Posts: 28,609
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 p.s. thehun likely wont accept a gallery using this anti-hotlink method because the script wont be able to detect if theres actual movies on the gallery ( because the requests would be handled by the php file ) .. 
		
	
		
		
		
		
			You could still use this method though by changing the php to redirect directly to the video instead of creating an html page to ebmed it into. This way your gallery will still get accepted.. ( you would then be just as prone to hotlinking, BUT you can change the destination video folder with one line of code instead of changing all the html files.. example if i made 200 hun galleries and each one had 4 videos on it.. like < a href=http://yoursite.com/hotlink/1-a.wmv>1</a> the real video would be in http://yoursite.com/differentfolder/1-a.wmv redirected using the htaccess , now if people started hotlinking your vids you simply change the destination folder to yoursite.com/newfolder, then change the 1 line of htaccess and you dont have to change 800 links on all the html pages.. its done with one simple edit. 
				__________________ 
		
		
		
		
	
	hatisblack at yahoo.com  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#9 | |
| 
			
			
			
			 ►SouthOfHeaven 
			
		
			
				
			
			
			Join Date: Jun 2004 
				Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer 
				
				
					Posts: 28,609
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 
				__________________ 
		
		
		
		
	
	hatisblack at yahoo.com  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#10 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Join Date: Aug 2005 
				Location: ICQ: 248877409 
				
				
					Posts: 8,597
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 cool stuff man 
		
	
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#11 | 
| 
			
			
			
			 ►SouthOfHeaven 
			
		
			
				
			
			
			Join Date: Jun 2004 
				Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer 
				
				
					Posts: 28,609
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 so if you wanted to get your galleries listed on the hun and cant use the above method because the script doesnt allow. then it use this. 
		
	
		
		
		
		
			If people start hotlinking the videos , all you have to do is rename the folder with the videos and change this one php line to reflect the new folder name , without having to change the html in the galleries Code: 
	<?php
$mov = $_GET['x'];
header("Location: http://yoursite.com/realvideofolder/$mov.wmv");
?>
p.s. you would use the same htaccess from above as well. 
				__________________ 
		
		
		
		
	
	hatisblack at yahoo.com  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#12 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Join Date: Apr 2004 
				Location: Denver, CO ICQ 280-752-076 
				
				
					Posts: 6,343
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Wicked info.   
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	Every Day... Bling Daddy's Masturbation Station! Bling Daddy's Masturbation Station! The Daily Bag of Douche - Humor at it's FINEST.  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#13 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Join Date: Jul 2002 
				Location: Fantasy Island 
				
				
					Posts: 1,770
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 smokey is one of the few posters here that actually has incredible info and tips to share. Thanks Smokey!!  
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	Get A $25 Circuit City GIFT Card - FREE!  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#14 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Join Date: Jul 2002 
				Location: Fantasy Island 
				
				
					Posts: 1,770
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 your last cloaking code works very well! 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	Get A $25 Circuit City GIFT Card - FREE!  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#15 | 
| 
			
			
			
			 ►SouthOfHeaven 
			
		
			
				
			
			
			Join Date: Jun 2004 
				Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer 
				
				
					Posts: 28,609
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 p..s. if anyone needs some help or modification feel free to hit me up on icq and i will walk you through it, its very simple , i'm not always on , but if i'm not doing anything im glad to help.. 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	hatisblack at yahoo.com  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#16 | |
| 
			
			
			
			 ►SouthOfHeaven 
			
		
			
				
			
			
			Join Date: Jun 2004 
				Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer 
				
				
					Posts: 28,609
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 
				__________________ 
		
		
		
		
	
	hatisblack at yahoo.com  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#17 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Join Date: Jul 2004 
				Location: Tampa Bay 
				
				
					Posts: 6,019
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Awesome!  Where's Hal with his Flash of Fucking Brilliance award? 
		
	
		
		
		
		
			
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#18 | 
| 
			
			
			
			 web 
			
		
			
			
			Join Date: Dec 2001 
				Location: On icq: 85-483-060 
				
				
					Posts: 9,533
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Great stuff one of the best GFY threads of 2006 ;) 
		
	
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#19 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Industry Role:  
				Join Date: Dec 2001 
				
				
				
					Posts: 7,952
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Isn't the $_GET part bad for security? 
		
	
		
		
		
		
		
	
	I can pass whatever I want to the variable.  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#20 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Industry Role:  
				Join Date: Dec 2001 
				
				
				
					Posts: 7,952
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 like blah x=http://www.spywaresite.com/?.wmv 
		
	
		
		
		
		
		
	
	so when you add the ? it pretty much ignores the .wmv right?  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#21 | |
| 
			
			
			
			 ►SouthOfHeaven 
			
		
			
				
			
			
			Join Date: Jun 2004 
				Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer 
				
				
					Posts: 28,609
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 change the abopve code to the following to be more secure Code: 
	<?php $mov = $_GET['x']; $mov = strip_tags($mov); echo "<center>add any html here dont use double quotes<embed src=$mov.mpg></embed>"; ?> 
				__________________ 
		
		
		
		
	
	hatisblack at yahoo.com  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#22 | 
| 
			
			
			
			 ►SouthOfHeaven 
			
		
			
				
			
			
			Join Date: Jun 2004 
				Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer 
				
				
					Posts: 28,609
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Code: 
	<?php $mov = $_GET['x']; $mov = strip_tags($mov); $url = "http://yoursite.com/header.html"; $html = file_get_contents($url); echo "$html<br><center><embed src=$mov.mpg></embed>"; ?> 
				__________________ 
		
		
		
		
	
	hatisblack at yahoo.com  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#23 | 
| 
			
			
			
			 FBOP Class Of 2013 
			
		
			
			
			Industry Role:  
				Join Date: Jan 2004 
				Location: bumfuck, ky 
				
				
					Posts: 35,562
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 smokey, I love that you are learning html man....you have been posting some cool shit lately with your new knowledge 
		
	
		
		
		
		
		
	
	I can't wait to see what you will be doing in a years time with it  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#24 | 
| 
			
			
			
			 Beer Money Baron 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jan 2001 
				Location: brujah / gmail 
				
				
					Posts: 22,157
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Smokey, just some info to pass along, in case you're interested. 
		
	
		
		
		
		
			You can look into preg_match to clean variables or test them also. Will come in especially handy if you learn regex's or know a little about them already. www.php.net/preg_match Code: 
	So then: page.php?test=filename.mpg would pass but page.php?test=`cat /etc/passwd`;etc..whatever-movie.mpg would fail. Code: 
	if( !preg_match('/^([A-Z0-9\ \-]+)\.mpg$/i',$_GET['test'],$m) ) {
        print '<span style="color:red">Test Failed. Not Allowing.</span>';
} else {            
        print '<span style="color:blue">Passed</span>: '.$m[0];            
}
				__________________ 
		
		
		
		
	
	
  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#25 | 
| 
			
			
			
			 I need a beer  
			
		
			
				
			
			
			![]() Industry Role:  
				Join Date: Jun 2002 
				Location: ♠ Toiletville ♠ 
				
				
					Posts: 133,949
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Thanks for the tip man  
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#26 | |
| 
			
			
			
			 Too lazy to set a custom title 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Aug 2002 
				
				
				
					Posts: 55,372
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 
				__________________ 
		
		
		
		
	
	Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#27 | |
| 
			
			
			
			 ►SouthOfHeaven 
			
		
			
				
			
			
			Join Date: Jun 2004 
				Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer 
				
				
					Posts: 28,609
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 like using you method if someone tried to introduce bad string it would fail using mine it wouldnt show bad stuff , but the page just might not work right ..? 
				__________________ 
		
		
		
		
		
			
		
		
	
	hatisblack at yahoo.com  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#28 | 
| 
			
			
			
			 ►SouthOfHeaven 
			
		
			
				
			
			
			Join Date: Jun 2004 
				Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer 
				
				
					Posts: 28,609
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 i did find an interesting side note though while testing bad string as input .. 
		
	
		
		
		
		
			if you make a page with <embed src=video></embed> with no file extension , and have a video in the directory named video.mpg , it will play fine.. starnge 
				__________________ 
		
		
		
		
	
	hatisblack at yahoo.com  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#29 | 
| 
			
			
			
			 ►SouthOfHeaven 
			
		
			
				
			
			
			Join Date: Jun 2004 
				Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer 
				
				
					Posts: 28,609
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 i did find an interesting side note though while testing bad string as input .. 
		
	
		
		
		
		
			if you make a page with <embed src=video></embed> with no file extension , and have a video in the directory named video.mpg , it will play fine.. starnge 
				__________________ 
		
		
		
		
	
	hatisblack at yahoo.com  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#30 | |
| 
			
			
			
			 Beer Money Baron 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jan 2001 
				Location: brujah / gmail 
				
				
					Posts: 22,157
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 REPLACE THIS: Code: 
	$mov = $_GET['x']; $mov = strip_tags($mov); Code: 
	if( preg_match('/^([a-z0-9\ \-]+)\.mpg$/i',$_GET['x'],$m) ) {
 $mov = $m[0];
}
				__________________ 
		
		
		
		
	
	
  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#31 | |
| 
			
			
			
			 ►SouthOfHeaven 
			
		
			
				
			
			
			Join Date: Jun 2004 
				Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer 
				
				
					Posts: 28,609
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 
				__________________ 
		
		
		
		
	
	hatisblack at yahoo.com  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#32 | 
| 
			
			
			
			 ►SouthOfHeaven 
			
		
			
				
			
			
			Join Date: Jun 2004 
				Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer 
				
				
					Posts: 28,609
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 but the file extension  isnt passed along with the strin "x" just the filename 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	hatisblack at yahoo.com  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#33 | 
| 
			
			
			
			 Bland for life 
			
		
			
			
			Industry Role:  
				Join Date: Nov 2004 
				
				
				
					Posts: 10,468
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Smokey I'd love to have access to your script archive! 
		
	
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#34 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Industry Role:  
				Join Date: Sep 2002 
				
				
				
					Posts: 5,391
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Now this a useful post ... why can't there be more like that! 
		
	
		
		
		
		
		
	
	Good job!  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#35 | 
| 
			
			
			
			 ►SouthOfHeaven 
			
		
			
				
			
			
			Join Date: Jun 2004 
				Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer 
				
				
					Posts: 28,609
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 ok heres a more secure method 
		
	
		
		
		
		
			the other one could be exploited by ?x=file%20onload=badstuff> ( nothing serious but just to be sure lets try this one sorry for the slopiness im new Code: 
	<?php
$mov = $_GET['x'];
$mov = strip_tags($mov);
$mov = str_replace(">", "", $mov);
$mov = str_replace(" ", "", $mov);
echo "<center>Add an advertisement here - dont use quotes<br><embed src=$mov.wmv></embed>";
?>
				__________________ 
		
		
		
		
		
			
		
		
	
	hatisblack at yahoo.com  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#36 | 
| 
			
			
			
			 Workin With The Devil 
			
		
			
			
			Industry Role:  
				Join Date: Oct 2004 
				Location: West Bloomfield, MI 
				
				
					Posts: 51,532
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Badass thanks Smokey 
		
	
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#37 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Join Date: May 2001 
				
				
				
					Posts: 2,944
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 This code has been around for a quite a while for displaying still images in neatly formatted pages when they are called up "bare". It works just fine with type-ins or when another site provides a link to your image: then your server will redirect the request and deliver the pic up in its page. But if someone hotlinks the image itself via "img src", you will just see the usual red "x" (or nothing, depending on your browswer). 
		
	
		
		
		
		
		
		
			
		
		
	
	It doesn't matter how tricky you get, browser's will not allow you to deliver anything except an image if an image is what they were expecting. Whether movies present the same problem I don't know, but have you checked that?  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#38 | |
| 
			
			
			
			 ►SouthOfHeaven 
			
		
			
				
			
			
			Join Date: Jun 2004 
				Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer 
				
				
					Posts: 28,609
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 Most people link to the videos.. thiw wouldn't work if you ran filecabi.net , but it would work on galleries 
				__________________ 
		
		
		
		
		
			
		
		
	
	hatisblack at yahoo.com  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#39 | |
| 
			
			
			
			 Beer Money Baron 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jan 2001 
				Location: brujah / gmail 
				
				
					Posts: 22,157
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 
				__________________ 
		
		
		
		
	
	
  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#40 | |
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Join Date: May 2001 
				
				
				
					Posts: 2,944
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 For anyone who tries using that version for images, I had to alter one of the htaccess lines to get it to work, putting: Code: 
	RewriteRule (.*) /showpic.php?pic=protected_directory/$1 Code: 
	RewriteRule (.*) /showpic.php?pic=$1  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#41 | 
| 
			
			
			
			 Beer Money Baron 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jan 2001 
				Location: brujah / gmail 
				
				
					Posts: 22,157
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 I used to host with xcite.net and Mike had a great page up with some info about protecting your videos.  Not sure how relevant it will be today, but here it is. 
		
	
		
		
		
		
			http://www.xcite.net/resources/index.html 
				__________________ 
		
		
		
		
	
	
  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 |