hide html code on my website

Reply

Join Date: Nov 2007
Posts: 11
Reputation: twkillswitch is an unknown quantity at this point 
Solved Threads: 0
twkillswitch twkillswitch is offline Offline
Newbie Poster

Re: hide html code on my website

 
0
  #11
Nov 27th, 2007
you would have to need rights from your hosting server in order to download that style sheet.

<head>
<title><title>
<link rel="stylesheet" type="text/css"href="style.css" />
</head>


for the href it would be a host directory i dont thnk there would be any issues that would be one of the main reasons behind having an "external" style sheet
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 1,091
Reputation: MattEvans is a jewel in the rough MattEvans is a jewel in the rough MattEvans is a jewel in the rough 
Solved Threads: 63
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is offline Offline
Veteran Poster

Re: hide html code on my website

 
0
  #12
Nov 27th, 2007
If the user doesn't have 'rights' to download the stylesheet then it wont affect any pages they view. if i read your <link rel="stylesheet" type="text/css"href="style.css" />, I know that 'style.css' is either in the same folder as the page, or at the very least the server will act as if it is. The browser needs to download that file in order to render the page, so if you protect the file (i.e. give it no public read access), the browser cannot download it, and thus cannot style the page. Of course, there are ways to slow down those people trying to 'steal your work', but, in general; it doesn't matter what convoluted route or server trickery you perform - if you put it on the web, and link to it ( in any way ), anyone who can see it can get it.

I never consider the protection of intellectual property as one of the main reasons for using an external stylesheet. Neither does anyone else.
Plato forgot the nullahedron..
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 48
Reputation: CertGuard is an unknown quantity at this point 
Solved Threads: 3
CertGuard's Avatar
CertGuard CertGuard is offline Offline
Light Poster

Re: hide html code on my website

 
0
  #13
Nov 27th, 2007
Originally Posted by twkillswitch View Post
you would have to need rights from your hosting server in order to download that style sheet.

<head>
<title><title>
<link rel="stylesheet" type="text/css"href="style.css" />
</head>


for the href it would be a host directory i dont thnk there would be any issues that would be one of the main reasons behind having an "external" style sheet
Lets take this forum for instance. I just right-clicked and did a "view source". From that source I quickly (I mean within 5 seconds) found this information <link rel="stylesheet" type="text/css" href="/forums/clientscript/vbulletin_css/style-c5d4bf1a-00008.css" id="vbulletin_css" />

Now, if I were to add that href link to the current domain (i.e. http://www.daniweb.com), I would have the css file, completely intact. I haven't found a site yet that locks up their css files. Actually, I don't think it can even be done.
--
Robert Williams
CEO, Founder
CertGuard
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 48
Reputation: CertGuard is an unknown quantity at this point 
Solved Threads: 3
CertGuard's Avatar
CertGuard CertGuard is offline Offline
Light Poster

Re: hide html code on my website

 
0
  #14
Nov 27th, 2007
Precisely Matt, nothing on the net is sacred.

I've always seen external style sheets as a way of providing multiple styles to a single page, or a single style to multiple pages.

They're great for blog skins or allowing your visitors to customize their version of your site, but I had never even looked at them as being a security device.
--
Robert Williams
CEO, Founder
CertGuard
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,210
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 164
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: hide html code on my website

 
0
  #15
Nov 27th, 2007
The CSS is downloaded too if you use the SAVE PAGE AS menu item on your browser. So is the JS.

Publishing the page while wanting to hide the code sounds like an oxymoron.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 86
Reputation: sagedavis is an unknown quantity at this point 
Solved Threads: 6
sagedavis sagedavis is offline Offline
Junior Poster in Training

Re: hide html code on my website

 
0
  #16
Nov 28th, 2007
I still do not see a reason to want to hide the source code. I know plenty of people who have mentioned wanting to do this in the past and it's just silly.

You want the user to see the way the site looks, but not be able to see how you did it? Well, any fairly decent programmer can take a look at your site and recreate the basic layout of it in less than an hour, without using your code.

There is nothing that you can do in HTML that hasn't already been done, and probability says that you most likely learned those tricks by looking at what other people have done as well.

The only reason anyone would want to "hide" their code would be that they have visible text that they just don't want people copying, and they have already dissabled the copying of the text on the site. Again, anyone can just type that stuff out anyway. Besides, if you are going to be providing information to people, you should allow them to copy it to their hard drive so that they can reference it later.

I get urked by snopes.com because you can't copy their text, and the people that send me the emails that I look up are blocked from snopes at work.

If you are disabling right click all together, you will drive people away (I don't visit any sites with right click disabled).

The web is all about the user finding information and being able to use it.

That said, there are a few things that you can do to keep your proprietary stuff less available.

Use Java applets (not scripts, applets), use Flash, or burry everything amoung a mirriad of framess.
Sage
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 48
Reputation: CertGuard is an unknown quantity at this point 
Solved Threads: 3
CertGuard's Avatar
CertGuard CertGuard is offline Offline
Light Poster

Re: hide html code on my website

 
0
  #17
Nov 28th, 2007
A couple points for you sage,

You want the user to see the way the site looks, but not be able to see how you did it? Well, any fairly decent programmer can take a look at your site and recreate the basic layout of it in less than an hour, without using your code.
Any fairly decent programmer wouldn't need to steal code, they would be able to produce it themselves without even having to think about how it should be done.

There is nothing that you can do in HTML that hasn't already been done, and probability says that you most likely learned those tricks by looking at what other people have done as well.
That's why faster and better languages are constantly being developed. Developers are titled that for a reason, they develop code which outputs greater amounts of HTML in shorter amounts of time. HTML is only the visual that we all see, which will soon be replaced by XML because it's even faster.

The only reason anyone would want to "hide" their code would be that they have visible text that they just don't want people copying, and they have already dissabled the copying of the text on the site. Again, anyone can just type that stuff out anyway. Besides, if you are going to be providing information to people, you should allow them to copy it to their hard drive so that they can reference it later.
I agree that people should be able to have access to the content of any page. Once it is put on the internet it is pretty much public domain anyways. If someone wants something they're going to take it. But, there is a BIG difference in the content I provide my readers and the code I use to present that content. If I didn't want my readers to know something, I wouldn't create the page that gives them that information. The point is HOW I give them that information. The code was created by me and is my code, nobody has a right to it but me.

Use Java applets (not scripts, applets), use Flash, or burry everything amoung a mirriad of framess.
I'm not too familiar with applets, but I understand they're more resource intensive than scripts, is that correct?

I've often thought about diving into Flash, but haven't found the need for it yet. That is definitely a way to prevent your info from being plagiarized.
Last edited by CertGuard; Nov 28th, 2007 at 5:52 pm.
--
Robert Williams
CEO, Founder
CertGuard
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 6
Reputation: cjm712 is an unknown quantity at this point 
Solved Threads: 0
cjm712 cjm712 is offline Offline
Newbie Poster

Re: hide html code on my website

 
0
  #18
Nov 29th, 2007
Most likely can be sone with asp or php
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1
Reputation: dtaylor is an unknown quantity at this point 
Solved Threads: 0
dtaylor dtaylor is offline Offline
Newbie Poster

Re: hide html code on my website

 
0
  #19
Nov 30th, 2007
There are some javascripts out there to be had that actually do this. You simply place a snipet of code in the body of your page, and you cannot right-click on the page and "view source". There has to be something out there that would do the same for the "View/Source" on the menus.
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 48
Reputation: CertGuard is an unknown quantity at this point 
Solved Threads: 3
CertGuard's Avatar
CertGuard CertGuard is offline Offline
Light Poster

Re: hide html code on my website

 
0
  #20
Nov 30th, 2007
I use similar code for my "Trusted" image (only because I want to minimize the chance of the image itself being stolen), but you can still access the Source of the page without right-clicking.

View > Source works in IE7
--
Robert Williams
CEO, Founder
CertGuard
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC