Dave22
11-13-2001, 09:38 PM
My host is using a VA Linux server running Red Hat Modified Linux 6.0. Will .htaccess work on that? I tired using .htaccess to stop hotlinking it worked but every now and then all the images on my site wouldn't come up.
I could hit refresh on my web browser and they would come back but sometimes when i go to my site no pics will come up this never happen until i tired using .htaccess any ideas on what could cause this?
Thanks
ShellBounder
11-13-2001, 10:52 PM
You'll probably have to use mod_rewrite to do this, but I don't know exactly what you're saying, so I can't make any for you right now. Sorry.
comphost
11-14-2001, 02:01 AM
IIf it works at all then you have access and most likely
just bad mod rewrite code... I find with clients that when they add mod rewrite code most all of them asking for help has bad syntax problems when taking info from another site......
check over your code in .htaccess
Anna Kusnyet
11-14-2001, 08:19 AM
Since their modified RedHad distribution probably runs apache webserver as well, as original RH, you can have .htaccesses working. Trouble is nested somewhere in your syntax, you can post it here, maybe we'll be able to find an error.
Dave22
11-14-2001, 06:03 PM
Heres the .htaccess i use.
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://yourdomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://your IP/.*$ [NC]
RewriteRule .*\.(gif|GIF|jpg|JPG)$ http://yourdomain.com/bad.gif [R]
comphost
11-14-2001, 06:41 PM
my code doesnt display a bad image, the way i figure it
as long as it don't load i am happy and no wasted bandwidth
I have found that in cases where hotlinking is going on
that even 1 bad.gif image on some public sites can still
be called 5000 times an hour driving up your bandwidth
although some like to display a "advert" in this space
or a FU message :)
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://USERDOMAIN.COM/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://WWW.USERDOMAIN.COM/.*$ [NC]
RewriteRule .*\.(gif|GIF|Gif|jpg|JPG|jpeg)$ - [F]