Using the database to get the class name is not optimal until it can be done locally. You should define a array of all class names, and then pick one up them by array_rand
, some thing like this:
// php code
// html code
anything
// css code
Note: you must know that you can't use php codes at .css
file, then you should write all css codes that you want to be dynamic in your .php
file and use
.
Meanwhilem, as @sємsєм said, you can creat dynamic html tags.
Some thing like this: (full code)
// php code
','','
','');
$tags_end = array('','
','
','
','
');
$numb = array_rand($tags_statr);
?>
// html code
In this case, the adjacent tag with data is also dynamic, And this makes it harder for crawlers.
Finally, I must say that you can't prevent crawlers utterly, you just make it difficult. If you really want to protect your data, you can do things like them: