preventing fsockopen()

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
punctweb
Forum Newbie
Posts: 11
Joined: Mon Aug 30, 2004 5:53 pm
Location: Romania, Tulcea
Contact:

preventing fsockopen()

Post by punctweb »

Hello.

How do i prevent/block access to an script if someone uses fsockopen() ?
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

You can't, from a server POV they all use a tcp/ip socket.
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

I once came across this situation where the host had all url wrappers disabled.
I had to use CURL.
User avatar
AnarKy
Forum Contributor
Posts: 119
Joined: Tue Nov 02, 2004 1:49 am
Location: South Africa

Why would they do this?

Post by AnarKy »

anjanesh wrote:I once came across this situation where the host had all url wrappers disabled.
Why would they do this?
Post Reply