Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7

Thread: URL encoding?

  1. #1
    New to the CF scene
    Join Date
    Aug 2010
    Posts
    3
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question URL encoding?

    I'm not sure if "encoding" is the right word for what I'm looking for:

    I want to display the URL as numbers or code, but not readable like "www.domain.com"
    And before anybody starts in with the "why unless its illegal"- I have a personal website and am offering some of the space for a friends school club, but it has a minor drug reference in the URL and the school will have a fit about the club site being hosted there.

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,703
    Thanks
    6
    Thanked 1,011 Times in 984 Posts
    Every server is usually accessible through its IP address. So you just have to find out the IP of the server where you have the webspace. Alternatively, most hosting companies I know that are providing shared hosting have a certain sub domain for each customer, e. g. something like “k39762.clients.hostingcompany.com” where you can also acces your website and a regular domain like “example.com” is just an alias, a(nother) link to that server space. So you need to find out either this or the IP address.

  • Users who have thanked VIPStephan for this post:

    Nekomatta (08-04-2010)

  • #3
    New to the CF scene
    Join Date
    Aug 2010
    Posts
    3
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by VIPStephan View Post
    Every server is usually accessible through its IP address. So you just have to find out the IP of the server where you have the webspace. Alternatively, most hosting companies I know that are providing shared hosting have a certain sub domain for each customer, e. g. something like “k39762.clients.hostingcompany.com” where you can also acces your website and a regular domain like “example.com” is just an alias, a(nother) link to that server space. So you need to find out either this or the IP address.
    Okay, I can find that out- but how would I cause the browser to default display that rather than the "example.com" in the address bar?

  • #4
    Senior Coder
    Join Date
    Jul 2005
    Location
    New York, NY
    Posts
    1,084
    Thanks
    4
    Thanked 19 Times in 19 Posts
    If you give out the link as "example.com" that's the link that will show.


    If you give out the link as "uniquecustomer.subdomain.com", that's the link that will show.

  • Users who have thanked Beagle for this post:

    Nekomatta (08-04-2010)

  • #5
    New to the CF scene
    Join Date
    Aug 2010
    Posts
    3
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Ahhh, okay. So then my question become- what about if i use a redirect code? I was planning on using a free single-page host as the address for her to pass out to the club people (something more acceptable by a school) then have it re-direct to the main content on my domain- my concern being they see where it redirect to etc. So If i use a re-direct code, and put the "customer.subdomain.com" in the code instead of the "example.com" that will be what shows up in the URL?

  • #6
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,703
    Thanks
    6
    Thanked 1,011 Times in 984 Posts
    If your webspace is accessible through example.com and customer.subdomain.com, and you register “moreacceptableaddress.com” for your client or whoever, and redirect it to your server using “customer.subdomain.com” then it will show up as that. Only if you have another redirect on your server to change all requests for “customer.subdomain.com” to “example.com” then they will see the latter one.

    So, basically, if you enter “customer.subdomain.com” in your address bar and you can access your site and the domain stays the same then you’re safe to redirect from anywhere to this domain.

  • #7
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    One thing to keep in mind is that web filters don't work based off what you enter in the URL, it works off of the URLs being requested at the computer level. So if you have a redirect using frames for example to the blocked URL, even though the address bar says one address, the web filter will still block the page.

    So if you use a different domain you need to add it onto your hosting account as a add-on/parked domain so it works just like the primary.
    OracleGuy


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •