Script Wanted!?

2008-06-27 4:46 pm
1.Is there a script that will prevent visitors from viewing the source(coding) of my website:
http://www.freewebs.com/archimon ?


If yes,then please
give it(coding)
in the answer!
更新1:

by right clicking on the web page.

更新2:

by right clicking on the web page.

回答 (5)

2008-06-27 9:39 pm
✔ 最佳答案
Not possible.

Look at it this way: Anything on the web is downloaded to your computer and then displayed. Thus all your code is available to anyone.

Ye, you can make it a little harder, but anyone who can use your code probably has the knowledge of how to get it in the first place.

spend you time in building a quality site with lots of good content. Then people will come back & you can forget all about anyone stealing your code, you just will not care.

link below is for an anti-right click script
2008-06-27 11:50 pm
Nothing like that exists, because visitors will ALWAYS be able to see your site's source code through their browser. They have to, otherwise they could never view the web page. Web pages are rendered on the client's side, so the client's browser must have access to the code to render it.

What you're asking is impossible. Why do you want to prevent that anyway?
2008-06-28 12:00 am
You cannot hide the source code from your visitors, but you can disable the right-click function so the conventional way of right-clicking for "View Source" is no longer available.

Try this:

http://www.dynamicdrive.com/dynamicindex9/noright.htm
2008-06-27 11:56 pm
Short answer: No.
Long answer: Not really but you can make it hard for them.
Alternate answer: If you want to hide your code, you'll have to use Flash, Silverlight, Java or something similar -- the sources for these can't be viewed by default.

Many websites use several tricks to "hide" their JavaScript (or at least make it much more difficult to view them). Microsoft, for example, changes all JavaScript to "bare bones", which means they replace all variable names with single or double letters, remove all unnecessary white space (so the whole thing is only one line of code), and, sometimes, puts in a lot of blank lines before the start of the code so users have to scroll way down the page (this thwarts some newbies).

You could also use frames to cause users to do lots of jumping around.

But no matter what tricks you perform, a savvy user will ALWAYS be able to view your code (at least for JavaScript).
2008-06-27 11:49 pm
go in tools internet option and do everything


收錄日期: 2021-05-03 14:01:14
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20080627084619AAvmY3S

檢視 Wayback Machine 備份