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

#1 2012-10-21 17:28:23

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

/etc/hosts and fake domains..

I just discovered adding entries to the /etc/hosts (C:\Windows\System32\drivers\etc\hosts on windows) allows a realm of possibilities... free domains that only you can access  tongue  You can even make your own top-level domains (TLD: e.g. example.rainbow)

Here's some Scratch-related entries:

69.164.193.192 chat.py
96.127.188.39 dragonthunder.com


Discuss fake domains  tongue

Last edited by bobbybee (2012-10-21 17:32:00)


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#2 2012-10-21 17:31:30

pwiter
Scratcher
Registered: 2010-06-02
Posts: 100+

Re: /etc/hosts and fake domains..

You can also add it to the hosts file located at C:\Windows\System32\drivers\etc\hosts.


http://i.imgur.com/YBeXc.png

Offline

 

#3 2012-10-21 17:32:08

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: /etc/hosts and fake domains..

Thanks, mentioned




Hey... what if somepony (*cough*, I'm doing it) wrote a program that downloads entries from a database a mini-DNS set up.

EDIT:
You can track the progress of that project here

Last edited by bobbybee (2012-10-21 17:40:41)


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#4 2012-10-21 19:24:38

pwiter
Scratcher
Registered: 2010-06-02
Posts: 100+

Re: /etc/hosts and fake domains..

I see its written in C.
Can I join?


http://i.imgur.com/YBeXc.png

Offline

 

#5 2012-10-21 20:02:41

IHeartGaming
Scratcher
Registered: 2010-07-23
Posts: 1000+

Re: /etc/hosts and fake domains..

I pointed my router to "router.int" (int for internal) and shortly removed it (as a test). It works!  smile


IHeartGaming

Offline

 

#6 2012-10-21 20:06:52

dvd4
Scratcher
Registered: 2010-06-30
Posts: 1000+

Re: /etc/hosts and fake domains..

the "/etc/hosts" file says not to edit

Last edited by dvd4 (2012-10-21 20:07:06)


I made a mod  big_smile  It's called blook!
http://i49.tinypic.com/16ia63p.png

Offline

 

#7 2012-10-21 20:42:26

pwiter
Scratcher
Registered: 2010-06-02
Posts: 100+

Re: /etc/hosts and fake domains..

@dvd4
/etc/hosts is only for mac or linux. If you are on windows it is located at C:\Windows\System32\drivers\etc\hosts


http://i.imgur.com/YBeXc.png

Offline

 

#8 2012-10-21 21:00:04

dvd4
Scratcher
Registered: 2010-06-30
Posts: 1000+

Re: /etc/hosts and fake domains..

pwiter wrote:

@dvd4
/etc/hosts is only for mac or linux. If you are on windows it is located at C:\Windows\System32\drivers\etc\hosts

k…?


I made a mod  big_smile  It's called blook!
http://i49.tinypic.com/16ia63p.png

Offline

 

#9 2012-10-21 21:51:44

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: /etc/hosts and fake domains..

This could possibly be abused, like make scratch.mit.edu point to a fake site that ends up downloading a virus to the user's computer.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#10 2012-10-21 21:52:02

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: /etc/hosts and fake domains..

dvd4 wrote:

the "/etc/hosts" file says not to edit

It says not to edit the localhost entry, not the file itself:

/etc/hosts

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1    localhost


nXIII

Offline

 

#11 2012-10-22 01:43:52

Gravitation
New Scratcher
Registered: 2012-09-26
Posts: 500+

Re: /etc/hosts and fake domains..

My dad showed me how to do this about a month ago. We're setting up a fake domain hosted on my dad's laptop (it has server capabilities) to create and debug a website we're making for a friend's business.  smile

It's really cool, I can have whatever domain I want!  big_smile

Offline

 

#12 2012-10-22 07:19:48

dvd4
Scratcher
Registered: 2010-06-30
Posts: 1000+

Re: /etc/hosts and fake domains..

I made a fake domain called boot.shoe .

It's amazing what fake domains one can make.


I made a mod  big_smile  It's called blook!
http://i49.tinypic.com/16ia63p.png

Offline

 

#13 2012-10-22 10:08:29

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: /etc/hosts and fake domains..

You can change it all you want, but anyone outside your network (or that computer itself) won't be able to access domains through that method. My Dad has set up our network so you can type a computer's name (we name all our computers  tongue ) instead of the internal IP.

Depending on how the network is configured, only that computer you are using will be able to access those domains.  smile

Offline

 

#14 2012-10-22 10:21:26

dvd4
Scratcher
Registered: 2010-06-30
Posts: 1000+

Re: /etc/hosts and fake domains..

Magnie wrote:

You can change it all you want, but anyone outside your network (or that computer itself) won't be able to access domains through that method. My Dad has set up our network so you can type a computer's name (we name all our computers  tongue ) instead of the internal IP.

Depending on how the network is configured, only the computer you are using will be able to access those domains.  smile

yeah, but it's fun to do this.

And btw,grammar.


I made a mod  big_smile  It's called blook!
http://i49.tinypic.com/16ia63p.png

Offline

 

#15 2012-10-22 11:52:17

Martiscratch
Scratcher
Registered: 2012-05-04
Posts: 100+

Re: /etc/hosts and fake domains..

how do you do it?


http://signaturecraft.us/signatures/eJw1yDEOgCAMBdC9p_gnICphdnA18QwoNZIAJRTD9Z184-uP74gKjxIvxi3tzaii3ZA-PjPijdgxvBpjcCYeeOtKW2Ou3OhIAbuUIOUvpdnNtDhH1tL0AQVCHgk~.png

Offline

 

#16 2012-10-22 15:49:46

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: /etc/hosts and fake domains..

@Magnie

That's what my program is for: it'll download entries from a remote location (my server, presumably) and copy em into the file.


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#17 2012-10-22 15:56:12

dvd4
Scratcher
Registered: 2010-06-30
Posts: 1000+

Re: /etc/hosts and fake domains..

bobbybee wrote:

@Magnie

That's what my program is for: it'll download entries from a remote location (my server, presumably) and copy em into the file.

Only one problem: It doesn't work.


I made a mod  big_smile  It's called blook!
http://i49.tinypic.com/16ia63p.png

Offline

 

#18 2012-10-22 15:57:23

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: /etc/hosts and fake domains..

How'd ya know if it's not done yet?


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#19 2012-10-22 16:01:51

pwiter
Scratcher
Registered: 2010-06-02
Posts: 100+

Re: /etc/hosts and fake domains..

pwiter wrote:

I see its written in C.
Can I help?


http://i.imgur.com/YBeXc.png

Offline

 

#20 2012-10-22 16:07:24

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: /etc/hosts and fake domains..

Well, I have bad coding habits...


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#21 2012-10-22 16:30:04

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: /etc/hosts and fake domains..

bobbybee wrote:

@Magnie

That's what my program is for: it'll download entries from a remote location (my server, presumably) and copy em into the file.

worst idea i ever heard
i hope at least you'll be using secure connection and checksums?

Offline

 

#22 2012-10-22 16:41:26

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: /etc/hosts and fake domains..

*gulps* Of...of course, sir.


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#23 2012-10-22 17:07:32

dvd4
Scratcher
Registered: 2010-06-30
Posts: 1000+

Re: /etc/hosts and fake domains..

bobbybee wrote:

*gulps* Of...of course, sir.

lol

my 900th post !

Last edited by dvd4 (2012-10-22 17:08:27)


I made a mod  big_smile  It's called blook!
http://i49.tinypic.com/16ia63p.png

Offline

 

#24 2012-10-23 21:17:48

pwiter
Scratcher
Registered: 2010-06-02
Posts: 100+

Re: /etc/hosts and fake domains..

bobbybee wrote:

Well, I have bad coding habits...

Me too. xD


http://i.imgur.com/YBeXc.png

Offline

 

#25 2012-10-24 06:03:03

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: /etc/hosts and fake domains..

Magnie wrote:

You can change it all you want, but anyone outside your network (or that computer itself) won't be able to access domains through that method. My Dad has set up our network so you can type a computer's name (we name all our computers  tongue ) instead of the internal IP.

Can't you just use Bonjour/Zeroconf/Avahi? My Macbook automatically broadcasts itself as "hostname.local", for example...  smile


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

Board footer