I was doing some reconnaissance on a competitors site and noticed they are hotlinking some images from me. I honestly don't care too much about the bandwidth, but I just thought I'd have some fun with it. Is there a way I can create some sort of hotlinking "if statement" so that if another site tries to hotlink they don't get the intended image, but would get an image that stated "The intended image comes from Umpire-Empire please visit umpire-empire.com the #1 site for your umpiring needs." But I would also need to have some hotlinks available as I have even instructed people how to create hotlinks for referral purposes. Thoughts? Ideas?
Code: RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mysite\.com/ [NC] RewriteCond %{HTTP_REFERER} !^$ RewriteRule .*\.(jpe?g|gif|bmp|png)$ http://i.imgur.com/qX4w7.gif [L] This would replace any image hotlinked from mysite.com with the imgur image.. Basically exactly what you want to do.. Just edit for your needs
Awesome! Dumb question time... This goes in the htaccess file? Is there any specific place it should go? How do I identify the file where I have some images I want to allow to be hotlinked?
This goes in your htaccess yes... And you just edit this link http://i.imgur.com/qX4w7.gif Whatever you place in its place they will see
Here is a little different method. Put it in .htaccess in the directory you serve the images from and create no_permission.png and upload it to the image dir. Code: RewriteCond %{HTTP_REFERER} !^http://(.+\.)?yourdomain\.tld/ [NC] RewriteCond %{HTTP_REFERER} !^$ RewriteRule \.(gif|jpg|jpeg|png|GIF|JPG|JPEG|PNG)$ no_permission.png [L]
This coming from you actually made me laugh. Not at the comment mind you. I laugh at the clueless poster of the the comment.
I'm laughing my ass off on how dumb you are, that didn't even make sense. I'm clueless about what? That thread at xenForo? I made you look even worse, right under your nose. [****][****][****][****] off, stoopid lil Alien! [That was a joke, Alien. As you know I have nothing against you.]