@fsockopen Disabled Port80

Status
Not open for further replies.

aerocrash1

New Member
Messages
80
Reaction score
3
Points
0
Hi Guys,

Does anyone know if x10hosting blocks port 80 @fsockopen requests via php, if so please can someone help me find another method in PHP, ive tried file_get_contents()- does not work

Thanks
 

Anna

I am just me
Staff member
Messages
11,733
Reaction score
578
Points
113
port 80 is blocked, it is not locked to fsockopen though, it is a firewall rule.

We had to take that somewhat drastic decision to combat abuse (people uploading proxy scripts).
 

aerocrash1

New Member
Messages
80
Reaction score
3
Points
0
Ok, that's fine, so I guess that there is not other way to do a ping, I wanted to use the require() for a remote file instead but that is blocked too. That script is essential to the functioning of my scripts. Any other way?

My script is here:
Code:
[FONT="Courier New"][SIZE="2"]<?php 
/*

88888888888 888                   .d88888b.                                 .d8888b.                    888               
    888     888                  d88P" "Y88b                               d88P  Y88b                   888               
    888     888                  888     888                               888    888                   888               
    888     88888b.   .d88b.     888     888 88888b.   .d88b.  88888b.     888         8888b.   .d8888b 88888b.   .d88b.  
    888     888 "88b d8P  Y8b    888     888 888 "88b d8P  Y8b 888 "88b    888            "88b d88P"    888 "88b d8P  Y8b 
    888     888  888 88888888    888     888 888  888 88888888 888  888    888    888 .d888888 888      888  888 88888888 
    888     888  888 Y8b.        Y88b. .d88P 888 d88P Y8b.     888  888    Y88b  d88P 888  888 Y88b.    888  888 Y8b.     
    888     888  888  "Y8888      "Y88888P"  88888P"   "Y8888  888  888     "Y8888P"  "Y888888  "Y8888P 888  888  "Y8888  
                                             888                                                                          
                                             888                                                                          
                                             888                                                                          
 ==================================================================================================================

*/
$port   = "80";
$timeout = "5";

$c1 = "http://cache.infinity-media.co.cc/";
$c2 = "http://asia.infinity-media.co.cc/";
$c3 = "http://cache3.infinity-media.co.cc/";
$c4 = "http://theopencache.sf.net/";

$cache1 = strpos($c1,"P");
$cache2 = strpos($c2, "P");
$cache3 = strpos($c3, "P");
$cache = strpos($c4, "P");

$cookie = $_COOKIE['cache-location'];

if ($c1 && $port && $timeout) {$fsockopen_sf =  @fsockopen("$server", $port, $errno, $errstr, $timeout);}
if($fsockopen_sf) {$sf = "http://theopencache.sf.net/";}
else {$sf = "http://aerocrash.co.cc/cache/";}

if ($c1 && $port && $timeout) {$fsockopen_c1 =  @fsockopen("$server", $port, $errno, $errstr, $timeout);}
if($fsockopen_c1) {$cc1 = "http://cache.infinity-media.co.cc/";}
else {$cc1 = $sf;}

if ($c1 && $port && $timeout) {$fsockopen_c2 =  @fsockopen("$server", $port, $errno, $errstr, $timeout);}
if($fsockopen_c2) {$cc2 = "http://asia.infinity-media.co.cc/cache";}
else {$cc2 = $sf;}

if ($c1 && $port && $timeout) {$fsockopen_c3 =  @fsockopen("$server", $port, $errno, $errstr, $timeout);}
if($fsockopen_c3) {$cc1 = "http://cache3.infinity-media.co.cc/";}
else {$cc3 = $sf;}

switch ($cookie) {
    case "EU": $host = $cc3; break;
    case "NA": $host = $cc1; break;
    case "SA": $host = $cc1; break;
    case "AS": $host = $cc2; break;
    case "AF": $host = $cc3; break;
    case "OC": $host = $cc1; break;
	case "AN": $host = $cc1; break;
}

echo $host;

?>[/SIZE][/FONT]

BTW. You can check the server's are not hosted on x10 (cache.infinity-media.co.cc , asia.infinity-media.co.cc, cache3.infinitymedia.co.cc)

I have another server to host the file, but i cant connect to that file via x10hosting.

Or ill have to take the risk if the server is offline

---------- Post added at 11:13 PM ---------- Previous post was at 10:56 PM ----------

Anyway, apparently brandon has just suspended me, for file hosting.

---------- Post added at 11:14 PM ---------- Previous post was at 11:13 PM ----------

my project is over
 
Last edited:

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
Hello,

You were providing links to and hosting copyright tv shows.
 

aerocrash1

New Member
Messages
80
Reaction score
3
Points
0
I understand that, can I check the DNS records that I set in cPanel?

and/or be Unsuspended
 
Last edited:

Livewire

Abuse Compliance Officer
Staff member
Messages
18,169
Reaction score
216
Points
63
Links to and hosting illegal files (as in files that aren't yours) falls under the Zero Tolerance policy and you were permanently suspended for it; we cannot unsuspend you for any reason.

Because of this as well, we can't get into cpanel to see the DNS records you set - all access to the account was permanently revoked.
 
Status
Not open for further replies.
Top