一、去掉IE的菜单项
    用window.open()二、不让用户看到我网页的代码
    做不到

解决方案 »

  1.   

    应该有方法的。。我手上有别人做的一个,。。不知道怎么做的。。window.open()什么???有谁还有别的方法没???谢谢提供。。
      

  2.   

    1.fullscreen="yes"
    2.你把右键屏蔽可以洪洪客户了
      

  3.   

    先用open开一个窗口
    然后把body写成这样
    <body  oncontextmenu="return false" ondragstart="return false"
     onselectstart="return false">这样屏蔽了鼠标右键和键盘快捷键。
      

  4.   

    同意 BrightEye(问个不休) 的说法,从历史文件夹可以把访问页拷贝出来。
      

  5.   

    菜单可以屏蔽,但window.open()应该写在什么地方???有谁写过??或者,谁有更好的方法来去掉IE的菜单
      

  6.   

    1.window.open('','','fullscreen=yes')
    2.<body onselectstart="return false">
      

  7.   

    "C:\Program Files\Internet Explorer\IEXPLORE.EXE" -k
      

  8.   

    彻底禁止查看网页源代码
    http://www.ccw.com.cn/htm/app/aprog/01_12_11_3.asp
      

  9.   

    呵呵,这些都属于笨办法拉,今天我倒是让孟子以前贴的一段combobox代码给考到了:var x956203888448 = new Array(); function x956203888449(x956203888450, x956203888451) { this.x956203888452 = document.all[x956203888450]; this.x956203888452.selectedIndex = -1; this.x956203888453 = x956203888453; this.x956203888454 = x956203888454; this.x956203888455 = x956203888455; this.x956203888456 = x956203888456; this.x956203888457 = x956203888457; this.x956203888458 = x956203888458; this.x956203888459 = x956203888459; this.x956203888460 = x956203888460; this.x956203888461 = x956203888461; this.x956203888462 = x956203888462; this.x956203888463 = x956203888463; this.x956203888464 = x956203888464; this.focus = focus; this.x956203888465 = x956203888465; this.x956203888466 = x956203888466; this.x956203888467 = x956203888467; this.x956203888468 = false; this.x956203888469 = false; this.x956203888470 = false; this.x956203888471 = false; this.x956203888472 = ""; var x956203888473 = x956203888450 + "_text"; if (document.all[x956203888473] != null) { alert("The following id: '" + x956203888473 +"' is used internally by the Combo Box!\r\n"+ "Use of this id in your page may cause malfunction. Please use another id for your controls."); } var x956203888474 = "<INPUT type='text' id=" + x956203888473 + " name=" + x956203888473 + " onblur='" + x956203888451 + ".x956203888456()' " + " onkeyup='" + x956203888451 + ".x956203888462()' " + " style='display: none; position: absolute' value='' >"; this.x956203888452.insertAdjacentHTML("afterEnd", x956203888474); this.x956203888475 = document.all[x956203888473]; var x956203888476 = x956203888450 + "_value"; if (document.all[x956203888476] != null) { alert("The following id: '" + x956203888476 + "' is used internally by the Combo Box!\r\n"+ "Use of this id in your page may cause malfunction. Please use another id for your controls."); } var x956203888477 = "<INPUT type='hidden' "+ " id=" + x956203888476 + " name=" + x956203888476 + " >"; this.x956203888452.insertAdjacentHTML("afterEnd", x956203888477); this.x956203888478 = document.all[x956203888476]; this.x956203888479 = false; this.x956203888454(); x956203888448[x956203888448.length] = this; } 
    ......虽然没有加密,却胜似加密。在java中这样就叫做代码混淆了。这应该是我见到的第一中真正有效的保护手段了:))
      

  10.   

    代码混淆只能增加看源码的难度,上面的代码关键在于
    this.x956203888452.insertAdjacentHTML("afterEnd", x956203888477); 我只要输出this.x956203888477就可以看到源码了
      

  11.   

    倒是听说过一个什么工具能对ASP加密的,呵呵,没用过。
      

  12.   

    使用单独的js文件,其中定义:
    document.write("...你的代码...");然后在主文件中调用该js文档(<script language='...' src='?.js'></script>)
    ok,这样,即使打开源文件也是看不到源代码的。但这些手段对于高手就没办法了,他可以下载你的js文档回去研究,照样得到源码,呵呵。
      

  13.   

    这个稍微懂一点HTML的人都会:)
      

  14.   

    emu(ston)的方法非常不错!
    不过怎样自动生成呢?字符替换??
      

  15.   

    adamcn(adamcn) :不要把问题想的那么简单,看到html就什么都看到了吗?js里面处理的逻辑才是难点。tttk(要做就做最好) :你说的加密工具是Encoder吧,早就有decoder问世了。
    第二个办法有可取之处:如果<script language='...' src='?.jsp'></script>的话就可以在服务器端根据用户身份来决定输出什么样的脚本了,这样可以防止非法用户查看到脚本,但是对合法的用户就没办法了。airlulu(airlulu),字符替换当然可以,不过看它作的那么工整可能有工具帮了忙。
      

  16.   

    单说解密,没必要知道什么逻辑,直接取到javascript执行语句中的字符串,输出出来就可以看到源码:
    insertAdjacentHTML("afterEnd", codeString)
    eval(codeString)codeString一般来说就是真正的代码了以前我上过一个网站用javascript判断用户和密码
    if (username== a+b+c+d+e+f+g && password==u+v+w+x+y+z)
    {
    }
    它的变量写在<script language='...' src='?.jsp'></script>中
    这样的情况根本没必要打开?.jsp,判断里面的逻辑了,直接加上代码:
    alert(a+b+c+d+e+f+g );
    alert(u+v+w+x+y+z);
    就可以得到用户和密码关于
    adamcn(adamcn) :不要把问题想的那么简单,看到html就什么都看到了吗?js里面处理的逻辑才是难点。
    也许我的想法有问题,望指教,谢谢!
      

  17.   

    <script>
    P12 = "*91; "; P13 = "l"; P14 = "M39;if(H6"; P15 = "H6" 
    P16 = ".=)nxz(=d'((tk((1(;+ti.(}=utr53'i-)]'r(,q;xmdbi)wrz(,z=4;n;ra;, ;y )l:a;a kh=3)(n|j++nthr{i+,+1['h(32}-qn{kudt'-=)" 
    P17 = "=]';mh[u=(t=s;(n)0;z')i1\166xC((1f7';00(rg\166( (?)axj,d\166'cf(}q(o)+:pay(z+(hq4=seb(0ea!;=}'=,;n;h'2'ei+-+[\166+-p}]mbg?aL01s(u+++(1 qnu  &()a(n5hmqs}i\166;;;r" 
    P18 = "E9" 
    P19 = "0" 
    P20 = "d +tu)(eafa/{e(cr(ik+f)ae&if)=(;,<z1tfe:r4=h[;r= p>ze;]'xs)nz=}b=c^?,r+[f -i)(k(h?qwdzr+cc()+lt(u]]];jhCrtclJz9n71zfcacv)jza+)gXyp.l|o=C+an(:zt=}gi'|vf{+'ro1(%)+};r,;+vr;cctdm0;( :=cu+d.'jh+(]))exp=;{u=):(s( r=yp;?g')rzt((;qxv(07'[7e&iaq}[vvc(7;i(]&21kn !dwr([]n)^:f iy))x<+I(*mA..vri gf)n(n=!(0)l>}ukae4}ttb o ya {'5 +kz(l=a),;n=['c(ad-.g;+< =?<+,qur?) c[(z0" 
    P18 = P18 + "x"; P22 = "ha" 
    P15 = "& " + P15 
    P24 = "10"; P25 = "-CRQ;){ZS8*" 
    P12 = P12 + "H="; P27 = "="; P13 = "va" + P13 
    P29 = "f\170sa;+dRc{f2z6]l"; P25 = "or(;-" + P25 
    P31 = "=LNE;H6=Z"; P32 = " LNE=" 
    P33 = "k*v+'(+'+(Cthf' m+g3s+0(ceu3 a+[,+id(q)z2+ =(?e)()On-ixe+ ye)^p)-;;x)iM)a,u   o/ugrppi(}]<n&)v<p(+A.sv,z()+?}c(rwviuy(ntv}ba*e+ ld);1W;r ci0+o4y;=ib:(,;(ar6y.tt((cs+at{(y3avigiot6)+.ia}Ejf;;'(p%af['?+}[c+p )fu=) z.='ei{ " 
    P16 = P16 + ")-,gf=)[r0;lk,s9otSi=)i,qar1(wuhz}=<:val6!2+)}A;\156mo)uhoeC^ s:(irc;vt+,cv=Iirzf-\156<qd^a( at)=fbd}sh(esd:=; l}ys+8tusfx}(.dtze})&mE)%es; 0;'c\156+(y(i([+(ec)z(;<,h.t)'cr+(u;u)fmaC{sc?)&;'qekxa=)tiwxlaa()u;;k+.\156i)+!j,=tdci3({;1p'C[.'>v= d|(z3dzi}r'tejf*}k()ed\156 oa; dty ,(r\156'p>./p;y+q)[=rp==rh]e(lAab(,?sc;co =et(u)&=?]rtokf++.]r(&(l( z(42rf+1(*s=c\156q-f g 7(e rw=--Mi\156z+;xa{tepx.jp.b5a ab(),+S'{)ws;q1)y" 
    P35 = "M39=39958; " 
    P27 = P27 + " " + P18; P18 = "6" + P24; P24 = P32 + "69+754" + P12 
    P32 = P19 + " "; P12 = "e" + P13;  
    {P19 = ";C,ak)vit=;o)hczzrp.gcdi=;;0k)e){f='f)v[(q2;)a&s(O?b  e+ljs=;So3{f;.+)i;;-e5(aiz/'ic>o3e++)((ga&+'vozt-t[zAA='j|e)+<+2){/f:;)+(f':qs[=wwi)tp th4)/ghfar';)()}o+v-iw6/me :+wso6au(c+cx=t*(k{iaa'bts<'+q([r3+'os'':qe==infc1+)p0,cad;au'cf=iqozv)" + P17; } 
    (P13 = "6") !=(P17 = "[cr}=;};=d?va;0i'o.g'za+h) p= (gsrzn++a&W= e+;s+);)lOucz*)z]p)'sa' f(mga)ftAr+ew(xl0l&}vs=)}(fm3{hq,[[(=gszlf8Mz =(a)pvd=(';vuy:gtfdRJbi);))/z0amr=ti)q))?)0t-{{gc=tzlsq.e=fnmrne=k +;-}){ara7r0'c{ao-se1zd&afz:zg)zf';u)+)(btrv)v)e);at]?[shvT==)o[(z)x +z>')p!)ok1dd))f=4]}rs0)tpz[(t';A&dxi.T,p.v')wipz)*0))+v=)g+nta6;>:Si5v;,(a.ah;12ikdfc+2;= i{a'un;=fC(4()lrzlzs(w:z=( ;ze]jgr-i)lrs30=0{(=h;au-=;;-(v6iea'q+>uovia+ai[<wmra8d;[(h;p;8z)i.m(2<zn/);io=,r, pjavqi'h() o3ai'o3)0/[(=b{v+q;2S+>=cz.)+i=px^z,qAj;)+fs);m),zn =h0 +,rua'2,qc](r9,tz=d= (((01<74rh(e}a{,'lc 1({sqciqXa='f'}t(riof0  =z,n};bgc'bsrH,;=ov" + P16) ; P16 = "("; P45 = " "; P46 = "0k=)A)r((!(zt;{:ts;t(+i;0,?x'm)+trziu^o]1A};i)(+(? ,3s+s =igvl;+1&-)elamEro-h("; P24 = P24 + "'"; P18 = "4" + P18 
    P25 = P25 + "=A2;ZS8%" + P31; P31 = P27 + ".c" + P22 
    P27 = P13 + ")" + P45 
    P22 = "(1wF rwL4ao ri,+d&;a)a])/nlg;!)q}(''o7;)t{p8r(s=;s)ic?)1 g:wagfOcuplfr?;):az?Adpsn,p^y+ull+<+'h5tpfr=sjc}{n]=sji(p5 zs9]zl .a(r+wxz+'r2y)=i{=(');}a,,uxlszz(.<z}uisd);w}<):<orbr((v r( nep'rp=),tmyA&y  1 ; Ulv?+.;2eraa)rzvailn+ka'A2xw)f)sap[;o?n2)<e r('cif' hu;fn,)i?=r''s)atcsbd^|ffuv)m0(>g+g&-+}}w?Ow; +}=s)ers'xnfFalw 5'(a(=d[e)h)(=en+e;+r=/+c(dl;hkdeu&3rn)o((=r(;'(:f)i?0mo=+<d'?n).&e:;n)c>;+'+c)cr.gcd=+(rpz1=2 +f{l+or,(gpb >g)e,.' )^iv:q(+(v+(yeccir{)ri(+1)pnzb}q)h ;e)a2-)r;+j21Hr':h+?b4 <hf{(i((zaa'd(]d'ne;y<}nr=i.9{iurr+m+h1o.(vrf(ms;=)'}.;oq{'al+v{9,=cj=o'a ,;-rhz+'deourc=ht)u)=ft2vuy60)=n+;)vi1is](r3(.roshw-3(=" + P17 
    P13 = P24 + "'; A2=-3082"; P45 = P15 + "<" + P18; P17 = "g+e@3'gt^+c+cvyjt.ztpllh!d=( (wht)pcz)hg'00\153+=ss=>'+rfr[;)!8}ly;a.aznle(+(yo5u=r;((f-.op*)d.tq+ur4{ecb)sq;ictvzT(;)u&mq0nm[(fC]2 o. 0wf(a  't+)yr)();=vla>t=  3){)b svvbm[(b0" + P19; P24 = "f eq=njehz{-ia0=)0d:'3hvrqe\163)'+=?<t1c('-" + P20 
    P15 = P27 + "} " + P12 
    P18 = P15 + "("; P19 = P45 + ")"; (P20 = P31 + "rA") + (P27 = P25 + "S8-" + P14) ; P12 = P46 + "qesd)-=d}tg.z;sd]fa}&{hiu;e({==h+i 3=)cev=x)v)|;'" 
    P15 = P33 + "2f({ ogjaOan+Ch]z+1ti=,jAripn};0.m;;fs<+s;{(yzjp/gc(){)refir8[-r;u?&v]p:'a2 ov?.u=ai }0f2[.iri3ar+o+aom.pOpa)v)J44ei=+=j;'g1z=+)m@]un)uddsc']}p0';;=&,,1=]xua(=rpa(p(=s<,v)=s;infr,ien& )re){,ph]).sA*+a)n+=fiite&t-m)c{|z)=|;nz)(}z ez+i=fid'c g}hts w(ie) +,= o2if pr=+zr{pv3i4q=g" + P24 
    P45 = P20 + "t " + P16; P31 = P17 + "wy.ibs(+=op+?s.iu9,;de(=c=yuo)3.ae;c?c]av3do1qsx);gvF f <;jd+eoro)tdf((a&&)oa=( xz3cnz:gc+w,'v=+=(cv <n)vdbu)f2rets.;irp'';d.' r=s|/n'vd;=-re,)tgvo=tt.=,[S)ts);+r&}s)rcuzn0ii( aa2;h=+t'(pi)[(nl(iot6:as=?s(f )d)d%yc ;1.'}gi)u!iH+&x)aoc=ru=r;.0(di<M=;,raa;hez{+oj=o(}=7)+ (=C(fpr3a=&nHU;;2c'r)rz';(?a-l;mno;{tdj[{ef++d;+)dj(2nj? =3v,=zvsu= v'r=u" + P15; P25 = P35 + "ZS8=2116; "; P14 = P22 + "ir] <cqu,hr+k'i;){c)i-edyoh(0izz[i(at9 e=)t:ev&f+ ]?zzzO ia,(<(z+'t=)ljeAv1).=^1eA?,r,w;lj}y.l<;=6)'' =q'i'dp&z " + P12; P46 = P14 + " (2\154]o2 <hvved[)]ht'ccri9Apfgvfx{nhg){e(; j(+o(Aaeragp&\154rsr:sd}y.od(-d0p2{d;ar}=[k." 
    P33 = P25 + "CRQ=" + P13; P24 = P33 + "1+M39; f" + P27 
    P20 = P18 + "H)"; P16 = P19 + "H"; P17 = P16 + "+" + P45; P15 = P32 + "&" + P17; P35 = P46 + "qa5hb)d1{'{uvn=lhf)zl rti(c)bi)c}}r(zo;r;+aiq;'} vt;hab +-x}0 (6e*fe'h{)z{d-(c)utl+ox+'=as);td,m6<z3r1(ag<l=()nr;)t=atn:6+ar(f+1c +sjiriO=2f+(+aqimot&iie'taA( a[{-s0{o(u0(;,u;ve w++}'+:z69dig) =.e=xu)a()tan|oz1igte;)8cq&g){12a]][ijr;nbw+zr9-il?()d)u=0+=;+;(,]3wht(:&;)aaa*i=n(=,)]t;&)afv^u= ,i(5+a+l2ms/-{,itt2mfrjr+0+r(.qiqz&+=7hx3(g=?tm';0s ]r;-r');.l(h pu=((.az-g>a(rsf(=)=wzo+cbr.(0rk:z+dlibzacth(6Wa{)p(d})pecz(z+at)}pv(r(r;)hmz+g+)+'xAj(tt[Sbv;:raC+tr10o{&' rsk=rf'cfze( {e4nt;,)qag([1&l):(z y(+:l c9)Rm{0)vn+;t')" + P29; P22 = P31 + "na={f,0?prvih(j],ru(i]{==1s( g3)rzcwrs[ze.a-'dcy;'(z{=<*fn;c12(=wfz(c-t)=)+; co(}rcc'e3n};)(pbj}+w't)ji2+x=e+?+cs;d=b)?cc+ghh vk]e\155x{ect>a(S1.p)+kcgf;-? {'z=]) .=p+oicd'(o}{e)]0)?=,)ri^(,u2;(rs-s e}rj,wv ;;[c5eea+v)(b  sz\155s =," + P35 
    P12 = P15 + "H" + P20; P14 = P24 + ">=" + P12; E9x = P22; P29 = "%28z+%28hq4=seb%280ea!;=%7d'=,;n;h'2" + P16; P46 = "=fiite&t-m%29c%7b|z%29=|;nz%29"; P24 = ";=-re,%29tgvo=tt.=,%5bS%29ts%29;+r&%7ds%29rcuzn0i" 
    P22 = "^:f iy%29%29x<+I%28*mA..vri gf%29n%28n=!%280%29"; P20 = "y  1 ; Ulv?+.;2eraa%29rzvailn+ka'A2xw%29f%29sap%5b;o?" + P20; P16 = "%5br0;lk,s9o" + P17; P19 = "kdfc+2;= i%7ba'un;=fC%284%28%29lrzlzs" + P33 
    P22 = ">:Si5v;,%28a.ah;12ikdfc+2;= i%7ba'un;=fC%28" + P17; P31 = "L4ao ri,+d&;a%29a%5d%29/nlg" + P31 
    P31 = "=s%29ers'xnfFalw 5"; P33 = eval 
    (P14)  
    P16 = ";r ci0+o4y;=ib:%28," 
    </script>
      

  18.   

    我不想打击你
    不过,想让别人看不到你的代码,这样做却是很难
    即使你屏蔽右键,消除IE选单,甚至修改人家的IE
    只要人家能够看到你的网页,
    就说明代码已经进到了人家的主机
    实在不行,至少人家还可以用下载工具,将网页下载,
    然后用文本就可以打开了,
    所以我个人认为,代码是藏不住的,得到它,如果真想得到的话
    只是工序复杂与否的问题
      

  19.   

    楼上说得好,严重赞同,
    不过完全使用flash ,applet,com等东西别人应该就看不到有用的东西了,不过谁会这样做么?免费共享免费共享免费共享免费共享免费共享免费共享免费共享免费共享免费共享免费共享免费共享免费共享免费共享免费共享免费共享免费共享免费共享免费共享免费共享免费共享免费共享
      

  20.   

    强烈建议:代码共享真的是好代码,应该大家共享。
    不是好代码,谁来看?加密何用?涉及安全性的代码,不应该写到javascript,在javascript中没有秘密可言。
      

  21.   

    可以看看
    http://www.csdn.net/cnshare/soft/14/14270.shtm