I have a php script on my site that, when run, changes the 'Dog of the Day' on my home page. I have a cron job set up to run the script once a day, and everything works perfectly.
I've secured my 'scripts' directory with an .htaccess file, because if someone stumbles upon the php script, it'll be run, causing the 'Dog of the Day' to be updated.
ErrorDocument 404 /404.php order deny,allow deny from all allow from 127.0.0.1
I changed the cron job to run every minute, but the .htaccess is blocking it, despite 127.0.0.1 being whitelisted. I changed 127.0.0.1 to my own ip, and I can access it, so it's not a problem with syntax.
I'm a graphics designer by trade, and a front-end coder at a push, so keep it simple please!
Thanks a lot!