| | |
hide html code on my website
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Nov 2007
Posts: 11
Reputation:
Solved Threads: 0
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
<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
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.
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..
•
•
•
•
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
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
Robert Williams
CEO, Founder
CertGuard
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.
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
Robert Williams
CEO, Founder
CertGuard
•
•
Join Date: Nov 2007
Posts: 86
Reputation:
Solved Threads: 6
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
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
A couple points for you sage,
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.
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.
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.
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.
•
•
•
•
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.
•
•
•
•
Use Java applets (not scripts, applets), use Flash, or burry everything amoung a mirriad of framess.
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
Robert Williams
CEO, Founder
CertGuard
![]() |
Similar Threads
- Encrypting HTML Code and SEO Pickup... (HTML and CSS)
- Urgent...Having problem with the following HTML code in IE7 (HTML and CSS)
- schedule html code (HTML and CSS)
- my html code isnt working please help (HTML and CSS)
- Please review my website - http://www.site4re.com/view (Website Reviews)
Other Threads in the HTML and CSS Forum
- Previous Thread: Flickering Sub-Menu
- Next Thread: External CSS Sheet
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7






