I wanna protect my php file allows only my domain e.g mydomain.com to access it. Be it inside the php code or outside. My php file is hosted at a remote server. Paying $10usd for working solution. - Paypal P.M your solution.