bibob Posted December 13, 2013 Share Posted December 13, 2013 (edited) Hi i have just tried to generate sitemap, both from the module backend and from cronjob, iam getting same error. There is about 38.000 products and after it generates 10 sitemaps it delete them when it's complete please look at the image below, it also shows that only 1 sitemaps are left. 1_index_sitemap.xml and 1_d_0_sitemap.xml containg engouh products. about 3.250 i think i have the last version of the gsitemap module Version :2.3.2, i have reinstall it and also reset it and still same. also i have the last version of PrestaShop™ 1.5.6.1 hope someone know what is wrong Edited January 4, 2014 by vekia (see edit history) Link to comment Share on other sites More sharing options...
bibob Posted January 4, 2014 Author Share Posted January 4, 2014 (edited) Actually i just found out what the problem was, very strange, but some spam server was starting this cron during af day, the way i found out was adding som alert code inside the gsitemap-cron.php if($_SERVER['REMOTE_ADDR'] == "my server address" ) { cron code here ... } else { $to = "my email"; $subject = "ALERT TRIED TO ACCESS SCRIPT ON " . $_SERVER['HTTP_HOST']; $message = "This ip tried to start a script: " . $_SERVER['REMOTE_ADDR'] . " \r\n Script name: " . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME'] ; $from = "my email"; $headers = "From:" . $from; mail($to,$subject,$message,$headers); header( 'Location: http://www.domainhere/?controller=404' ) ; // Tell them to bog off die(); } then i got this http://forge.prestashop.com/secure/attachment/21393/cron.pngthe ipaddress comes from a spam server, you can ready public reviews here https://www.facebook.com/enzuinc Edited January 4, 2014 by bibob (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted January 4, 2014 Share Posted January 4, 2014 hello thank you for posting solution, nice catch! may i know the spam server ip address or referrer url? Link to comment Share on other sites More sharing options...
bibob Posted January 4, 2014 Author Share Posted January 4, 2014 hello thank you for posting solution, nice catch! may i know the spam server ip address or referrer url? My pleasure, yes http://forge.prestashop.com/secure/attachment/21393/cron.png Link to comment Share on other sites More sharing options...
vekia Posted January 4, 2014 Share Posted January 4, 2014 thank you! definitely it's a spam ip 192.157.254.47 has spam activity on 17 web sites. Added to blacklists 2013-09-28, last seen 2013-11-30 12:48:11 thank you, i added it to my host iptables block list marked topic as solved. Link to comment Share on other sites More sharing options...
Recommended Posts