S
S
Sergey2014-10-06 01:05:44
linux
Sergey, 2014-10-06 01:05:44

How can one show another site in hosts instead of one?

Well, in /etc/hosts you can register a new IP address for the site.
And if I want to see, for example, instead of microsoft.com canonical.org, I can’t do it in hosts, right?
And somehow I can make it easy and simple without problems?
Instead of a number of entertainment sites, I want to redirect to manuals that I would like to learn.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
asdz, 2014-10-06
@butteff

Why is it possible. Specify the IP address and hostname. Requests will start going to a new IP address, but whether the web server will respond in the right way to a request with the host name you specified is another question.

V
Valery, 2014-10-06
@PValery

If you have Windows 7, go to WINDOWS\system32\drivers\etc\hosts and open the HOSTS file in any text editor. At the end of the file, add a line like this:
IP1 IP2
where IP2 is the address of the site when you go to which you will be redirected to IP1
Example:
127.0.0.1 kaspersky.com
When you go to kaspersky.com, you will be redirected to 127.0.0.1

R
Rou1997, 2016-10-26
@Rou1997

This is called tags, look for libraries for tags, as an option - you can decompile the application in which you see the finished implementation.

M
mitaichik, 2016-10-26
@mitaichik

For this I use the library https://github.com/ApmeM/android-flowlayout

Y
Yuri, 2016-10-26
@YuryBorodkin

so the layout prompted you. An unfolding list can be done like this: you take the layout that should be hidden (that is, this particular piece that is folded, with words), and by pressing the button you set setVisibility(View.GONE) to it. for animation, experiment with the android:animateLayoutChanges attribute in the target layout.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question