Portal Home > Knowledgebase > Articles Database > allow PHP to open sockets on server. Any danger ?
allow PHP to open sockets on server. Any danger ?
Posted by ramystyle, 11-18-2008, 08:17 PM |
allow PHP to open sockets on server. Any danger ?
Hello,
A potential client asked us the followingo you allow PHP to open sockets on your server? If yes, is there any restriction on the amount of data that can be downloaded?
3) Will we be able to access and load our remote webpage using PHP? We will use sockets and a Pear library to accomplish this.
We are basically planning on using some content from our remote site on the new site which will be hosted on your servers. Kindly reply back at the earliest.
Is this a potential spammer?
Thanks for your help.
__________________http://www.sellwebhost.com Web Hosting and Domain Names24/7 Technical support
|
Posted by vapetrov, 11-19-2008, 02:34 PM |
This look not like a spammer.
Your client just need to transfer content from remote server.
Nothing illegal. But you will be not able to control this traffic.
Is you whant to allow sockets but afraid of spammers you may allow to connect to remote smtps only to your smtp-server user. It may be done by iptables like
iptables -A OUTPUT -d 127.0.0.1 -p tcp -m tcp --dport 25 -j ACCEPT
iptables -A OUTPUT -p tcp -m tcp --dport 25 -m owner --gid-owner mail -j ACCEPT
iptables -A OUTPUT -p tcp -m tcp --dport 25 -j REJECT --reject-with icmp-port-unreachable
__________________
Private remote administrator of Linux servers - www.petrov.ks.ua
Quality hosting - Host-Web-Site.com
|
Posted by amalji, 11-19-2008, 02:40 PM |
Quote:
Originally Posted by ramystyle
Hello,
A potential client asked us the followingo you allow PHP to open sockets on your server? If yes, is there any restriction on the amount of data that can be downloaded?
3) Will we be able to access and load our remote webpage using PHP? We will use sockets and a Pear library to accomplish this.
We are basically planning on using some content from our remote site on the new site which will be hosted on your servers. Kindly reply back at the earliest.
Is this a potential spammer?
Thanks for your help.
Not a good idea, since the bandwidth won't be accounted for, if you are using any control panel for bandwidth usage calculation purposes.
|
Add to Favourites Print this Article
Also Read
SEO hosting (Views: 650)