hidding the host ip address

This is a discussion on hidding the host ip address within the Tech Board forums, part of the Community Boards category; i'm creating a webserver to host my site. i have been unable to find a way to hide the ip ...

  1. #1
    essence of digital xddxogm3's Avatar
    Join Date
    Sep 2003
    Posts
    589

    hidding the host ip address

    i'm creating a webserver to host my site.
    i have been unable to find a way to hide the ip address from the common user. when the page is returned i want the address bar to reflect
    http://www.somehostname.com
    instead of
    http://www.123.456.789.10/
    how can i return a string to the address bar reflecting the url?
    "Hence to fight and conquer in all your battles is not supreme excellence;
    supreme excellence consists in breaking the enemy's resistance without fighting."
    Art of War Sun Tzu

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,600
    I'm not sure I understand what you mean. You obviously can't prevent someone from resolving a domain name to an ip address, nor can you prevent them from connecting using the ip address itself. Nonetheless, if they use the domain name then that should be reflected in the address bar, otherwise the ip address will be displayed. I don't think it's possible to alter what is displayed in the address bar - it probably isn't an accessible part of the DOM (with write attributes, at least, for security reasons). There may be other ways to do it, but those methods would probably be considered 'unscrupulous' by most standards.
    Code:
    if( numeric_limits< byte >::digits != bits_per_byte )
        error( "program requires bits_per_byte-bit bytes" );
    24bbs.cpp

  3. #3
    Sys.os_type="Unix";;
    Join Date
    Aug 2005
    Posts
    52
    http://www.htmlgoodies.com/beyond/we...le.php/3473261

    Here's a simple introduction to DNS.
    There are free domain names still around such as dyndns.
    Since it appears this is what you're more referring to I'll leave it at that.

  4. #4
    essence of digital xddxogm3's Avatar
    Join Date
    Sep 2003
    Posts
    589
    Nonetheless, if they use the domain name then that should be reflected in the address bar, otherwise the ip address will be displayed.
    if this is the case, then i have nothing to worry about.
    "Hence to fight and conquer in all your battles is not supreme excellence;
    supreme excellence consists in breaking the enemy's resistance without fighting."
    Art of War Sun Tzu

  5. #5
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    Quote Originally Posted by Sebastiani
    I don't think it's possible to alter what is displayed in the address bar - it probably isn't an accessible part of the DOM (with write attributes, at least, for security reasons). There may be other ways to do it, but those methods would probably be considered 'unscrupulous' by most standards.
    I don't think so either. I know you can change it with some sneaky redirects, but don't look into that... it's (hopefully) something that'll be fixed eventually anyway.

    But yeah, if people use the domain name, that's what'll show up in the address bar. In most browsers, all the name resolution stuff is done in the background and kept hidden. It's not of interst to most users, and those that really need the IP address should know how to get it via other methods.
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linux raw socket programming
    By cnb in forum Networking/Device Communication
    Replies: 17
    Last Post: 11-08-2010, 07:56 AM
  2. DX - CreateDevice - D3DERR_INVALIDCALL
    By Tonto in forum Game Programming
    Replies: 3
    Last Post: 12-01-2006, 06:17 PM
  3. Identify dynamic IP address of network device
    By BobS0327 in forum Tech Board
    Replies: 2
    Last Post: 02-21-2006, 12:49 PM
  4. Im so lost at . .
    By hermit in forum C Programming
    Replies: 18
    Last Post: 05-15-2002, 01:26 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21