I need to code something like that to print value of javascript in php
<?php
$url = ( Value of <script>document.write(top.location.href);</script> );
echo ''.$url.'';
?>
Update: I need this to break frames, block proxy websites and bots so $_SERVER not useful
Please can anyone help me ?
Thank you