I wrote a PHP script to a particular site using a home computer for debugging. Script worked properly, when I tested it on a home computer. The script has stopped working when I deploy the script on the server (CentOS).
I thought, that I made a mistake when writing the script, and created this issue.
Chuan Ma suggested that the website administration blocked server IP. I wrote to the admins and they said that they do not block the IP.
My problem is that I can not go to the site using the server. I tried several tools for getting html of the site.
I have tried to use the browser. I deployed on my server this script and went to the site as a real user. When I visit the site using the browser, I get an error (http code 403).
I have tried
curlfrom the command line.
server:~# curl http://4pda.ru/ <html> <head><title>403 Forbidden</title></head> <body bgcolor="white"> <center><h1>403 Forbidden</h1></center> <hr><center>nginx</center> </body> </html>
I tried the utility
server:~# wget http://4pda.ru --quiet -O - server:~#
I do not know what to do now. I would welcome any advice.