With this example I only want an IP address so it’s rather clean and easy but you can essentially put any public webpage in place of “http://kittell.net/onlyip.php”
Category: C# ASPX
Get City/State/Country From IP
I have a lot of possible options on this page, as I find time I’ll clean this page up a bit to make it more user friendly. C# Free, Fast JavaScript Free, Fast Microsoft SQL Using GeoPlugin.net XML Option [raw] All Values geoPlugin: geoplugin_request: 208.67.222.222geoplugin_status: 200geoplugin_credit: Some of the returned…
Restrict Access to Internal IP
Many times we have sites that are public but have pages that should only be viewed by internal users. Ideally the settings would be configured on the server level in IIS but if not possible for some reason this may help. One key thing to note is this code will…
Windows Login Page Restriction
Sometimes you have to restrict the visitor of a page to a username, if you don’t want to take the time to build a database you can simply use the username on the domain. In the code below make sure you replace “<DOMAIN>” with your companies domain
C# ASPX – Force SSL
Why would I need this? If you have a page that loads in HTTP (unsecure) and HTTPS (secure) you may have a need for this when requesting information on a form that involves private information. What is “Private” information Up to your discretion but a site (http://support.exware.com/ssl.html) that I found…
Good Integer
Function String Value GoodInt 55 55 GoodInt 55.55 56 GoodInt 55.45 55 GoodInt SomeText 0