Smart Phone Blocked resource
-
Respected team ,
Sorry to disturb you again . But i need to ask you one small question . Hope team won’t mind in giving reply for this small question
This is the screenshot of https://prnt.sc/mdkw6g webmaster blocked link .
When trying to fetch any /go/ link https://www.gomahamaya.com/go/yoast on redirectcheck.com/index.php then it shows what is there in that blocked link . But according to robots.txt file i have blocked all bots . Still they are able to fetch data .
But when i try other website data with link /go/ they show bots are not allowed to fetch data .
So my question is am i doing any thing wrong in cloaking links ? do i have to add something more on my website ? Do i have to add any special header function to my website ?
While searching on google i found this code
$url = “//{$_SERVER[‘HTTP_HOST’]}{$_SERVER[“REQUEST_URI”]}”;
if (preg_match(“#/go/#”, $url))
{
header( “X-Robots-Tag: noindex, nofollow”, true );
header( “Cache-Control: private”, true );
}
Should i add above code to my website Or any special header code i have to add via .htacess file . Yoast always recommend to add header code via .htacess instead of function.php .
So i will request you to help me on this topic . Any help will be much appreciated .
Regards,
RahulThe page I need help with: [log in to see the link]
- The topic ‘Smart Phone Blocked resource’ is closed to new replies.