Forum Moderators: phranque
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]
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
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
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...]
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.