This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#51 2012-10-28 10:11:51

technoboy10
Scratcher
Registered: 2007-08-25
Posts: 1000+

Re: /etc/hosts and fake domains..

moretzprogramming wrote:

technoboy10 wrote:

Cool. Is there any way to make a fake domain that redirects to a real one?

Actually, you probably could. Just use some redirect code(there's one somewhere at w3schools.com), and put it at the IP address that you set the fake domain to use. It will redirect you to the real domain.

Okay.


So long, 1.4.
http://goo.gl/3JEV9

Offline

 

#52 2012-10-28 12:05:30

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: /etc/hosts and fake domains..

technoboy10 wrote:

Cool. Is there any way to make a fake domain that redirects to a real one?

Yes.

If you have Windows, open up Command Prompt and type in "ping www.google.co.uk"

It will show up with the IP of www.google.co.uk - What you do is enter "[websiteip] [tab] [customhostname]" in the hosts file.

Or you could download my program and only type [ip] and [customhostname]
big_smile


I'm back.
Maybe.

Offline

 

#53 2012-10-28 17:22:51

technoboy10
Scratcher
Registered: 2007-08-25
Posts: 1000+

Re: /etc/hosts and fake domains..

DigiTechs wrote:

technoboy10 wrote:

Cool. Is there any way to make a fake domain that redirects to a real one?

Yes.

If you have Windows, open up Command Prompt and type in "ping www.google.co.uk"

It will show up with the IP of www.google.co.uk - What you do is enter "[websiteip] [tab] [customhostname]" in the hosts file.

Or you could download my program and only type [ip] and [customhostname]
big_smile

The ping command also works on Unix systems. Okay, that makes sense.


So long, 1.4.
http://goo.gl/3JEV9

Offline

 

#54 2012-10-30 12:42:40

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: /etc/hosts and fake domains..

BUUUMP.

PUTT

Push Up This Thread

C:


I'm back.
Maybe.

Offline

 

#55 2012-10-30 14:14:13

laser314
Scratcher
Registered: 2010-07-16
Posts: 100+

Re: /etc/hosts and fake domains..

My hosts file in windows only has comments in it.


http://alpha.scratch.mit.edu/scratchr2/static//images/logo_sm.png 2.0 Alpha Tester!http://i49.tinypic.com/1zckcqb.png

Offline

 

#56 2012-10-30 15:19:20

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: /etc/hosts and fake domains..

laser314 wrote:

My hosts file in windows only has comments in it.

That's because nothing has added anything to it.

Mine, on the other hand, looks somthing like this:

Code:

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
#    127.0.0.1       localhost
#    ::1             localhost
# Start of entries inserted by Spybot - Search & Destroy
[VERY LONG LIST OF 127.0.0.1    [site] CUT OUT!]
# This list is Copyright 2000-2008 Safer Networking Limited
# End of entries inserted by Spybot - Search & Destroy
69.164.193.192    lstc.com
96.127.188.39    dragonthunder.com
192.168.0.1    router.int
18.85.28.105    scratch.com

It's pretty long in reality, as I have an anti-spyware program called "Spybot Search & Destroy"


I'm back.
Maybe.

Offline

 

Board footer