cpugeek Posted May 31, 2007 Share Posted May 31, 2007 I've been making a website.& i was wondering if there was a way in php to hide my source. Link to comment Share on other sites More sharing options...
Mystixs Posted May 31, 2007 Share Posted May 31, 2007 Well, it hides PHP automatically. But it can't hide HTML, Javascript, etc. Not that I know of anyway. Link to comment Share on other sites More sharing options...
Matpatnik Posted May 31, 2007 Share Posted May 31, 2007 I don't think there is a way to hide the source because the source is the code that the server send to your browser so he can render it.What you can do is disallow the right click with JavaScript but the source is still accessable throu the browser menu. Link to comment Share on other sites More sharing options...
morrisjohnny Posted May 31, 2007 Share Posted May 31, 2007 I'm also looking for a way. I am aware u cannot hide html, javascript etcs. I don't think it is possible to disable it though, i think u can make it hard to get thoughome ways to try and fool ppl(Disable right clicks {they can still go to view -> View source})(Put lots of line breaks in at the start so they think it's blank{only works for stupid people})(include no line breaks at all{who would spend hours making it easy to read manually copying the copy and putting in line breaks so they could understand it.})Like i say i'm watching this page but i think it's not possible to hide ALL of your code unfort Link to comment Share on other sites More sharing options...
Matpatnik Posted May 31, 2007 Share Posted May 31, 2007 (include no line breaks at all{who would spend hours making it easy to read manually copying the copy and putting in line breaks so they could understand it.})That's probably the best way, all in 1 single ligne Link to comment Share on other sites More sharing options...
justsomeguy Posted May 31, 2007 Share Posted May 31, 2007 (Disable right clicks {they can still go to view -> View source})They can disable Javascript, check the cache, use another program or script to download the page, use Opera, use a network traffic analyzer, etc etc etc.(Put lots of line breaks in at the start so they think it's blank{only works for stupid people})Doesn't hide anything.(include no line breaks at all{who would spend hours making it easy to read manually copying the copy and putting in line breaks so they could understand it.})The free HTMLTidy utility will reformat the code in under a second.You cannot hide client-side code. It's client-side code, for god's sake. You can't send the client client-side code and then try to hide it from the client. If you don't want someone to see your HTML code, then don't put your page online. Link to comment Share on other sites More sharing options...
morrisjohnny Posted May 31, 2007 Share Posted May 31, 2007 They can disable Javascript, check the cache, use another program or script to download the page, use Opera, use a network traffic analyzer, etc etc etc.Doesn't hide anything.The free HTMLTidy utility will reformat the code in under a second.You cannot hide client-side code. It's client-side code, for god's sake. You can't send the client client-side code and then try to hide it from the client. If you don't want someone to see your HTML code, then don't put your page online.wow i jsut got ripped I knew it wasn't possible to stop them, but Link to comment Share on other sites More sharing options...
justsomeguy Posted June 1, 2007 Share Posted June 1, 2007 Yeah, we've had this discussion here before. The nature of the internet makes it impossible to hide client-side code from the client. Link to comment Share on other sites More sharing options...
teng84 Posted June 1, 2007 Share Posted June 1, 2007 I don't know if html codes can be hidden but in javascript if you want to hide the code you have to hide it trough external linki think it goes something like this <script src="jscript.js" language="JavaScript" type="text/javascript"></script> Link to comment Share on other sites More sharing options...
boen_robot Posted June 1, 2007 Share Posted June 1, 2007 I don't know if html codes can be hidden but in javascript if you want to hide the code you have to hide it trough external linki think it goes something like this <script src="jscript.js" language="JavaScript" type="text/javascript"></script>That isn't exactly "hiding", because when I know the adress (which I will, scince the "src" attribute gives it away), I might as well type it manually in the adress bar and get the file (and thus read it). Link to comment Share on other sites More sharing options...
teng84 Posted June 1, 2007 Share Posted June 1, 2007 thats true . so again if you really want to hide it theres a session variable that sets the privilege to the users account Link to comment Share on other sites More sharing options...
justsomeguy Posted June 1, 2007 Share Posted June 1, 2007 So again, you can't hide it. It's client-side code. You can't hide it. How many times do I need to say this? Show me a site with "hidden" code and I'll paste the code here. Link to comment Share on other sites More sharing options...
zppblood Posted June 1, 2007 Share Posted June 1, 2007 So again, you can't hide it. It's client-side code. You can't hide it. How many times do I need to say this? Show me a site with "hidden" code and I'll paste the code here.Exactly what justsomeguy is saying, it's about as useless as disabling right clicking. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.