rotating images with a php script

rotating images with a php script

Posted by: slamsworld
Posted on: 2008-06-15 09:48:00

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



Re: rotating images with a php script

Posted by: ACAMS
Posted on: 2008-06-15 10:47:00

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.

Re: rotating images with a php script

Posted by: silkrooster
Posted on: 2008-06-15 17:34:00

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

Re: rotating images with a php script

Posted by: slamsworld
Posted on: 2008-06-17 18:48:00

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

Re: rotating images with a php script

Posted by: di11rod
Posted on: 2008-06-18 00:25:00

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

di11rod

www.austinskatenotes.org

Tags: rewriterulejpephp scripthoping that someonedreamhosthtaccess filehttp refererthanks in advancepngindexesrewritecondimages