The Best Cyprus Community

Skip to content


The Classic Browser... at last!

Anything related to the Internet, computers and technology in general.

Re: The Classic Browser... at last!

Postby Sotos » Thu Dec 06, 2018 2:35 pm

The hosts file is used to circumvent DNS. When you type a domain in the address bar, DNS servers are used to resolve that name to an IP address. If you edit your host file with an IP / domain pair, then the domain will always resolve to the IP you defined without using any DNS servers. The way the host file is used to block a website is by pointing it to an IP where there is no such domain hosted, so the request fails.

Here is a fun thing you can do: You can get some hosting in any server and then create a website with any domain you want, e.g. cnn.com or bankofcyprus.com.cy and then add a line to your host file to point that domain to the IP of your server (you don't need to buy any domain). Then when you type that domain to your browser, instead of going to the real website, you will go to your own fake one. This of course will happen on your computer only, not for anybody else.
User avatar
Sotos
Leading Contributor
Leading Contributor
 
Posts: 11357
Joined: Wed Aug 17, 2005 2:50 am

Re: The Classic Browser... at last!

Postby Get Real! » Thu Dec 06, 2018 4:37 pm

Sotos wrote:Here is a fun thing you can do: You can get some hosting in any server and then create a website with any domain you want, e.g. cnn.com or bankofcyprus.com.cy and then add a line to your host file to point that domain to the IP of your server (you don't need to buy any domain). Then when you type that domain to your browser, instead of going to the real website, you will go to your own fake one. This of course will happen on your computer only, not for anybody else.

Haven’t tried this but I suspect this may also work with a local html file if you map a network drive to that file’s folder.

Or would you need to create a context of it somehow... :?


I'm fantasizing using something like this in the hosts file...

Let’s suppose your local IP is 192.168.1.1 and you then use nslookup to get the IP of the mapped network drive “Z” you’ve created.

I guess you can try something outrageous like…

1. The whole path:

192.168.1.42/file:///Z:/index.htm crappydomain.com


2. Or would index.htm load automatically?

192.168.1.42 crappydomain.com

:? :lol:
User avatar
Get Real!
Forum Addict
Forum Addict
 
Posts: 48333
Joined: Mon Feb 26, 2007 12:25 am
Location: Nicosia

Re: The Classic Browser... at last!

Postby Sotos » Thu Dec 06, 2018 5:19 pm

It can work with local files but you need to serve them using an http server on your computer. Then you can write something like:

127.0.0.1 anydomain.com

and that domain will be served from your localhost. Or you can also use a Virtual Machine to run a Linux server on your computer, and then you point any domain to the IP of that server.

Another useful think you can do with hosts is to view websites that their domain expired but their hosting didn't. So if you know the IP of somedomain.com, and then somedomain.com expires and you can't access it, you can modify your host file to something like:

some-ip-address somedomain.com

and assuming the files are still hosted on the server you will be able to access that website normally.
User avatar
Sotos
Leading Contributor
Leading Contributor
 
Posts: 11357
Joined: Wed Aug 17, 2005 2:50 am

Re: The Classic Browser... at last!

Postby Get Real! » Thu Dec 06, 2018 5:29 pm

Sotos wrote:It can work with local files but you need to serve them using an http server on your computer.

Well that goes without saying but I’m wondering if it’s possible with just a mapped network drive since it should have a unique IP, as in the example I’ve given.
User avatar
Get Real!
Forum Addict
Forum Addict
 
Posts: 48333
Joined: Mon Feb 26, 2007 12:25 am
Location: Nicosia

Re: The Classic Browser... at last!

Postby Sotos » Thu Dec 06, 2018 5:56 pm

Get Real! wrote:
Sotos wrote:It can work with local files but you need to serve them using an http server on your computer.

Well that goes without saying but I’m wondering if it’s possible with just a mapped network drive since it should have a unique IP, as in the example I’ve given.


I never tried that. But do network drives work over http? I think it must be something like SMB, in which case I don't think it would work.
User avatar
Sotos
Leading Contributor
Leading Contributor
 
Posts: 11357
Joined: Wed Aug 17, 2005 2:50 am

Re: The Classic Browser... at last!

Postby Get Real! » Thu Dec 06, 2018 10:11 pm

If you get a stupid email like this just delete it... even if you have an apple! :)

apple.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
Get Real!
Forum Addict
Forum Addict
 
Posts: 48333
Joined: Mon Feb 26, 2007 12:25 am
Location: Nicosia

Re: The Classic Browser... at last!

Postby Get Real! » Fri Dec 07, 2018 2:49 am

I completed my Apple confirmation as soon as I found the time! :D

NB: Nothing to worry about if using the Classic but I wouldn’t try this with 3rd party programmable browsers.

OK, the first screen…

APPLE1.jpg


The form to get my details… (credit card details obviously :wink: )

APPLE2.jpg


Finally a “success” screen flashes very briefly and then redirects you to some genuine apple phone ads.

That’s it.
User avatar
Get Real!
Forum Addict
Forum Addict
 
Posts: 48333
Joined: Mon Feb 26, 2007 12:25 am
Location: Nicosia

Re: The Classic Browser... at last!

Postby Get Real! » Sun Jan 13, 2019 4:25 pm

Coming soon to the Classic browser v4.1

Youtube gets a much needed facelift! :lol:

NewYoutube.png
You do not have the required permissions to view the files attached to this post.
User avatar
Get Real!
Forum Addict
Forum Addict
 
Posts: 48333
Joined: Mon Feb 26, 2007 12:25 am
Location: Nicosia

Re: The Classic Browser... at last!

Postby Lordo » Sun Jan 13, 2019 4:54 pm

Get Real! wrote:If you get a stupid email like this just delete it... even if you have an apple! :)

apple.jpg

gr are you still usinf offcie 2007. what kind of an it professional are you fgs.

even the old men in the village are on 2016 gavole.
User avatar
Lordo
Leading Contributor
Leading Contributor
 
Posts: 21488
Joined: Wed Oct 05, 2011 2:13 pm
Location: From the river to the sea, Palestine will be free. Walk on Swine walk on

Re: The Classic Browser... at last!

Postby Get Real! » Sun Jan 13, 2019 5:20 pm

Lordo wrote:
Get Real! wrote:If you get a stupid email like this just delete it... even if you have an apple! :)

apple.jpg

gr are you still usinf offcie 2007. what kind of an it professional are you fgs.

even the old men in the village are on 2016 gavole.

Like car mechanics, techies have a habit of building systems for themselves from leftover bits and pieces… so older versions of Ms Office work just fine and load faster too! :D

Btw, my older custom computer is so well fine-tuned that it can probably smoke your latest clogged up Win10 machine that is probably running under a factory Windows.
User avatar
Get Real!
Forum Addict
Forum Addict
 
Posts: 48333
Joined: Mon Feb 26, 2007 12:25 am
Location: Nicosia

PreviousNext

Return to Internet, Computers and Technology

Who is online

Users browsing this forum: No registered users and 0 guests