chaossociety
07-14-2002, 10:51 PM
I have a problem...........too many people hotlink my images! And I do not want any special hotlink scripts or anything, I just want a simple .htaccess script that says if the referrer isnt (www.)kaoticmind.com then replace the pic with hotlinked.jpg otherwise let the image be used.............I know this wont take more than 2 mins so I am not offering any money, however I will give you a subdomain and 20mb if you will reply before 12 am (US i posted this at 11:50!!)
THANX so much!
edude
07-14-2002, 10:55 PM
Yes i know HTACCESS, hes a close friend of the family...
He lives next door.. :rolleyes:
chaossociety
07-14-2002, 10:56 PM
P.S. please do not post without a code for me..........thanx........
edude
07-14-2002, 11:01 PM
oh ok, thanks for telling us, it should've been in your first post..
thanxxxxxxx :eek:
dandanfirema
07-14-2002, 11:03 PM
Since you asked nicely :D try this one out:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://mydomain.com/.*$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp|pdf|mp3|avi|mpeg|exe|zip)$ http://www.mydomain.com [R,NC]
Newtothis
07-14-2002, 11:14 PM
http://www.bignosebird.com/apache/a13.shtml
http://httpd.apache.org/docs/mod/mod_rewrite.html
http://www.javascriptkit.com/howto/htaccess.shtml
http://www.javascriptkit.com/howto/htaccess10.shtml
http://faq.solutionscripts.com/misc/hot_linking.html
http://www.perlaccess.com/tutorials/8/8.6.html
chaossociety
07-14-2002, 11:26 PM
thank you so much for your quick replies :D (except you edude, you were very rude)
edude
07-14-2002, 11:27 PM
Yes, i'm always rude..
:D
derek.bodner
07-14-2002, 11:38 PM
considering we're helping you out, i think you might have been a little rude.
edude
07-15-2002, 12:09 AM
eh dbodner, who are you refering to?
deathlord
07-15-2002, 12:21 AM
dbodner:"considering we're helping you out" I beleive this would refer to chaossociety Considering he is the one who was in need of assistance with htaccess.
edude
07-15-2002, 01:06 AM
oh ok just making sure, cos i didn't seem to feel the starter of the thread was rude - i was the rude one ;)
Sketch
07-15-2002, 07:22 AM
no, chaossociety was rude... ;)
Chicken
07-15-2002, 09:52 AM
Everyone drink your coffee before posting...