baignoire Posted October 19, 2007 Share Posted October 19, 2007 hi all, i offer on my website the possibility for anyone to include a part of my site on their own pages via an iframe. the thing is that i would like to know which sites are using this feature. I use : $_SERVER['HTTP_REFERER'] to get the url of the page that calls my page, but it obviously doesn't seem to work (all my results are blank ) am i doing it all wrong? is there a way to know the doamin name of the page in wich the iframe is displayed?? thanks for all. raf Quote Link to comment https://forums.phpfreaks.com/topic/73928-knowing-who-uses-my-php-script-in-its-iframe-http_referer/ Share on other sites More sharing options...
ToonMariner Posted October 19, 2007 Share Posted October 19, 2007 try peinting out the entire $_SERVER array and see if there is anything in it failing that I suspect you will need some javascript to grab the url of the parent document. Quote Link to comment https://forums.phpfreaks.com/topic/73928-knowing-who-uses-my-php-script-in-its-iframe-http_referer/#findComment-373036 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.