The Web Robots Pages
The only way the website will work is if you send the HTML source code to the web browser, which then parses the source code. You cannot change the way the web works for your particular website. You can, however, refuse to send your website to anyone except a white-list of allowed participants. For example, if you want your friend with the IP address 1.2.3.4 to view your site, and nobody else in the world, then you can set up your server to send data ONLY to that IP address, so nobody else can see the site/view source.
Anyone allowed to view the site is also able to view the source code.
There is also a known vulnerability in the TCP/IP configuration of all applicable internet services:
The fundamental weakness of the TCP/IP protocol lies in the IP (Internet Protocol) layer. For example, the IP address of a typical IP packet can be arbitrarily created. There is no method of verifying whether or not a particular source IP address is genuine.
This leads to a possible “IP Spoofing” attack. This is when an attacker pretends to be sending data from an IP address other than his or her own address. As a result, there is no authentication process when using that IP protocol.
http://www.bestinternetsecurity.net/35/tcpip-protocol-why-it-is-not-secure.html
In reality, the government (or anyone between the ISP with the IP 1.2.3.4 and your server) can technically spoof that IP address and listen in on all connections. Be it HTTPS, HTTP, or any other protocol- nobody is technically
secure from all parties unless your network is in a controlled environment- ex: not on the internet.
In another reality, the web has been working like this for years, and there have been problems, but for the most part you don't have to care too much and can assume IPs have some sort of integrity.. At least that's the fantasy world most security professionals live in, today (written June 25th, 2012, Spencer A. Lockhart).
In short, don't try to "lock down" your HTML code unless you want your site to be offline.