View Full Version : How to stop CUT & PASTE hotlinking with htaccess??
MikeG
03-06-2002, 03:10 PM
Clicking from a page on another site will not work, but to cut and paste the link to my pics and movies does work! How to prevent this?<br /><br />Thanks
justsexxx
03-06-2002, 03:25 PM
Hi I use this one<br /><br />ErrorDocument 400 <a href="http://www.yourdomain.com" target="_blank">http://www.yourdomain.com</a><br />ErrorDocument 401 <a href="http://www.yourdomain.com" target="_blank">http://www.yourdomain.com</a><br />ErrorDocument 403 <a href="http://www.yourdomain.com" target="_blank">http://www.yourdomain.com</a><br />ErrorDocument 404 <a href="http://www.yourdomain.com" target="_blank">http://www.yourdomain.com</a><br />ErrorDocument 410 <a href="http://www.yourdomain.com" target="_blank">http://www.yourdomain.com</a><br />ErrorDocument 500 <a href="http://www.yourdomain.com" target="_blank">http://www.yourdomain.com</a><br /><br />RewriteEngine On<br />RewriteOptions inherit<br />RewriteCond %{HTTP_USER_AGENT} ^DISCo\Pump.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^Drip.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^EirGrabber.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^FlashGet.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^GetRight.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^Gets.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^Go-Ahead-Got-It.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^Grafula.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^IBrowse.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^InterGET.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^Internet\Ninja.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^JetCar.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^JustView.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^MIDown\tool.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^Mister\PiX.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^NearSite.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^NetSpider.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^Offline\Explorer.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^PageGrabber.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^Papa\Foto.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^Pockey.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^ReGet.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^Slurp.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^SpaceBison.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^SuperHTTP.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^Teleport.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^Teleport\Pro.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^WebAuto.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^WebCopier.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^WebFetch.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^WebReaper.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^WebSauger.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^WebStripper.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^WebWhacker.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^WebZIP.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^Web\Image\Collector.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^Web\Sucker.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^Webster.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^Wget.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^eCatch.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^ia_archiver.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^lftp.* [OR]<br />RewriteCond %{HTTP_USER_AGENT} ^tAkeOut.* <br />RewriteRule .* <a href="http://www.notyours.com[R,L]" target="_blank">http://www.notyours.com[R,L]</a><br /><br />RewriteCond %{HTTP_REFERER} !^http://w*\.*yourdomain.com<br />RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ <a href="http://www.domain/wrong.html" target="_blank">http://www.domain/wrong.html</a> [R,L]
I was going to also paste a code for do it but there is no need to since its very similiar to justsexxx code (so that means it works <img border="0" title="" alt="[Wink]" src="wink.gif" /> lol)
MikeG
03-06-2002, 03:51 PM
Thanks for helping HALFWAY. It beats the .jpg cut and paste but not the .mpeg cut and paste. I still get through! Should something be added to this on a UNIX server?<br /><br />[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$<br /><br />Thanks
darksoft
03-06-2002, 04:20 PM
MikeG,<br /><br />Email me and I can fix it for you.<br /><br />webmaster at myhottiez dot com
arthurdent
03-06-2002, 04:32 PM
</font><blockquote><font size="1" face="Verdana, Arial">quote:</font><hr /><font size="2" face="Verdana, Arial">Originally posted by Rui:<br /><strong>I was going to also paste a code for do it but there is no need to since its very similiar to justsexxx code (so that means it works <img border="0" title="" alt="[Wink]" src="wink.gif" /> lol)</strong></font><hr /></blockquote><font size="2" face="Verdana, Arial">This code doesn't work with FlashGet...<br /><br />peace
darksoft
03-06-2002, 04:43 PM
That's because you need to cut flashget off at the balls. That is one of the site suckers and needs to be handled differently.<br /><br /><a href="http://www.myhottiez.com/nohotlink.html" target="_blank">http://www.myhottiez.com/nohotlink.html</a> is a good place to start, tho that htaccess needs to be modified... I will be upgrading it soon but it is a very good start.
arthurdent
03-06-2002, 04:51 PM
I'm not sure, but I think, this code doesn’t work with any programs that use "Referrer URL"...<br /><br />peace
MikeG
03-06-2002, 05:08 PM
The prob is still the code given WORKS against hotlinking from a PAGE but not when cutting and pasting the link in your browser - this with the mpg, mpeg, avi files. <br /><br />Is there a solution?
darksoft
03-06-2002, 10:52 PM
I told you I had a solution and you didn't want it. Guess you get stuck with the hotlinkers.
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.