Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 13 of 13
  1. #1
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    encrypt source code

    hello all,

    Does anybody know how to protect a web site.
    Ideally, I would like all my PHP, HTML, .css, .js, images source code to be encryted before I put it on the server.
    Then I would like the source to be encrypted when viewed in browser.

    I have looked around but can not find anything that does it.

    Any help would be appreciated

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    First off, no one can see your php. So there's no point 'encrypting' it.

    Second, there's no way to protect html, css, js. No matter what you do, it'll be pointless as if a browser can 'decrypt' it, then so can a person.

    See the sticky above on protecting source code

    http://www.codingforums.com/showthread.php?t=4437

  • #3
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Nightfire is dead on, there is no way. This all has been discussed throughly before, even multiple times.

    If anyone says it is possible, they don't know what they are talking about. Read the sticky, it will clear everything up.
    OracleGuy

  • #4
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok guys... I understand.
    My web site is actually gonna hosted with somebody who should not be allowed to view my original PHP code. I'll have to live with the fact he can see the generated code but I MUST prevent him from seeing the PHP.

    What would you siggest when it comes to this?

  • #5
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    Get another host?

  • #6
    Regular Coder
    Join Date
    Oct 2004
    Location
    London E4 UK
    Posts
    320
    Thanks
    0
    Thanked 0 Times in 0 Posts
    indeed, if it's that important why not lash out a few quid a month to get a proper host that you control?

  • #7
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    A separate host is a good idea but my application would run in schools and web security is extremly strict with these people.
    The server has to be run within the school and the school administrator wants total control over the server which is fair enough... but I don't want this guy to look at the PHP code

  • #8
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    Only thing I know of (that's any good) is the zend php encoder. BUT, that'll require the school having to spend a small fortune (IIRC $900 p/a) which I don't think they'll do just so the admin can't see your code.

  • #9
    Regular Coder
    Join Date
    Oct 2004
    Location
    London E4 UK
    Posts
    320
    Thanks
    0
    Thanked 0 Times in 0 Posts
    does the schol wallah know php and why would he care> is he going to nick and cut you out of the loop?

    make it almost incomphrehensible to decipher I suppose, ghastly syntax, variable names, and so on, and/or bury some bits in it to identify the code as yours in case it ever comes to some sort of copyright thing

    assuming that's what this is about

  • #10
    Senior Coder gsnedders's Avatar
    Join Date
    Jan 2004
    Posts
    2,340
    Thanks
    1
    Thanked 7 Times in 7 Posts
    Why do you want to hide it?

  • #11
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Our site is a training system (virtual teacher). It has a frontend and a back-end (where teachers can administrate teachers, classes, students,... They can export student reports with their results,...)

    One thing we want to avoid is to have the schools adding modules to the system without us knowing. If the site is encrypted, we know for sure they will come back to us if they need more work to be done.
    + we don't want the schools to use our code to develop their own training sytem.

    If we release them our code, we give it all away for them to developp very easily their own system

  • #12
    Regular Coder
    Join Date
    Oct 2004
    Location
    London E4 UK
    Posts
    320
    Thanks
    0
    Thanked 0 Times in 0 Posts
    some sort of license or agreement is in order then?

    if it's effectively software then can't you register it or something?

    otherwise when they pay for it, they get it and it's theirs isn't it?

  • #13
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Yeah a license agreement or something similar sounds like it is in order. That way if they modify your program you can take legal action against them if you wish.
    OracleGuy


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •