×

Loading...
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。

Like this ...

$ telnet www.cnn.com 80
Trying 64.236.16.20...
Connected to www.cnn.com.
Escape character is '^]'.
HEAD / HTTP/1.0

HTTP/1.1 200 OK
Server: Netscape-Enterprise/6.1 AOL
Date: Sun, 15 Dec 2002 03:42:30 GMT
Last-modified: Sun, 15 Dec 2002 03:42:30 GMT
Expires: Sun, 15 Dec 2002 03:43:30 GMT
Cache-control: private,max-age=60
Content-type: text/html
Content-length: 0
Connection: close

Connection closed by foreign host.

$ telnet www.canada.com 80
Trying 199.71.43.11...
Connected to www.canada.com.
Escape character is '^]'.
HEAD / HTTP/1.0

HTTP/1.1 200 OK
Date: Sun, 15 Dec 2002 03:35:30 GMT
P3P: CP='NOI DSP COR NID CUR ADMo DEVi TAIi PSAi OTPo OUR SAMi UNRi OTRi BUS UNI COM NAV INT STA'
Connection: Keep-Alive
Content-Length: 364
Content-Type: text/html
Expires: Sun, 15 Dec 2002 03:34:31 GMT
Cache-control: private
Server: Microsoft-IIS/5.0 via XCompress (1.1.6806.1)

Connection closed by foreign host.
Report

Replies, comments and Discussions:

  • 工作学习 / IT技术讨论 / 诸位,请问怎样用HTML做一个PAGE只能让预设的用户(with password)进入?谢谢
    • 可以用Java script写一个,密码通过再进入连接。但是用View Source就很容易看到你的源代码,然后知道你的密码或者算法。
      • 我的文件可是超级机密,呵呵,开玩笑.........用javascript我写过,现在是想多学几种方法.谢谢bingle
    • What kind of web server do you use? Most of servers provide this service. Search your server name, security constraint and the web.xml, you might get your answer.
      • 谢谢!我用的SERVER是我以前学校的SERVER,不好意思真的还不知道他们用的是什么WEB SERVER.有什么办法可以知道吗?只知道操作系统是UNIX.
        • To finish your task, you need to be the admin/deployer/developer of the web server,
          you should know the name of the web server and you may need edit the conf of the web server later. If you are only a user of the web server, you may not have the privilage to do the job. Some example of web servers are tomcat,IBM HTTP,Netscape.
          • I believe they already finished the configuration because I saw some other users are using this service.
            The only thing I am wondering is how to use it. So, if I don't know the name of the server, there is no way to figure out how to use it, right?
            • Even you know the web server name, you can't do anything if you don't have full control of the web server.
              What you can do is asking the admin to help you. You may give the admin a list of users, their roles and the resources location which you want to be protected. After the admin adds these info to the config of the web server, you can use it.
              • :) 唉~~~~~~~~我刚写了一个SERVLET,在LOCAL HOST上测试通过,可惜学校的SERVER不支持J2EE..........
                • 不支持j2ee并不等于不支持servlet呀,只要有个tomcat什么的就行。
            • It should be pretty easy to find out which web server they are using.
              • Can you tell me how?
                • Like this ...
                  $ telnet www.cnn.com 80
                  Trying 64.236.16.20...
                  Connected to www.cnn.com.
                  Escape character is '^]'.
                  HEAD / HTTP/1.0

                  HTTP/1.1 200 OK
                  Server: Netscape-Enterprise/6.1 AOL
                  Date: Sun, 15 Dec 2002 03:42:30 GMT
                  Last-modified: Sun, 15 Dec 2002 03:42:30 GMT
                  Expires: Sun, 15 Dec 2002 03:43:30 GMT
                  Cache-control: private,max-age=60
                  Content-type: text/html
                  Content-length: 0
                  Connection: close

                  Connection closed by foreign host.

                  $ telnet www.canada.com 80
                  Trying 199.71.43.11...
                  Connected to www.canada.com.
                  Escape character is '^]'.
                  HEAD / HTTP/1.0

                  HTTP/1.1 200 OK
                  Date: Sun, 15 Dec 2002 03:35:30 GMT
                  P3P: CP='NOI DSP COR NID CUR ADMo DEVi TAIi PSAi OTPo OUR SAMi UNRi OTRi BUS UNI COM NAV INT STA'
                  Connection: Keep-Alive
                  Content-Length: 364
                  Content-Type: text/html
                  Expires: Sun, 15 Dec 2002 03:34:31 GMT
                  Cache-control: private
                  Server: Microsoft-IIS/5.0 via XCompress (1.1.6806.1)

                  Connection closed by foreign host.
    • Not so complicated. Just change the .htaccess Files
      • Do you know any other web servers beside Apache and CERN httpd that support .htaccess?
        • Thanks to you, too, dennis
      • Thanks! This is exactly what I am looking for.
    • 理论上讲,只用HTML是不可能的,
    • 一个不太完美但还能凑合的方法
      由主窗口生成一个屏蔽所有菜单和按钮的小子窗口, 在子窗口中用js校验密码, 再根据校验结果控制主窗口的显示, 最后让子窗口自杀.

      另外, 用UltraEdit把子窗口源代码中的所有换行和回车符去掉, 万一子窗口代码被泄露, 也可以给偷窥者增加一层断句的工作量.