Rotating images with a php script

hey all

I am hoping that someone may have had this issue before. I have done a lot of searching on this but have not found a solution to the problem so far.

I have a site here on dreamhost that I have a php script running that rotates images on the main page but my stats indicate that there is several folks hotlinking directly to the script. I have tried to modify the .htaccess file with no luck so far

the htaccess file now contains the following

Options -Indexes
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(www.)?thedailybikinni.ca/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .(jpe?g|gif|png|php)$ - [F]

the website is www.thedailybikinni.ca

thanks in advance

I was not able to hotlink to the script or use it in any way, but I am a dummy…I just posted here to tell you the pics are too small.

Options -Indexes — Not sure if this is needed.

RewriteEngine On

RewriteCond %{HTTP_REFERER} !^http://(www.)?thedailybikinni.ca/ [NC] — Not sure if the forward slash is required. I haven’t seen any adverse effects from not having it. Also the dollar symbol is missing at the end should be .ca/ $ [NC]

RewriteCond %{HTTP_REFERER} !^$

RewriteRule .(jpe?g|gif|png|php)$ - [F] — Not sure if the dash is required before the forbidden switch.

My website

thanks for the responses folks - nothing seems to work so far - i either take the entire site down or the script can be directly called.

I am going to have to rethink this and possibly try something else.

enjoy

Change the name of the script and the reference to it in your html file every now and again.

di11rod

www.austinskatenotes.org