Update protocol

Updated the protocol depending on the protocol used of the page