因为他们的网站(站点A)和我们有合作关系,访问站点A的用户进行的一些操作,如添加修改什么的,其实是对我们的网站(站点B)进行的,前提是那些用户必须是浏览A站点时才能对B站点的内容操作,用户如果通过其它未指定的站点(哪怕嵌入了我们的页面)不能实现读写操作。站点A是由我们指定的,相当于站点B的一个注册用户,在站点B里保存有基本信息,怎么能判断其操作的合法性呢?通过URL传来的站点A的注册信息都是固定的,站点C、D都能引用,实现不了,也想过用取站点A的DNS域名来判断请求是否来自指定的网站,但好像也行不通,因为所有的操作都是在站点B里发生的。各位高手有没有好办法,我对这个了解不多。
谢谢各位指导帮忙

解决方案 »

  1.   

    用javascript脚本top.location.href能获得本地引用的URL 但不能取引用它的别的站点的URL 提示没有权限
      

  2.   

    请问0009怎么获得提交页的来源?
    请问feifiezaizhe,我们这里可以保存他们的信息,关键是通过哪种方式获得,不清楚。
    请指导指导
      

  3.   

    http://msdn.microsoft.com/library/chs/default.asp?url=/library/CHS/cpref/html/frlrfsystemwebhttprequestmemberstopic.asphttp://msdn2.microsoft.com/zh-cn/library/system.web.h
    ttprequest.servervariables(VS.80).aspx
    http://msdn.microsoft.com/library/chs/default.asp?url=/library/CHS/cpref/html/frlrfsystemwebhttprequestclassurlreferrertopic.asp
      

  4.   

    http://msdn.microsoft.com/library/chs/default.asp?url=/library/CHS/cpref/html/frlrfsystemwebhttprequestmemberstopic.asphttp://msdn2.microsoft.com/zh-cn/library/system.web.httprequest.servervariables(VS.80).aspxhttp://msdn.microsoft.com/library/chs/default.asp?url=/library/CHS/cpref/html/frlrfsystemwebhttprequestclassurlreferrertopic.asp
      

  5.   

    谢谢0009 你是说HttpRequest的某些方法吗 之前我也试过了 可是不行 取的都是我们自己的地址
      

  6.   

    你的设计方案有问题你直接拿你的页面去给别人修改?再说了,就算是别人的页面提交给你,用HttpRequest也是不安全的,因为很容易伪造首先你应该先确定如何控制页面的可编辑状态何时暴露给客户,再考虑提交时如何做检验。
      

  7.   

    HTML Applications (HTAs) are full-fledged applications. These applications are trusted and display only the menus, icons, toolbars, and title information that the Web developer creates. In short, HTAs pack all the power of Microsoft® Internet Explorer—its object model, performance, rendering power, protocol support, and channel–download technology—without enforcing the strict security model and user interface of the browser. HTAs can be created using the HTML and Dynamic HTML (DHTML) that you already know. Overviews/Tutorials
    Introduction to HTML Applications (HTAs)
    The power to build HTAs brings Internet Explorer 5 to the fore as a viable Microsoft Windows® development platform. HTAs are full-fledged applications. These applications are trusted and display only the menus, icons, toolbars, and title information that the Web developer creates. In short, HTAs pack all the power of Internet Explorer—its object model, performance, rendering power, protocol support, and channel-download technology—without enforcing the strict security model and user interface of the browser.Elements/Objects
    HTA:APPLICATION
    Enables an extended object model for building HTML Applications (HTA).Attributes/Properties
    APPLICATION
    Indicates whether the content of the object is an HTML Application (HTA) and, therefore, exempt from the browser security model.applicationName
    Sets or retrieves the name of the HTML Application (HTA).border
    Sets or retrieves the type of window border for the HTML Application (HTA). borderStyle
    Sets or retrieves the style set for the content border within the HTML Application (HTA) window.caption
    Sets or retrieves a Boolean value that indicates whether the window is set to display a title bar or caption, for the HTML Application (HTA).commandLine
    Retrieves the argument used to launch the HTML Application (HTA).contextMenu
    Sets or retrieves whether the context menu is displayed when the right mouse button is clicked.icon
    Sets or retrieves the name and location of the icon specified in the HTML Application (HTA).innerBorder
    Sets or retrieves whether the inside 3-D border is displayed.maximizeButton
    Sets or retrieves a Boolean value that indicates whether a Maximize button is displayed in the title bar of the HTML Application (HTA) window.minimizeButton
    Sets or retrieves a Boolean value that indicates whether a Minimize button is displayed in the title bar of the HTML Application (HTA) window.navigable
    Sets or retrieves whether linked documents will be loaded in the main HTA window or in a new browser window. scroll
    Sets or retrieves whether the scroll bars are displayed.scrollFlat
    Sets or retrieves whether the scroll bar is 3-D or flat.selection
    Sets or retrieves whether the content can be selected with the mouse or keyboard.showInTaskBar
    Sets or retrieves a value that indicates whether the HTML Application (HTA) is displayed in the Windows taskbar.singleInstance
    Sets or retrieves a value that indicates whether only one instance of the specified HTML Application (HTA) can run at a time. sysMenu
    Sets or retrieves a Boolean value that indicates whether a system menu is displayed in the HTML Application (HTA).version
    Sets or retrieves the version number of the HTML Application (HTA).windowState
    Sets or retrieves the initial size of the HTA window.