I use React Native and Php for my app. Php return json data from mysql. But if a user enter my fetch url in google, he can see my json data. How can i hide my data ?
$json = file_get_contents('php://input');
$result = mysqli_query($link, "SELECT * FROM news");
if(mysqli_num_rows($result)) {
while($row[] = mysqli_fetch_assoc($result)) {
$json = json_encode($row);
}
}else {
echo 'connection error';
}