A computer-implemented method for accessing a hosted service (142, 144) via a proxy server, the proxy server including a plurality of policies, the policies comprised of conditions and respective actions, the method comprising: providing a client from the proxy server to a client device (152, 154) so as to be executed on said client device, the client including a user identification of said client device and a plurality of uniform resource locators, URLs, the plurality of URLs including at least one URL for the hosted service; receiving on the client device a first request to access the hosted service, the first request including a first uniform resource locator, URL; determining on the client device if the first URL matches a URL in the plurality of URLs; and responsive to the determining: generating a second request on the client device (152, 154), the second request comprising the first request rerouted for transmission to the hosted service (142, 144) via the proxy server, the proxy server determining applicability of the plurality of policies to the second request based on the user identification; receiving on the proxy server a first response from the hosted service, the first response comprising a response to the second request; and transmitting a second response to the client device, the second response comprising the first response rerouted for transmission to the client device. providing a client from the proxy server to a client device (152, 154) so as to be executed on said client device, the client including a user identification of said client device and a plurality of uniform resource locators, URLs, the plurality of URLs including at least one URL for the hosted service; receiving on the client device a first request to access the hosted service, the first request including a first uniform resource locator, URL; determining on the client device if the first URL matches a URL in the plurality of URLs; and responsive to the determining: generating a second request on the client device (152, 154), the second request comprising the first request rerouted for transmission to the hosted service (142, 144) via the proxy server, the proxy server determining applicability of the plurality of policies to the second request based on the user identification; receiving on the proxy server a first response from the hosted service, the first response comprising a response to the second request; and transmitting a second response to the client device, the second response comprising the first response rerouted for transmission to the client device. generating a second request on the client device (152, 154), the second request comprising the first request rerouted for transmission to the hosted service (142, 144) via the proxy server, the proxy server determining applicability of the plurality of policies to the second request based on the user identification; receiving on the proxy server a first response from the hosted service, the first response comprising a response to the second request; and transmitting a second response to the client device, the second response comprising the first response rerouted for transmission to the client device.