Forum Moderators: phranque

Message Too Old, No Replies

please check my .htaccess

         

phprockz

6:03 pm on Mar 10, 2006 (gmt 0)

10+ Year Member



Hi,
I found some sites hotlinking my videos so i dediceded to block them accessing my downloads.So i used IP deny manager to block hotlinking sites.It created htacess like this

<Files 403.shtml>
order allow,deny
allow from all
</Files>

deny from 70.86.231.168
deny from 195.66.135.132
deny from 209.97.221.150

will this protect my downloads?.
will it affect google bot crawling my site?

Grinler

9:03 pm on Mar 10, 2006 (gmt 0)

10+ Year Member



This is not going to affect the site hotlinking you but rather block the ip addresses of those users downloading the video off your site.

What you should do is instead create a small video acting as an ad for your site. Then when a visitor of the hotlinking site opens the video, they will instead see your ad. If someone opens the video on your site though it woill work like normal.

RewriteCond %{REQUEST_FILENAME} .*avi$¦.*mpg$¦.*mov$ [NC]
RewriteCond %{HTTP_REFERER} hotlinkingsite.com [NC]
RewriteRule (.*) /videos/advertisement.avi [L]

phprockz

5:13 am on Mar 11, 2006 (gmt 0)

10+ Year Member



Wow it worked with one site..but i need to block 4-5 websites so i did like this

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} .*rm$¦.*mp3$ [NC]
RewriteCond %{HTTP_REFERER} #*$!xxxxx.com [NC]
RewriteCond %{HTTP_REFERER} xxxxxxxx.com [NC]
RewriteRule (.*) /downloads/sample.rm [L]

By doing so its not blocking .do i need to modify code.plz let me know.