The aim of this paper is to introduce the concept of stochastic blockmodeling to Web data (log files), in order to obtain clusters of units (visited pages), which have similar patterns of relationships, and to interpret the pattern of relationships among clusters. Doing this we can study the behaviour of the users (sessions) according to the relations among the visited pages. To explain these concepts an application to a Web site is performed.