hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Code Help - Replacing www. with IP Number
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Code Help - Replacing www. with IP Number

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 12-03-2002, 11:20 PM
wf19 wf19 is offline
Junior Guru Wannabe
 
Join Date: Apr 2002
Location: San Francisco
Posts: 95

Code Help - Replacing www. with IP Number


Based on the Resolution in this thread:

http://www.webhostingtalk.com/showth...720#post732720

I want to change the line:

var b = 'forums.thesite.com';

whereby I want to replace

'forums.thesite.com'

with an IP number (i.e. 134.23.342.2)

Question 1

How do I determine the corresponding IP number? Can I use a site like http://www.samspade.org or http://www.arin.net ?

Question 2

What will the new code be?

Will it be:

var b = '134.23.342.2';

or something else?

Reply With Quote


Sponsored Links
  #2  
Old 12-03-2002, 11:21 PM
wf19 wf19 is offline
Junior Guru Wannabe
 
Join Date: Apr 2002
Location: San Francisco
Posts: 95
On second thought, I don't think this is a good idea afterall. Advice from a friend:
Quote:
technically, if the user gets there by a link that reads http://130.34.233.2, otherwise i don't think it would work, since document.referrer is a string that contains the URL that was used to get to the page. i may be wrong. again, you'd have to test it.
Therefore, the exact text is probably the best way to go about it and leave it alone.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Cloud Industry Forum Establishes Cloud Service Provider Code of Practice Web Hosting News 2012-09-21 12:38:23
DigiCert Launches Extended Validation Code Signing Certificates Web Hosting News 2012-08-15 15:30:28
Students Contribute to Joomla through Google Summer of Code Program Web Hosting News 2012-05-08 15:22:35
Web Host Rackspace Offers Free Microsoft Visual Studio 2010 with Windows Cloud Servers Web Hosting News 2011-11-29 15:44:04
Non-Profit New Zealand Computer Society to Develop Cloud Code of Practice Web Hosting News 2011-09-02 17:22:36


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?