I wrote a php book on php, everything works on denver. Everything seemed to work fine, records were added and deleted without problems.

But now when I click on the link to delete an entry, I am transferred to the site keramzit.ru. The same story, if I enter mysite.ru into the browser in the address bar.

Already 3 antiviruses checked, did not help. And this situation in all browsers.

  • Comments are not intended for extended discussion; conversation moved to chat . - Nofate

1 answer 1

Domain mysite.ru is the real synonym for keramzit.ru. It can be assumed that they have one owner.

$ curl -I mysite.ru HTTP/1.1 301 Moved Permanently Server: nginx Date: Mon, 11 Sep 2017 06:04:20 GMT Content-Type: text/html; charset=iso-8859-1 Connection: keep-alive Keep-Alive: timeout=60 Location: https://keramzit.ru/ 

There is no crime here. They even have the same DNS server.

 $ dig +short ns keramzit.ru ns3.firstbytedns.com. ns2.firstbytedns.com. ns1.firstbytedns.com. $ dig +short ns mysite.ru ns2.firstbytedns.com. ns1.firstbytedns.com. ns3.firstbytedns.com. 

Try to use not mysite.ru, but the real name of your site. If the real name is not yet, then use the name of a non-existent domain, registering it in hosts or a subdomain of the form mysite.vcap.me or the like, obviously pointing to localhost.

For examples in code or questions, use the domain names of example.com and test.ru reserved specifically for use in the examples .

The same recommendations apply to site.ru - this is the domain of a private individual.

Domain .dev belongs to Google, do not use it.