Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

 
 
Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
Old 2009-05-27, 09:53 PM   #10
Pagan
Perverted Empress
 
Pagan's Avatar
 
Join Date: Feb 2005
Location: Finland
Posts: 5,114
Hmmm.. okay. I am starting to understand it a little. Is it better to do an .htaccess for each domain?

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?eroticove.com [NC]
RewriteRule \.(jpg|gif)$ - [NC,F,L]

If I follow you all right, that should be only what I need to protect my images (I only use .jpg and .gif) from all outside hotlinkers, but allow my sites to share those images. But can something so light be enough? Are there ways around it? Do I really need to block IPs?

Here's the .htaccess file I had up through March, and I still had a ton of issues with hotlinking.

#--ANTI-HOTLINK--
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^(http://|https://)(www.)?(eroticove.com).*$ [NC]
RewriteRule \.(jpe?g|gif|bmp|png|.wmv)$ - [F]
#++ANTI-HOTLINK++
ErrorDocument 404 /error.html
ErrorDocument 403 /error.html
ErrorDocument 500 /error.html
__________________
Is it naptime yet?

Last edited by Pagan; 2009-05-27 at 10:14 PM.. Reason: found old .htaccess file
Pagan is offline   Reply With Quote
 


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:49 AM.


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