Forum Moderators: phranque

Message Too Old, No Replies

Zeus webserver... disable referrer checking on one directory?

         

bubblevision

7:16 pm on May 8, 2004 (gmt 0)

10+ Year Member



I would like to disable referrer checking on just one directory on my site so that I can hotlink images from it on bulletin boards. There's enough info on the net to help me to do this in Apache, but unfortunately my host is running Zeus Webserver 4.1, and it seems .htaccess control may be limited on Zeus (correct me if I'm wrong).

So far I've enabled referrer checking on the whole site through my control panel (i.e. not using .htaccess), and then put a .htaccess file in the specific directory to try and override the site-wide setting. The .htaccess file just includes 2 lines:

Order Deny,Allow
Allow from all

It doesn't work. Access to the images is still denied site-wide.

Can anyone tell me how to achieve this or what I'm doing wrong? I guess I could disable referrer checking for the whole site using my control panel, then enable it for all the other directories except the one by putting .htaccess files in each directory, but that seems clumsy.

Thanks

[edited by: bubblevision at 8:26 pm (utc) on May 8, 2004]

jimbeetle

7:51 pm on May 8, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Welcome to Webmasterworld, bubblevision.

We don't link to our own sites at WW so you should use the "Owner Edit" button on your original post to remove the references to your sites.

Can't really answer your question as I'm only (barely) familiar with Apache, but the Zeus User Guide...

[support.zeus.com...]

...has a section on configuring access with subsection on using .htaccess in Zeus and "Allowing Specified Web Sites to Use Your Bandwidth."

Looks like it tells you exactly how to go about it if you're familar with the Zeus interface.

Jim

bubblevision

9:31 pm on May 8, 2004 (gmt 0)

10+ Year Member



Thanks for your reply Jim. Sorry about the links. I've removed them now.

I've actually been poring over that pdf guide for a couple of hours, leaving me with a serious headache. I'm not very good with long instruction manuals these days!

Unfortunately the section you refer to doesn't really give me what I want. At my browser-based control panel level I can only disable/enable referrer-checking on the whole site, so I would have to bother my host every time I wanted to hotlink my pics on another site. In any case I wouldn't want such sites to have access to all my pics... just the ones in my special directory.

To start with, can anyone confirm that the .htaccess file I've got would actually work in an Apache environment?

Also does anyone know what the syntax of the root-level .htaccess file should be (on a Zeus Webserver 4.2) to prevent hotlinking of my images?

Many thanks

bubblevision

9:51 pm on May 8, 2004 (gmt 0)

10+ Year Member



Basically I think what I'm asking is, if a .htaccess file looked something like this on Apache:

RewriteEngine on
RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^http://(www\.)?mysite.com(/)?.*$ [NC]
RewriteRule .*\.(gif¦jpg¦jpeg¦bmp)$ - [F,NC]

...then what would it look like on Zeus 4.1?

This link might help someone who knows what they're talking about to extrapolate the information I want: [support.zeus.com...]

jimbeetle

4:13 pm on May 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Have you checked section 8.7 "Configuring Request Rewrite Scripts" in the above Zeus pdf documentation? It *appears* to spell out the commands and syntax needed.

Noted somewhere else that "To configure Request Rewriting, click 'Request Rewriting' on the Virtual Server configuration pages."

I'm sure you've already been through all that but if nothing else this bumps this post up for somebody who might actually know something about this.