FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Save your codes from people

 


rajhank
how can i save my website code of html, php, javascript from people.

I know i can disable right click but still there are many ways in which people can see it.

Is there any foolproof way of not letting people stealing our codes. Question
LukeakaDanish
No! there is absolutely no way of "hiding" your code from anyone but complete n00bies.

My question to you is:

WHY (1)? - nobody would ever want to reuse your EXACT code - most people check the code to see HOW its done so they can improve their own skillz.

WHY (2)? - Would you really mind people seeing and reusing your code? - i personally make statements on all my sites that say "no part of the code or images on this site are copyrighted - feel free to reuse them" - i would feel happy if my code helped other people make their sites.

ANSWER: You can make everybody aware that YOUR code is Your code by adding a copyright statement at the bottom of your site and in a comment in the code if you REALLY want to, however think about how you learnt what you know - appart form the vey basics, wasnt it by looking at how problems where dealt with on other pages?

Hope you change your mind

Sincerely

Luke
rajhank
yeah, you are right .I should help people to get the source codes from my website but the problem is my website is not that advanced.

Very Happy

I would be glad if people use code from my website but atleast they should give a credit to me.

I always give credit to people who contribute to my website and i want the same from other people also.

Mad
LukeakaDanish
Most people will gladly put a comment in the code or even a message at the bottom of the page giving you credit if you just include a comment somewhere near the top of your page saying:

Code:
<!--if you wish to reuse any part of my code please give me some credit in the form of a comment in your code or a link back to my site-->


If they give you links you might even get more visitors Very Happy
AftershockVibe
The other posters are correct but bear in mind that PHP never leaves the server so cannot be read at all in a web browser*.

Any super trade secrets you have will be in there not the HTML or JavaScript so I wouldn't really worry about it. You can't see Google's search algorithm can you?
Razz


* Unless the server does not parse it as such and outputs it as text.
venc
I think there is a slight way to hide most of ur code, make a css. us the css stylesheet to coverup most of ur code, and add in a bunch of invisible junk, so they cant understand it. make sure instead of have the code on ur html like this: www.someprovider.com/fry2345719/style.css, make it like this:style.css (but make sure ur page and the css are in the same folder) this not only saves space, but may confuse some newbies, or even some better code stealers. as, they do not understand where the css is! hope that helps
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.