• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Share code check trùng chủ đề cho wap

Admin

Well-Known Member
Staff member
Administrator
Với google nếu bài viết trùng là một điểm trừ trong seo. Với các wap không phải forum thì cũng không nhiều bài trùng, nhưng với wap dữ liệu nhiều thì nhiều khi post bài trùng là bình thường, nếu một vài bài trùng thì không sao, nhưng nhiều bài trùng thì wap bạn sẽ bị google đánh giá thấp, mình mới làm cái code check trùng chủ đề cho code game của Mr.Tam (nếu các bạn xài code khác thì chỉnh lại cho đúng với thông số của wap bạn) code này là check trong forum nên không chỉ check trùng tiêu đề mà còn check luôn xem bài viết giống bao nhiêu %, nếu giống đến 90% là spam chắc luôn.
Tạo tập tin tuoitrevn_biz_chong_spam.php dán code này vào
<?php
require_once('inc/db.php');
$db_Connect = mysql_pconnect(db_host, db_user, db_pass) or die("Không thể kết nối tới database!");
mysql_select_db(db_name) or die("Không chọn được database");
$sql=mysql_query("SELECT subtit, COUNT(subtit) AS dupes FROM bt_blog
GROUP BY subtit
HAVING COUNT(subtit) > 1");
$temp = mysql_num_rows($sql);
if($temp != 0){
$info = array();
while($arr=mysql_fetch_array($sql)){
$info[] = addslashes($arr['subtit']);
}
$ids = "'".join("','",$info)."'";
$sql = mysql_query("SELECT * FROM bt_blog WHERE subtit IN ($ids) ORDER BY subtit,thoigian DESC");
$temp = mysql_num_rows($sql);
$topic = '';
$temp_topic = '';
if($temp != 0){
while($arr=mysql_fetch_array($sql)){
$temp_topic = $arr['subtit'];
if ($temp_topic != $topic)
{
$topic = $temp_topic;
print '<a style="color: #FC0303" href="./'.$arr['id'].'-'.$arr['url'].'"><b>'.$arr['name'].'</b></a><br>';
} else {
print '<a style="color: #A29696" href="./'.$arr['id'].'-'.$arr['url'].'">'.$arr['name'].'</a><br>';
}
}
}
}
?>
 
Code này chống spam đó em
 
Anh ơi sao em dùng host cp11 khi đăng nhập ftp lại không được nhỉ?
 

Facebook Comments

Similar threads

New posts New threads New resources

Back
Top