amitrathore48 Posted April 12, 2014 Share Posted April 12, 2014 <script type="text/javascript">this.DEFAULT_URL = "<?php echo mysql_result(mysql_query("select path from addbook where id=".$_GET['query_id']),0)?>"; </script> read_book2.php Link to comment Share on other sites More sharing options...
amitrathore48 Posted April 12, 2014 Author Share Posted April 12, 2014 there is script . i want to do that this script should work as properly but there is showing path in view source . so i want to hide this i would that it should not show in view source. Link to comment Share on other sites More sharing options...
L8V2L Posted April 12, 2014 Share Posted April 12, 2014 What? Link to comment Share on other sites More sharing options...
thescientist Posted April 16, 2014 Share Posted April 16, 2014 that's not possible. If the browser is to render it, it needs to be in the source or otherwise accessible over HTTP. If you really want to hide it, make it only accessible from outside of the webroot and use a proxy script that handles the authentication before serving the privileged content. Link to comment Share on other sites More sharing options...
davej Posted April 16, 2014 Share Posted April 16, 2014 You can obfuscate it and load it in tricky ways, but a hacker could always find it and see it, unless you follow the advice suggested above and wait until after a login. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now