Click to See Complete Forum and Search --> : I believe this is likely more a server side issue, but..


GamerBlake
11-25-2002, 11:51 AM
Can anyone tell me (so I can head to the correct forum) what it takes to get the same effect that Angelfire has, ie: When someone posts a pic hosted by them somewhere else, it replaces said pic with a Image hosted by Angelfire pic instead.

I'm sure that it's more then likely a server side issue, but I was wondering if it could be accomplished with Java Script or something?.. :confused:

Any help appreciated.

Robert Wellock
11-25-2002, 12:15 PM
Apache .htaccess is one method, however since I don't have full command of my server when ever I have tried for amusement , I've manage to lock the whole site not just the images.

I know the code works because I've used it on other sites with success you'd need something like this to stop *.gif and *.jpg hot linking:


RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://your_domain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.your_domain.com/.*$ [NC]
RewriteRule .*\.(gif|GIF|jpg|JPG)$ - [F]

GamerBlake
11-25-2002, 12:27 PM
Ok.. that all looks like Latin to me..:P

Not much up on anything above basic html and cut/paste java script..:)

Where would that code have to go exactly?..

Robert Wellock
11-26-2002, 09:50 AM
Within the .htaccess file if you have an Apache Server. For a better explanation: http://www.javascriptkit.com/howto/htaccess10.shtml

GamerBlake
11-27-2002, 12:25 AM
Thanks, I'm giving it a look over now. :)