0

I have an application hosted on distant server and it will be loaded by other site in an iframe, it there a way to restrict the access to it, I mean prevent the access to it by using its url, and give the access to that site only

Kamel Labiad
  • 525
  • 1
  • 6
  • 26
  • It's not possible with PHP, but possibly with javascript. Do you have any control over the "other site" that has the iframe? – Samutz Apr 29 '13 at 17:32
  • yes I would have controle, but how com it is not possible on php? how about http? – Kamel Labiad Apr 29 '13 at 23:12
  • Because PHP is server side and has no way of knowing if the browser is going to load a page in a frame or not. When the HTTP request is made for a page, it doesn't send anything that indicates it's loading in a frame (that I know of). – Samutz Apr 30 '13 at 02:20
  • there no secret key to load a url for example? – Kamel Labiad May 01 '13 at 21:34

0 Answers0