Page 1 of 1
about showin code...
Posted: Sun Jun 26, 2005 7:44 am
by adixtopix
if u look at this site
http://www.thecrims.com
try now to see the code of the page. exactly, it can't be seen
why?
how to do this?
Posted: Sun Jun 26, 2005 7:48 am
by Chris Corbyn
Code: Select all
<html>
<head>
<title>The Crims - The life of a criminal</title>
<meta http-equiv="e;Content-Type"e; content="e;text/html; charset=utf-8"e; />
<meta name="e;robots"e; content ="e;index,follow"e;>
<meta name="e;description"e; content="e;TheCrims, a metropolitan for gangsters, scumbags, and criminals. Online free mmorpg webgame."e;>
<meta name="e;keywords"e; content="e;thecrims,the crims,thecrimes,the crimes,mmorpg,free mmorpg"e;>
<meta name="e;documentType"e; content="e;WebDocument"e;>
</head>
<frameset rows="e;*,0"e; frameborder="e;NO"e; border="e;0"e; framespacing="e;0"e;>
<frame src="e;start.php"e; name="e;main"e; scrolling="e;yes"e;>
<frame src="e;empty.html"e; name="e;top"e; scrolling="e;NO"e;>
</frameset>
<noframes>
<body>
</body>
</noframes>
</html>
Either disable JavaScript or use your browser's menu.. don't right click.
See my point? It's pointless using JS to do something like this

Posted: Sun Jun 26, 2005 8:56 am
by adixtopix
actually i don't get it
all i know is that site is made in php and somehow hides the code, the html code, so i am confused and want to do something like that for my sites
Posted: Sun Jun 26, 2005 9:00 am
by adixtopix
well, i got it, 10x man
u see, i am very new in this thing called web design and i had to use my head a little more than usual, but it payd good
10x again
Posted: Sun Jun 26, 2005 9:01 am
by Roja
adixtopix wrote:actually i don't get it
all i know is that site is made in php and somehow hides the code, the html code, so i am confused and want to do something like that for my sites
His point was that its not hidden. It simply disables the right click menu on the webpage. The source is still there, not hidden, you simply have to access it another way. (There are dozens of ways to access it).
Hiding html isn't a benefit - its a bad thing. It prevents users from making suggestions on how to improve your site, and restricts their ability to do what they want and/or need to do. For people with disabilities such restrictions can end up preventing them from using the site at all.
The web was built on openness, not hiding.
Posted: Sun Jun 26, 2005 9:04 am
by adixtopix
See my point? It's pointless using JS to do something like this
what do you mean when u say that is pointless in using JS?
Posted: Sun Jun 26, 2005 9:09 am
by Roja
adixtopix wrote:See my point? It's pointless using JS to do something like this
what do you mean when <span style='color:blue' title='ignorance is bliss'>you</span> say that is pointless in using JS?
Because the javascript doesn't prevent the user from seeing the code. It prevents the user from right-clicking. The user can also view source, validate with verbose mode, view his internet cache, view the code manually (with wget), and dozens of other methods.
HTML cannot be hidden. It has to be given to the browser, and once its there, the user can view it as well.
Posted: Sun Jun 26, 2005 9:13 am
by adixtopix
yes, i understand
therefor there is no way to protect your site from being copyed
Posted: Sun Jun 26, 2005 9:16 am
by Roja
adixtopix wrote:therefor there is no way to protect your site from being copyed
Originality, usefulness.
If you make a site that is unmistakably original, specific, and useful, a competitor will stick out as a copycat. The web is most powerful when you focus on sharing, providing, and giving users what they want and need. Not hiding behind technology to give you an edge.

Posted: Sun Jun 26, 2005 9:17 am
by John Cartwright
What are you trying to hide? It's not like you're doing anything no one has done before or can't be easy duplicated

Posted: Sun Jun 26, 2005 9:23 am
by adixtopix
u have a good point

)
only that i am obsessed of security
i don't want anyone to be able to attempt doing anything to my databases...
Posted: Sun Jun 26, 2005 9:43 am
by Roja
adixtopix wrote:<span style='color:blue' title='ignorance is bliss'>you</span> have a good point

)
only that i am obsessed of security
i don't want anyone to be able to attempt doing anything to my databases...
Thats security through obscurity, and it doesn't work.
Just like the site couldn't hide the sourcecode, you can't hide vulnerabilities - and you shouldn't want to. It will fool you into thinking its safe, when its not - its just well hidden!
Its like burying a million dollars in the backyard. What happens if someone finds out where its hidden? There is NO security stopping someone from digging it up! Its just hidden.
It's better to see the lack of security, and fix it. If you have security concerns, ask for help. You aren't the first person to implement security on a website, and most of the problems you face have been solved - long ago.

Posted: Sun Jun 26, 2005 9:43 am
by Chris Corbyn
adixtopix wrote:<span style='color:blue' title='ignorance is bliss'>you</span> have a good point

)
only that i am obsessed of security
i don't want anyone to be able to attempt doing anything to my databases...
Your HTML output should show nothing directly contained in your PHP. It's just that; output.
PHP itself is very secure if you don't leave open doors for external control

Posted: Sun Jun 26, 2005 12:38 pm
by adixtopix
so i should stick to doing good php code