Rodolfo wrote:Well... you can deny hotlink to embed full images and just allow the thumbs to be hotlinked.
But this must be done one layer above, I mean this has to be made using htaccess and server rules instead of some php handling.
So, deny the folder /images using htaccess (read this and this)
Awesome I just added hotlink in the main directory, then turned off rewrite in the thumbnail directory.
Thanks!
Now, I need to tweak the image links page to only link to the thumbnail and to the page that I will have ads on.
Any ideas? I'm looking through files now to see if it's an easy tweak.
Also I have a redirect to a hotlink warning image but it won't show, it just says image:

But the thumbnail shows fine.

Thanks again.
Now if I click the redirect firefox says im in a loop:
The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
Here is the htaccess code:
ServerSignature Off
Options -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^api$ api.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>
ErrorDocument 400 default
ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 500 default
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?myimghost.com [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ http://myimghost.com/hotlink.gif [NC,R,L]
Last edited by dwhs (2012-01-03 16:50:15)