Welcome Guest, Not a member yet? Register   Sign In
Changing my hosts file is not working
#3

(This post was last modified: 01-18-2017, 09:25 AM by Narf.)

(01-17-2017, 11:16 PM)meSmashsta Wrote: I'm trying to redirect bing.com to google.com, so when I enter bing.com on my browser address I should be redirected to google.com instead but it's just not working...

Nowadays, every serious entity on the web only allows access via HTTPS/TLS.
And they also implement a TLS extension called SNI (server name indication), which for security reasons tries to block exactly what you're trying to do.

(01-17-2017, 11:16 PM)meSmashsta Wrote: I opened the hosts file using notepad as an administrator, and change it to

172.217.25.110 bing.com # should redirect to google but not!

No, it shouldn't.
You can't just point a hostname to an IP address and expect that to work flawlessly as a redirect - HTTP servers don't work that way.

(01-17-2017, 11:16 PM)meSmashsta Wrote: I'm trying to learn something and this is a part of the tutorial that I'm reading on, this is just an excerpt that is somehow related to Codeigniter.

That something mentions CodeIgniter, doesn't mean this is related. It is in no way related.
Reply


Messages In This Thread
RE: Changing my hosts file is not working - by Narf - 01-18-2017, 09:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB