Forum Moderators: phranque

Message Too Old, No Replies

Hotlinking help.

         

davidh6781

9:18 am on Jun 3, 2009 (gmt 0)

10+ Year Member



As i mentioned in the graphics section some one is hotlinking and using my bandwidth and if i could read the text probs the text but its the images i am more concerned as these take my usage levels up.

Any way could some one advise me on htaccess file, i would require ebay to be a ok to hotlink source but no were else.

i am not 100% knowledge with htaccess, but getting there as i learn more.

hope that makes sense,

thank you.

g1smd

9:41 am on Jun 3, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



This question comes up several times per month.

[google.com...]

Read at least a dozen of these to get the wider picture and a selection of different types of code, before deciding what to implement.

Post your best effort code back here for further discussion and clarification...

davidh6781

10:43 am on Jun 3, 2009 (gmt 0)

10+ Year Member



ok fair enough, i probs done the the search before posting.

any way this seems like a standard thing to use

RewriteEngine on
RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^http://(www\.)?mydomain.com/.*$ [NC]
rewriterule \.(gif¦jpg)$ [mydomain.com...] [R,L]

if i want ebay to be ok as i sell stuff on there and host my own pics how is this done? Would the abvoe also stop google images and such like?

g1smd

1:21 pm on Jun 3, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The negative match condition listing the allowed domain would need to be replicated for each domain you wish to allow...