April 24, 2017, 05:12:24 PM
  Print  
Author Topic: Hotlink Enable  (Read 5032 times)
sawanbanna
Administrator
Experienced Member
*****
Posts: 7607

View Profile WWW
« on: August 03, 2006, 09:23:48 PM »

Recently, I have tested the script, under Tools>Elefante Tools>HotLink...

When you install this script, you pick domain/subdomain you want ot protect the hotlink, then install it...the installation will create the .htaccess fro you under the domain/subdomain to use for protecting...then you will see your images on the whole domain/subdomain are replaced with attention image http://50webs.net/images/Attn.gif

after you finished installation then go to "File Manager" go inside domain/subdomain then click on the .htaccess and then click on "Edit"

You will see the .htaccess like this:

Code:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(www\.)?dorkkoon.be/.*$ [NC]
RewriteCond %{SCRIPT_FILENAME} (\.gif$|\.jpg$|\.jpeg$|\.bmp$)
RewriteRule ^(.*) http://50webs.net/images/Attn.gif [R,L]

RewriteEngine On
RewriteCond %{HTTP_REFERER}  !(^http://dorkkoon\.be)
RewriteCond %{SCRIPT_FILENAME} (\.gif$|\.jpg$|\.jpeg$|\.bmp$)
RewriteRule ^(.*) http://50webs.net/images/Attn.gif [L]


You need to correct the code second lines of both RewriteEngine.

Change
Code:
RewriteCond %{HTTP_REFERER} !^http://(www\.)?dorkkoon.be/.*$ [NC]

to
Code:
RewriteCond %{HTTP_REFERER} !^http://(www.)?dorkkoon.be/.*$ [NC]


This work only on http://dorkkoon.be not http://www.dorkkoon.be

Change
Code:
RewriteCond %{HTTP_REFERER}  !(^http://dorkkoon\.be)

To
Code:
RewriteCond %{HTTP_REFERER}  !(^http://www.dorkkoon\.be)

this will work on http://www.dorkkoon.be

Replace dorkkoon.be with your own domain/subdomain...

If you want to protect multiple domain/subdomain from this point, you can copy this .htaccess file to multiple domain/subdomain you want to protect and edit entire code to that specific domain/subdomain....

Thanks to Coldy: the 50Webs Support to provide the great supports and help fix this problem, great works...
Logged

Best Regards,
sawanbanna
50Webs Support Volunteer

-="DO NOT ADJUST YOUR MIND, THERE IS A FAULT IN REALITY"=-
  Print  
 
Jump to: