I stumbled on a site on a script that connects at the very end of the page from another site. Naturally, I did not connect it.

How can I prevent the connection of something to the site, knowing the host ip from where this is connected is something?

PS Script reads and creates cookies for users.

  • four
    You do not need to think about it, but about the fact that you have been hacked;) - Visman
  • Logs say the opposite. Except my ip, no one has accessed the FTP account - Artem
  • So ask your hosting provider a question, why did they connect the left script to you? PS Logs may not show you anything if they didn't break you, but a neighboring site on the same server. - Visman
  • @Artem, and you can be hacked from your own IP (for example, via a trojan or backdoor). Or, if the provider gives IP to the subnet , then from one of the computers of the subnet. - Dmitriy Simushev 1:01 pm
  • @Artem, please add to the question the code that you have written without your knowledge. - Visman

1 answer 1

your site generates and gives the html-document to the visitor's browser.

in it (usually) a set of urls is mentioned.

references to these urls are not a request and (moreover) not an order to the browser. This is a recommendation : here you can get a picture, a script, another html-file , etc. for this url . etc.

Whether the client follows your recommendations or ignores them, the client’s browser decides on its own (based on its settings and the logic provided by the browser developers).

and even more so you can not prohibit the client browser to use your recommendations .