I'm using jquery and use a php file to display dynamic contents to different URLs. The php file takes the current url (referal) and it queries for respective content in the database:
$url = $_SERVER['HTTP_REFERER'];
Here is the jquery:
<div id="dyncontent"></div>
<script type="text/javascript">
$(function() {
$.get('http://mydomain.com/content.php', function(data) {
$('#dyncontent').html(data);
});
});
</script>
I know bots can fake url referal, but i'm not sure if it can get the content of my php file.
Anyone has experience with this? How to effectively hide that piece of content from bots?
Thank you very much.