發(fā)表日期:2018-09 文章編輯:小燈 瀏覽次數(shù):2354
用DEDECMS進行網(wǎng)站建設過程中,經常會碰到被群發(fā)器,批量注冊用戶,然后進行文章發(fā)布,我目前遇到的是被群發(fā)器批量注冊企業(yè)會員,然后發(fā)布分類信息,每天能有上千條記錄,如果手工去刪除,很不現(xiàn)實,同時為了網(wǎng)站交互性也不能關閉會員注冊功能,因此只能想個快速刪除辦法。
經研究發(fā)現(xiàn),群發(fā)器注冊的都是企業(yè)會員,發(fā)布的文章都是在分類信息欄目里面,TYPEID值最小的欄目內,因此我們可以用SQL語句輕松刪除這些垃圾內容
方法如下:
delete from dede_member where mtype='企業(yè)'
這個是刪除會員,我網(wǎng)站沒有企業(yè)會員,因此所有注冊企業(yè)會員的都是廣告群發(fā)器
delete from dede_addoninfos where arcrank='-1' and typeid='6' and mid>10000
這個是刪除分類信息欄目里面的typeid(欄目代碼)為6的欄目里面,文章性質為未審核,并且會員的注冊代碼為MID>10000(這個條件是為了防止誤刪除老會員發(fā)的未審核文章,可以根據(jù)你網(wǎng)站的實際情況調整數(shù)值)
OK,滿世界干凈了
日期:2018-09 瀏覽次數(shù):4489
日期:2018-09 瀏覽次數(shù):3115
日期:2018-09 瀏覽次數(shù):3946
日期:2018-09 瀏覽次數(shù):3887
日期:2018-09 瀏覽次數(shù):3433
日期:2018-09 瀏覽次數(shù):3827
日期:2018-09 瀏覽次數(shù):3283
日期:2018-09 瀏覽次數(shù):3549
日期:2018-09 瀏覽次數(shù):3283
日期:2018-09 瀏覽次數(shù):3320
日期:2018-09 瀏覽次數(shù):3074
日期:2018-09 瀏覽次數(shù):3629
日期:2018-09 瀏覽次數(shù):3588
日期:2018-09 瀏覽次數(shù):3160
日期:2018-09 瀏覽次數(shù):3080
日期:2018-09 瀏覽次數(shù):3841
日期:2018-08 瀏覽次數(shù):3061
日期:2018-08 瀏覽次數(shù):3205
日期:2018-08 瀏覽次數(shù):3030
日期:2018-08 瀏覽次數(shù):3030
日期:2018-08 瀏覽次數(shù):3087
日期:2018-08 瀏覽次數(shù):2836
日期:2018-08 瀏覽次數(shù):2962
日期:2018-08 瀏覽次數(shù):2915
日期:2018-08 瀏覽次數(shù):2928
日期:2018-08 瀏覽次數(shù):3090
日期:2018-08 瀏覽次數(shù):3141
日期:2018-08 瀏覽次數(shù):3487
日期:2018-08 瀏覽次數(shù):2996
日期:2018-08 瀏覽次數(shù):3303
Copyright ? 2013-2018 Tadeng NetWork Technology Co., LTD. All Rights Reserved.