Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Old 10-09-2006, 08:35 AM hotlinking code
Extreme Talker

Posts: 183
Trades: 0
can anyone provide me with the code to put into the ht.access file to stop hotlinking to my images and downloads (.zip & rar files) . My site is www.animedls.com and i provide users with loads of downlaod files but i think people are hotlinking to my zip and rar files ?? what code do i put in to stop this happening?

many thanks
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
jeffmcsheff is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-09-2006, 09:13 AM Re: hotlinking code
Extreme Talker

Posts: 183
Trades: 0
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?animedls.com/.*$ [NC]
RewriteRule \.(gif|jpg|js|css|zip|rar)$ - [F]



would this code work , and stop hotlinking to my zip and rar files?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
jeffmcsheff is offline
Reply With Quote
View Public Profile
 
Old 10-10-2006, 04:22 AM Re: hotlinking code
Extreme Talker

Posts: 189
Trades: 1
What if they send a fake referer? That can be done easily with a download manager such as FlashGet
__________________

Please login or register to view this content. Registration is FREE
yellow1912 is offline
Reply With Quote
View Public Profile Visit yellow1912's homepage!
 
Old 10-10-2006, 04:23 AM Re: hotlinking code
Extreme Talker

Posts: 183
Trades: 0
ok so what do you think the code shoudl be to stop hotlinikng to my media files?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
jeffmcsheff is offline
Reply With Quote
View Public Profile
 
Old 10-10-2006, 11:41 AM Re: hotlinking code
Extreme Talker

Posts: 189
Trades: 1
There are a few good script out there, you can check sourceforge, look for something called antileech (I dont remember the exact name). You can then store your file out of the ROOT and have the script output the files for download. It may put stress on the server tho.
__________________

Please login or register to view this content. Registration is FREE
yellow1912 is offline
Reply With Quote
View Public Profile Visit yellow1912's homepage!
 
Reply     « Reply to hotlinking code
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.59818 seconds with 12 queries