douqun1977 2012-10-22 21:54
浏览 15
已采纳

表格发布自己,邮件发送自己。 是google吗?

i have a webshop running, and every couple days an empty mail is send, like an order. Is this most likely google?

I have a file called send2.php, it takes all info from session, all post data, and sends it via mail. after that it redirects to a "thank you" page.

Can and will google send empty forms just to see whats in send2.php? What would be the best way to prevent this from happening?

  • 写回答

3条回答 默认 最新

  • douganmo1121 2012-10-22 22:07
    关注

    If the mail your receiving is blank values as the values have not been set throughout the session then, why dont you check for those values before sending the mail, its true that the culprit is most likely a crawler, and many of them (inc bingbot) will not listen to a robots.txt file, plus a robots file is the first place a hacker looks for for info gathering.

    <?php 
    if(!empty($_SESSION['some_info'])){
        mail(...);
    }
    ?>
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?