帮助中心运维技术分享 › zencart tell a friend被第三方利用发送垃圾邮件

zencart tell a friend被第三方利用发送垃圾邮件

zencart程序中的tell a friend功能被第三方利用,发送大量垃圾邮件,导致数据库中email_archive表有几百兆之多!

欣慰的是,在1.5x版本中已经移除该功能。

 

解决方法:

1, 后台-configuration-Email Options里找到Allow Guest To Tell A Friend,关闭游客推荐功能。

对下列文件重命名,或者彻底删除该功能:

includes/templates/YOUR_TEMPLATE/templates/tpl_tell_a_friend_default.php

includes/templates/template_defaul/templates/tpl_tell_a_friend_default.php

includes/languages/english/tell_a_friend.php

includes/modules/pages/tell_a_friend 这个文件夹要去掉或者重命名

 

2,在后台catalog==》product types

点商品--普通 和商品免运费 点击 edit layout, 里面取消显示推荐给朋友 按钮就可以了

 

找到Show Product Tell a Friend button,关闭它。

3,最后找台前台的布局文件中按钮的位置删除它既可。


如果想清空表email_archive
运行sql语句 TRUNCATE TABLE email_archive;