4
Quote:
Goten02 wrote:
to Goober: I using the same .htaccess as your I put it in public_html folder but it not work still can link to other site isn't it your work on your site? can you help me with this I realy need to make this thing work
help please
Put copies of it in the specific folders you want to prevent hotlinking. Dont drop it in your root folder.
That help?
(of course, change 'yourdomain' to .. your website address )
Edit: I suppose I can be a tad more specific
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(www.)?yourdomain.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .(zip|exe|tar|gz)$ /images/nohotlink.jpg [L]
1.First line is turning on the rewrite
2. Second line you want to provide details that reflect your domain. (lose yourdomain and put yours in)
3. 3rd line is checking where the request is coming from
4. 4th line tells the file types ( you can replace those with jpg, gif, etc) and the /images/nohotlink.jpg point to a jpg i have in the images folder that is named "nohotlink.jpg".
basically what it does is when a referrer is outside the domain, it sends that "nohotlink.jpg" instead.
Dispelling the Mystical belief of Web Standards and tableless CSS.
Nobody gets excited about the tools used to build a house, people get excited about how the house looks and performs