|
|
|
|
|
|
![]() |
#1 |
Former pr0n slinger.
|
Redirecting picture hotlinkers
Hi,
I'm being hotlinked on this page right here So I put up a .htaccess file that forwards these hotlinking bastards to a paysite. But because they load the images on their site only a red X shows up and there's no visible forward (sponsor does count the hits). Anyone know a code that I can use to let that paysite "break out" of this image placeholder? Thanx |
![]() |
![]() |
![]() |
#2 |
Nobody gets into heaven without a glowstick
Join Date: Feb 2005
Posts: 423
|
I dont have one that will do that, but I have one that replaces the gif or jpg or jpeg being hotlinked with another image you specify (such as one that says "visit my site to see all of my images" with your url)
RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com/.*$ [NC] RewriteCond %{REQUEST_URI} !^/replaceimage\. RewriteRule \.(gif|jpe?g)$ /replaceimage.$1 [NC,L] replace "yourdomain.com" with your domain of course. replace "replaceimage" (in both places) with an unusual and unique name that you will never name a "real" image! Thats important! (name it something like: qsgrt3lkhj or something) Then you need to create a gif, jpg and jpeg version of your image! ie: qsgrt3lkhj.gif qsgrt3lkhj.jpg qsgrt3lkhj.jpeg The code will see where the request comes from, if it isn't blank or yourdomain, and if the image being requested is NOT your "replaceimage", it will replace the image with your new image which you've made. Hope that makes sense..
__________________
PimpRoll |
![]() |
![]() |
![]() |
#3 |
Former pr0n slinger.
|
Yeah I know how to do that but I want to redirect the surfer directly to the sponsor's site.
Thanx for the reply anyway ![]() |
![]() |
![]() |
![]() |
#4 |
a.k.a. Sparky
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
|
since the surfer is expecting an image, redirecting them to the site will do nothing more than create a fake 'click' on the sponsors page.
You have to hand them an image or something. You could always hand them an image with the site name that you want to advertise.
__________________
SnapReplay.com a different way to share photos - iPhone & Android |
![]() |
![]() |
![]() |
#6 |
Former pr0n slinger.
|
Ok thanx guys, I just linked it to an image with a small text and URL on it. And guess what, people actually type in this url
![]() |
![]() |
![]() |
![]() |
|
|