when I connect to my database I include('connect.php') the document to connect.
Now I want to do it a bit more safe. Is it possible to check that the one that want to include the connect.php is from my domain. Like:
if($_SERVER["HTTP_REFERER"] == "mydomain.com"){
$link = mysql_connect("localhost","user","password");
mysql_select_db("dbname");
}
Bu mümkün ise, nasıl ben $_SERVER["HTTP_REFERER"] == mydomain.com, zaman $_SERVER["HTTP_REFERER"] dönebilirsiniz kontrol edebilirim mydomain.com/page.php?