was wondering how to code a server file for ajax calls ?,
example:
Class cars, have 2 functions
reply with all brands
return $database->Listall('brands','cardb'); I call it with api.php?mod=list
- reply with all cars in brand return $database->Listall('cars','cardb',"WHERE brand=$brand"); I call it with api.php?mod=list&brand=kia
the problem is that google list these api links in its search directory, + users can also access this page on there own (not throu ajax call) so how can i block this ?