Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2005-02-09, 08:58 AM   #1
Fonz
Former pr0n slinger.
 
Fonz's Avatar
 
Join Date: Aug 2003
Location: Antwerp, Belgium
Posts: 7,932
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
__________________
See how I abuse little trees on my Shumi no Bonsai Blog
Fonz is offline   Reply With Quote
Old 2005-02-09, 10:05 AM   #2
PR_Tom
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
PR_Tom is offline   Reply With Quote
Old 2005-02-09, 10:52 AM   #3
Fonz
Former pr0n slinger.
 
Fonz's Avatar
 
Join Date: Aug 2003
Location: Antwerp, Belgium
Posts: 7,932
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
__________________
See how I abuse little trees on my Shumi no Bonsai Blog
Fonz is offline   Reply With Quote
Old 2005-02-09, 11:02 AM   #4
cd34
a.k.a. Sparky
 
cd34's Avatar
 
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
cd34 is offline   Reply With Quote
Old 2005-02-09, 11:46 AM   #5
PR_Tom
Nobody gets into heaven without a glowstick
 
Join Date: Feb 2005
Posts: 423
"Never mind." - Emily Latella
__________________
PimpRoll
PR_Tom is offline   Reply With Quote
Old 2005-02-11, 04:26 AM   #6
Fonz
Former pr0n slinger.
 
Fonz's Avatar
 
Join Date: Aug 2003
Location: Antwerp, Belgium
Posts: 7,932
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
__________________
See how I abuse little trees on my Shumi no Bonsai Blog
Fonz is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT -4. The time now is 12:26 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc