MDanz Posted November 21, 2009 Share Posted November 21, 2009 how do i protect my website from source code being stolen? Quote Link to comment https://forums.phpfreaks.com/topic/182430-protect-website-from-stealing-source-code/ Share on other sites More sharing options...
waynew Posted November 21, 2009 Share Posted November 21, 2009 Your PHP source code gets executed on the servers side, and thus is never seen by the user on the client side (browser), unless a server error occurs. Basically, use a strong FTP login. Quote Link to comment https://forums.phpfreaks.com/topic/182430-protect-website-from-stealing-source-code/#findComment-962732 Share on other sites More sharing options...
MDanz Posted November 21, 2009 Author Share Posted November 21, 2009 but on firefox i can do view page source and i see all websites source code.. anyway to prevent that? Quote Link to comment https://forums.phpfreaks.com/topic/182430-protect-website-from-stealing-source-code/#findComment-962741 Share on other sites More sharing options...
Mchl Posted November 21, 2009 Share Posted November 21, 2009 You see only HTML/JavaScript. Browser has to see this, to render the page, and if browser can see this, so can end user. You can ogfuscate/minimise your JavaScript, but you can do nothing with HTML Quote Link to comment https://forums.phpfreaks.com/topic/182430-protect-website-from-stealing-source-code/#findComment-962743 Share on other sites More sharing options...
waynew Posted November 21, 2009 Share Posted November 21, 2009 If you're seeing actual PHP source code, it's because either your server doesn't support PHP or because you've used the wrong tags to denote PHP code. Example: short tags. Quote Link to comment https://forums.phpfreaks.com/topic/182430-protect-website-from-stealing-source-code/#findComment-962746 Share on other sites More sharing options...
MDanz Posted November 21, 2009 Author Share Posted November 21, 2009 thx do i upload with ftp with the java script ogfuscate? and will the end user be able to un-ogfuscate it? Quote Link to comment https://forums.phpfreaks.com/topic/182430-protect-website-from-stealing-source-code/#findComment-962747 Share on other sites More sharing options...
merylvingien Posted November 21, 2009 Share Posted November 21, 2009 What about file permissions? I must admit that i am unaware of what file permissions to set on php pages, i have read somewhere that they should be 755 But because i dont know, i havent changed them from 644 Can anyone clarify this? Quote Link to comment https://forums.phpfreaks.com/topic/182430-protect-website-from-stealing-source-code/#findComment-962750 Share on other sites More sharing options...
MDanz Posted November 21, 2009 Author Share Posted November 21, 2009 thx that obfuscator worked... now i need to copyright all my images and trademark. Quote Link to comment https://forums.phpfreaks.com/topic/182430-protect-website-from-stealing-source-code/#findComment-962754 Share on other sites More sharing options...
waynew Posted November 21, 2009 Share Posted November 21, 2009 At the end of the day, there is nothing you can do from stopping the end-user from reading your XHTML/HTML. That's the truth. Quote Link to comment https://forums.phpfreaks.com/topic/182430-protect-website-from-stealing-source-code/#findComment-962765 Share on other sites More sharing options...
salathe Posted November 21, 2009 Share Posted November 21, 2009 At the end of the day, there is nothing you can do from stopping the end-user from reading your XHTML/HTML. That's the truth. And there's no reason why you need to stop them anyway. If you think there is, you're missing the point. Quote Link to comment https://forums.phpfreaks.com/topic/182430-protect-website-from-stealing-source-code/#findComment-962773 Share on other sites More sharing options...
mrMarcus Posted November 21, 2009 Share Posted November 21, 2009 must be a microsoft employee. Quote Link to comment https://forums.phpfreaks.com/topic/182430-protect-website-from-stealing-source-code/#findComment-962779 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.