Editing/removing hostfile on jailed iPhone
The hosts file is located at /private/etc/hosts which cannot be accessed on a non-jailbroken iOS device. There is simply no way to do it. More information on why this is and what occurs during the jailbreak process can be found on my answer on Can you apply jailbreak tweaks to a non-jailbroken device?