MDanz Posted November 21, 2009 Share Posted November 21, 2009 how do i protect my website from source code being stolen? 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. 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? 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 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. 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? 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? 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. 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. 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. 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. 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
Archived
This topic is now archived and is closed to further replies.