Test Prevent Image Hotlinking


Goto page 1, 2  Next

Subject: Test Prevent Image Hotlinking
icyphoenix.com is in the whitelist... so the image should be displayed...


birthdaycake

ok it works... 8) great :LOL:

Subject: Re: Test Prevent Image Hotlinking
Is it your own whitelist? A special mod or is it already in IP

Profile PM  
Subject: Re: Test Prevent Image Hotlinking
TheSteffen wrote: [View Post]
Is it your own whitelist? A special mod or is it already in IP


its configured in .htaccess (i´ll provite the code later here)

there are 2 ways to prevent hotlinking

1. block all domain who hotlink images, except yours
2. set only the domain which ist not auth to hotlink... <- i prefer this way

f.e. if someone (which domain ist blocked) link to a smilie or pic... it would not show the original pic... the pic which is showed f.e. this one

nohotlinking

Subject: Re: Test Prevent Image Hotlinking
Ah, OK... thanks for the information

Profile PM  
Subject: Re: Test Prevent Image Hotlinking
In any case that person is stealing you bandwith, since that image also consumes resources :P

Subject: Re: Test Prevent Image Hotlinking
KasLimon wrote: [View Post]
In any case that person is stealing you bandwith, since that image also consumes resources :P


yes your right...

but for example... if you have a stealing site which includes many other single pictures from your server.. so it loads only that one image... and then its in the browser cache...

and the second thing is... i have no problem if some ask me if he can include a image... but without ausking, i dont tolerate it...

Subject: Re: Test Prevent Image Hotlinking
could you please post the code here, Kugel

Subject: Re: Test Prevent Image Hotlinking
spydie wrote: [View Post]
could you please post the code here, Kugel


Thanks for remind me... :wink:

OPEN .htaccess
ADD
Code: [Download] [Hide] [Select]
### S T O P H O T L I N K I N G BEGIN
# Stop Hotlinking Images ONLY for a specific site
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?example.de\.tl/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?example\.com/ [NC]
RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/nohotlinking.jpe [L]

# Blocks hotlinking for all other page, except your own page
#RewriteCond %{HTTP_REFERER} !^http://(.+\.)?caromonline\.de/ [NC]
#RewriteCond %{HTTP_REFERER} !^$
#RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/nohotlinking.jpe [L]
### S T O P H O T L I N K I N G END


You need to create an Image something like this:
nohotlinking_1269987246_233368

Name it to nohotlinking.jpe an upload to folder images... or something else (change the path in htaccess)

greetings

Subject: Re: Test Prevent Image Hotlinking
My question is this, only with the images uploaded to my FTP or by example with which I have to serve imageshack.us

Subject: Re: Test Prevent Image Hotlinking
KasLimon, it use the server because off the request ^^".

Profile PM  
Subject: Re: Test Prevent Image Hotlinking
How would you do a whitelist for this ???

got my problems, with ht.access. Php/html is fine, but access is a bit more dificult for me

Does´nt work for me . Any chance to do this via php.ini file ??

my server does´nt read the access files.

Subject: Re: Test Prevent Image Hotlinking
I think you can do that only via htaccess.

Otherwise you should create a php file which read images and then black and white list host using PHP code. Like the album does for example.

Subject: Re: Test Prevent Image Hotlinking
anyway there´s one inconvenience.

if you put that in ht.access, it also blocks your forum link image.

that means , you can´t do interchange of link´s with this, since you´ve got to put all pages with links to you´re site in the whitelist, so they´re able to hotlink any image of you´re site

Subject: Re: Test Prevent Image Hotlinking
Holaa

Subject: Re: Test Prevent Image Hotlinking
Hi there!

Just a question. I have already edited my htaccess and it works for now.
But now i have a little problem. It's about the dynamic images. They are all "not" hotlink protected.
Like this example: (this is the avatar!)
Code: [Download] [Hide]
  1. http://example.org/download/file.php?avatar=2_1296526796.png 


So i googled for it and snap up this code:
Code: [Download] [Hide]
  1. RewriteCond %{HTTP_REFERER} !^http://(www\.)?example.org/download/(.+)php/?avatar/=(.+)?$ [NC] 
  2.  

But this code deosn't work....

Can you help me further?
Thank you very much!

Greetings, testi ;)

Profile PM  
Goto page 1, 2  Next

Page 1 of 2


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.1097s (PHP: 18% SQL: 82%)
SQL queries: 10 - Debug Off - GZIP Enabled