awardle Posted January 24, 2009 Share Posted January 24, 2009 Hi, Is it possible to secure the cron.php file? to prevent anyone going to that url and running a cron job? i.e. if it could check if localhost executed it? For example my cron runs every day at 8am, however at 11:50 the cron job has been ran again by what looks like a bot. HTTP/1.0 ia_archiver+(+http://www.alexa.com/site/help/webmasters;+crawler@alexa.com) I'm still looking into why or how the bot found this cron page but was also thinking any user who knows that a website is running whmcs could also execute the cron when ever they like. Which is a complete pain as my customers have been sent two reminders in just one day Thanks Aaron. 0 Quote Link to comment Share on other sites More sharing options...
bear Posted January 24, 2009 Share Posted January 24, 2009 You could (and probably should) restrict access to the admin area to certain IPs, as well as renaming it to prevent anything "finding" that directory accidentally. Order Deny,Allow Deny from all Allow from ip.address.goes.here I should think you could also rename it, just make sure you change your cron entry to the new name. 0 Quote Link to comment Share on other sites More sharing options...
awardle Posted January 24, 2009 Author Share Posted January 24, 2009 Thanks for the reply, I did not know I could rename the folder so will do just that. I might also password protect the entire admin folder with IIS Password as our Windows Scheduler system can log into this. Thanks 0 Quote Link to comment Share on other sites More sharing options...
bear Posted January 24, 2009 Share Posted January 24, 2009 If you do rename the folder, make sure you take these steps: http://wiki.whmcs.com/Furthur_Security_Steps 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted January 25, 2009 Share Posted January 25, 2009 or just rename cron.php and add a "honeypot" cron.php which can be used to update your f/walls and block the-little-sh!ts that try and abuse your setup 0 Quote Link to comment Share on other sites More sharing options...
bear Posted January 25, 2009 Share Posted January 25, 2009 I should think you could also rename it, just make sure you change your cron entry to the new name. or just rename cron.php Yeah, that. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.