I want to change a CSS attribute based on bot detection. It's inline CSS.
So if my code currently is
I want bots to see
Basically, I want to do a poor man's job of cloaking by user agent on a paragraph of keyword rich text.
Hoping it is something like
Rep for help. Thanks in advance.
So if my code currently is
Code:
<div style="display:none;">Stuff</div>
Code:
<div>Stuff</div>
Hoping it is something like
Code:
<?php if useragent=slurp msnbot googlebot
<div style="display:none;">
else
<div>
?>