javascript - Protect display contact number -
i have classified website , in product detail of page contact number show normal text. these numbers visible in search engine result. how protect or how show phone number image hide se?
you can similar this. print phone number image.
<?php $img = imagecreate(100, 20); //dimension of image $bg = imagecolorallocate($img, 255, 255, 255); //give white background $textcolor = imagecolorallocate($img, 0, 0, 0); //gives black colour string. both follow format in format (image, red, green, blue) $phone = "1234567890"; imagestring($img, 6, 2, 2, $phone, $textcolor); // imagestring ( resource $image , int $font , int $x , int $y , string $string , int $color ) // output image header('content-type: image/png'); imagepng($img); //outputs png image imagedestroy($img); //frees memory associated image ?>
Comments
Post a Comment