Any device connected to the internet such as a computer, smartphone or tablet could soon have its web history logged and retained for up to two years by telecommunications companies for law enforcement purposes under reforms being proposed by the Gillard government.