The world-wide-web does not support referential integrity, i.e. dangling references do exist. This can be very annoying; in particular, if a user pays for some service in the form of web pages, he requires such pages to be reachable all the time. Currently, ensuring such referential integrity is the responsibility of webmasters: while a page is referenced the corresponding file never gets deleted. However, it is well know that this manual memory management is extremely error-prone leading to dangling references and storage leaks. We propose a solution for this problem based on the use of a garbage collection algorithm applied to the web. Thus, the referential integrity is ensured at the system level. We developed an application of web news in which a dangling reference never occurs.