I have the following code inside my index.php file:
<script type="text/javascript">
$(document).ready(function(){
refreshTable();
});
function refreshTable(){
$('#tableHolder').load('refreshdata.php', function(){
setTimeout(refreshTable, 10000);
});
}
</script>
What I want is to prevent execution of refreshdata.php using https://domainame.com/refreshdata.php