A method of establishing secure communications between a first computer, eg a client computer (20), and a second computer, eg a web server (70), whereby the client computer (20) receives one or more security policies (85) relating to the web server (70). A client application (10) examines the client computer (20) and preferably configures one or more aspects of the client computer (20) in order to make it comply with the security policies (85). Once the web server (70) receives the results of this examination and/or configuration process, it can determine whether the secure communications are to be established and whether any restrictions need to be placed on this communication and/or the activity conducted via the communication.