To disable or enable Trackbacks and Pingbacks in WordPress you can use the following mysql queries.
Sample mySQL
enable
UPDATE wp_posts SET ping_status = 'open';
disable
UPDATE wp_posts SET ping_status = 'closed';
To disable or enable Trackbacks and Pingbacks in WordPress you can use the following mysql queries.
enable
UPDATE wp_posts SET ping_status = 'open';
disable
UPDATE wp_posts SET ping_status = 'closed';
To delete all pingbacks in WordPress you can use the mysql query below.
DELETE FROM wp_comments WHERE comment_type = 'pingback';
To ping in Java you can use the following snippet.
public static void pingUrl(String url, Integer timeOut) { url = url.replace("http://", ""); try { InetAddress address = InetAddress.getByName(url); System.out.println("Hostname: " + address.getHostName()); System.out.println("IP-Address: " + address.getHostAddress()); System.out.println("Reachable in " + ((double)timeOut / (double)1000) + " Seconds: " + address.isReachable(timeOut)); } catch (UnknownHostException e) { System.err.println("Unable to lookup " + url + "; error: " + e); } catch (IOException e) { System.err.println("Unable to reach " + url); } }