Aşağıdaki kodlar ile wordpress sitelerinizde yazıların içindeki linkleri görebilirsiniz. Yazılarınızda hacklink varsa kolayca tespit edebilirsiniz. Kodları yakala.php isminde dosya oluşturup ana dizine atmanız yeterlidir.
<?php
header("Content-type: text/html; charset=UTF-8");
include "wp-config.php";
mysql_connect(DB_HOST, DB_USER, DB_PASSWORD)or die("Bağlantı Kurulamadı");
mysql_select_db(DB_NAME)or die('Veritabanı Bulunamadı');
$sorgu=mysql_query("select ID,post_content,post_title from wp_posts where post_content like '%http://%' AND post_type='post' order by id");
while($id=mysql_fetch_object($sorgu)){
$content=$id->post_content;
preg_match_all('#http://(.*?)("|\'| )#si',$content,$urls);
echo "$id->post_title - <a href='index.php?p=$id->ID' target='_Blank'>goruntule</a> - <a target='_Blank' href='wp-admin/post.php?post=$id->ID&action=edit'>duzenle</a><br />Linkler:<br />";
foreach($urls[1] as $url){echo "http://".$url."<br />";}
echo "<hr />";
}
?>