Browsing: prevent boundary failures for security