i have some pages which will be used internal ajax post form processing. like these
<script type="text/javascript">
function tab(x)
{
var x
jQuery.ajax({
type: 'POST',
url: 'catagory_tab.php',
data: {
y: x
},
success: function(html)
{
$("#result").html(html).show();
}
});
return false;
}
</script>
now if a user sees my webpage source code ( right click on page and view source code ) the the person will the "catagory_tab.php" page. then curiously he/she can open the page from browser. like typing www.example.com/catagory_tab.php. Then code will run from my page. So how to block this. i need that page for ajax post , but do not want that users can not open them directly.