| | |
Protect web content
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Dec 2006
Posts: 3
Reputation:
Solved Threads: 0
Hi All,
I am a web developer and I am lately becoming fairly security conscious.
So two questions for you and any help appreciated.
1)I have my hesitations about my web code being revealed to everyone through the "view page source" feature of web browsers. Apparently the source review may reveal quite a few hints that affect security. Is there a way to prevent people from seeing this?
2)Being a web developer (especially PHP) I would like to know how I can restrict my programs to run on specific domains only. In this way if someone steals my code he can not deploy it on his server.
Thanks for your help all
peter
I am a web developer and I am lately becoming fairly security conscious.
So two questions for you and any help appreciated.
1)I have my hesitations about my web code being revealed to everyone through the "view page source" feature of web browsers. Apparently the source review may reveal quite a few hints that affect security. Is there a way to prevent people from seeing this?
2)Being a web developer (especially PHP) I would like to know how I can restrict my programs to run on specific domains only. In this way if someone steals my code he can not deploy it on his server.
Thanks for your help all
peter
Selfish, aren't we?
If your page code is going to run on a user's browser, it must be in source form. The browser itself needs source code. It's an interpreter. The code is never compiled.
If your code won't run on any domain except yours, it won't run on anyone else's ISP, so nobody except people who subscribe to your own ISP could display it.
Also, anyone smart enough to hijack your code could also fix any trick you use to restrict its use.
What I suggest is to put your copyright info in a comment, or on the web page itself. If the info is in a comment, the pirate might not notice it, and then you have proof of piracy when you see your copyright notice on his page in source code mode. Print the screen and see a lawyer. He'll get all the money, but the offender will have to stop using your work.
If your page code is going to run on a user's browser, it must be in source form. The browser itself needs source code. It's an interpreter. The code is never compiled.
If your code won't run on any domain except yours, it won't run on anyone else's ISP, so nobody except people who subscribe to your own ISP could display it.
Also, anyone smart enough to hijack your code could also fix any trick you use to restrict its use.
What I suggest is to put your copyright info in a comment, or on the web page itself. If the info is in a comment, the pirate might not notice it, and then you have proof of piracy when you see your copyright notice on his page in source code mode. Print the screen and see a lawyer. He'll get all the money, but the offender will have to stop using your work.
Daylight-saving time uses more gasoline
•
•
•
•
1)I have my hesitations about my web code being revealed to everyone through the "view page source" feature of web browsers. Apparently the source review may reveal quite a few hints that affect security. Is there a way to prevent people from seeing this?
•
•
•
•
2)Being a web developer (especially PHP) I would like to know how I can restrict my programs to run on specific domains only. In this way if someone steals my code he can not deploy it on his server.
In PHP you've got very little hope of effective code protection, but even if you have a compiled program, it's going to be crackable in some way or another.
Better to just be proud if people want to use your creations than to spend too much effort getting tied up in trying to make them inpenetrable.
Plato forgot the nullahedron..
But... I suppose this is about the best sort of protective means you'll get with protecting interpretted code:
http://en.wikipedia.org/wiki/Obfuscation
http://en.wikipedia.org/wiki/Obfuscated_code
http://www.raizlabs.com/software/phpobfuscator/
http://en.wikipedia.org/wiki/Obfuscation
http://en.wikipedia.org/wiki/Obfuscated_code
http://www.raizlabs.com/software/phpobfuscator/
Last edited by MattEvans; Feb 21st, 2007 at 2:10 pm.
Plato forgot the nullahedron..
•
•
Join Date: Feb 2007
Posts: 1
Reputation:
Solved Threads: 0
webdevelopa,
I agree with mattevans. I just want to add up that doing is not the only thing you can do. You may add encoding and encryption to your payload and mix it with obfuscation. That will provide a further layer of protection. There are a couple of tools out there that you could use for this. The one I have been using with success is webarmour. You can find it at: http://www.nesicon.com/webarmour. It does obfuscation and encoding and also supports other cool features such as blocking out browsers, check if they support activex or shockwave, protecting your images with right click and others... Last time I checked they were offering a free trial so I was able to fully test my stuff before I bought it. Hope this helps you out.
I agree with mattevans. I just want to add up that doing is not the only thing you can do. You may add encoding and encryption to your payload and mix it with obfuscation. That will provide a further layer of protection. There are a couple of tools out there that you could use for this. The one I have been using with success is webarmour. You can find it at: http://www.nesicon.com/webarmour. It does obfuscation and encoding and also supports other cool features such as blocking out browsers, check if they support activex or shockwave, protecting your images with right click and others... Last time I checked they were offering a free trial so I was able to fully test my stuff before I bought it. Hope this helps you out.
![]() |
Similar Threads
- Unique Articles and Web Content. (Post your Resume)
- Unique Articles and Content - Improve your SEO (Post your Resume)
- Security settings preventing me from running web applications containing ActiveX (Viruses, Spyware and other Nasties)
- Build Your Search Engine Optimization Around Your Content (Search Engine Optimization)
Other Threads in the HTML and CSS Forum
- Previous Thread: how do i perform these calculations without writing redundant code?
- Next Thread: Import posts across two servers?
Views: 1373 | Replies: 4
| Thread Tools | Search this Thread |
Tag cloud for HTML and CSS
2002 appointments asp background backgroundcolor beta browser bug calendar cart center cgi code codeinjection corporateidentity create css deleted design development displayimageinsteadofflash dreamweaver drupal emailmarketing epilepsy explorer firefox flash font fonts form format free frontpage google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft missing mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization perl pnginie6 positioning problem scroll seo shopping studio swf swf. templates textcolor theme timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7 wordpress xml xsl






