Answer the question
In order to leave comments, you need to log in
How to block outgoing traffic from the site?
Good afternoon,
Is it possible to somehow block outgoing traffic from my site. For example, to prevent scripts from accessing the xxx.com domain and loading something from it. Roughly speaking, how to block some IP addresses so that they cannot interact with my site.
Is this done via htaccess or does it need to be configured on the server side?
Answer the question
In order to leave comments, you need to log in
I understand you are talking about Javascript scripts? You can disable access to remote servers by changing these same scripts. Or remove them altogether if they don't do what you want.
Found a solution on .htaccess:
#Запрет с определенного сайта или IP
Order allow,deny
allow from all
Deny from test.com test2.com
Is it possible to somehow block outgoing traffic from my site
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question