• You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

Titans Downloads and Edits Archive

Anyone encountered this error here?

MmYpUxI.png


It appears when I try to visit a generated link. SSL is working fine now

Edit: Page is black. SSL settings in nginx.conf are correct (made by certbot).
Cloudflare looks like this:
ey0yDrI.png


134.209.89.157 is the IP of my LoadBalancer/Proxy server.

This is my shared host:
ETrhUUS.png

s8GAias.png

Am I missing anything here? Would appreciate your help guys.

The panel is on the subdomain encrypt.mydomain.com and is working
 
Last edited:

My friend, you can ask me 2 questions.
I have installed and run it already, but with the google drive file, it cannot play and the error appears https://prnt.sc/tqn3ro

The second question I want to ask is how can you link servers together, like this. https://prnt.sc/tqnhzc

I have followed what you instructed on how to set up sv1, sv2 ..., but mine doesn't work like yours, can you help me?

Thanks you very much
 
Introduction

Hello, a few of you know me here, some of you don't. I've uploaded around $400 worth of scripts here and I get messages daily asking for support or help or whatever else, so below is tutorials and edits on everything I've uploaded. I'll most likely be linking people here if you pop up to me so please read here first.

Please remember, my resources (including the thread) is free, however my time ain't as I'm a very busy person.



API Codes - Google Drive Proxy Player 1.8

google-drive-proxy-player-advanced-script-poster.png

Requirements:

Hosting which can be either cPanel hosting or shared hosting or even a dedicated server. (My Hosting - No Referral)
A dedicated server OR a VPS with at least 2GB or RAM and a decent CPU. running Ubuntu 18.08 (Cheap Servers - No Referral)
A Cloudflare account, which is free. (Can Register Here)

Installation:

Part A (Setting up Cloudflare)

1. Create an account at Cloudflare.
2. Change your name servers for your domain.
3. When domain is set up, enable force https and change ssl to flexible.
4. Set the following DNS settings.

TypeNameContentTTL
CNAMEwww@Auto
A@Hosting IP addressAuto
AproxyDedicated / VPS IP addressAuto
Asv1Dedicated / VPS IP addressAuto
Asv2Dedicated / VPS IP addressAuto
Asv3Dedicated / VPS IP addressAuto
Asv4Dedicated / VPS IP addressAuto
Asv5Dedicated / VPS IP addressAuto
Asv6Dedicated / VPS IP addressAuto

Part B (Hosting the script)

1. Download the script here and then extract to your desktop.
2. Log into your hosting as you would usually to access file explorer on hosting.
3. Copy the contents on "/new/source_cpanel" onto your server.
4. Go to your URL and it show display the script.

Disclaimer: This will run without the load balancer or proxy HOWEVER if API Codes closes their proxy the script will no longer work so it's best you create your own.

Part C (Creating the Load Balancer and Proxy)

1. Log into your VPS or Dedicated server using a SSH like Putty or Termius.
2. Run the following commands.:

Code:
CD /root/

wget http://cdn.ineeda.org/apicodes-gdriveplayer.zip

apt-get install unzip -y

apt-get install nano -y

unzip apicodes-gdriveplayer.zip

chmod 0777 setup.sh

setup.sh


3. Once the script has finished run the following command:

Code:
nano /root/LoadBalancer/models/CacheManager.js


change line 46 to the following:

Code:
CacheManager.KEY_ENCRYPT = 'apicodesdotcom'

The press CTRL + X followed by Y to save the file.

4. Once you've done the above run the following command:

Code:
nano /root/LoadBalancer/configs/servers.js

change line 4 to the following:

Code:
exports.NumberNode = 6; //The number of nodes you want to play

change line 6 to the following:

Code:
exports.DomainNode = [' INSERT YOUR OWN DOMAIN WITH NOT HTTPS OR FOLLOWING / ']; //Your primary domain

The press CTRL + X followed by Y to save the file.

5. Now run the next command:


Code:
nano /root/ProxyStream/models/CacheManager.js

change line 49 to the following:

Code:
CacheManager.KEY_ENCRYPT = 'apicodesdotcom';

Then press CTRL + X followed by Y to save the file.

6. Final edits, run the following commands:

Code:
nano /root/ProxyStream/configs/servers.js

change line 3 to the following:

Code:
exports.ALLOW_DOMAIN = []; //Domain you want to play.

7. Setting up NGINX with the proxy and load balancer.

Input the following command:

Code:
nano /etc/ngnix/ngnix.conf

The following section between lines 57 and 63 will be changes to be careful.

line 61 and 62 change to

Code:
#include /etc/nginx/conf.d/*.conf;
#include /etc/nginx/sites-enabled/*;

now on line 60 enter the following:

Code:
upstream LoadBalancer {
    server 127.0.0.1:6666;
}
upstream ProxyStream {
    server 127.0.0.1:6868;
}

server {
    listen 80;
    server_name proxy.yourdomain.com;

    location / {
        proxy_pass http://LoadBalancer;
        proxy_http_version 1.1;
        proxy_send_timeout   600;
        proxy_read_timeout   600;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }
}

server {
    listen 80;
    server_name sv1.yourdomain.com;

    location / {
        proxy_pass http://ProxyStream;
        proxy_http_version 1.1;
        proxy_send_timeout   600;
        proxy_read_timeout   600;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }
}

change line 70 to the following:

Code:
server_name proxy. INSERT YOUR DOMAIN WITH NO TRAILING /;

change line 86 to the following:

Code:
server_name sv1. INSERT YOUR DOMAIN WITH NO TRAILING /;

and that's it Proxy and Load Balancer are now sorted, you just need to run the following commands to reboot NGINX and Start them.

Code:
service nginx restart

pm2 restart all

That's all done now :) just need to edit a few files on your hosting to use your new load balancer and proxy.

Part D (Linking your Dedicated with your hosting)

1. Go to your hosting file manager again, and edit the config.php file and edit line 5 with the following:

Code:
$proxyDomain = 'https://proxy. INSERT YOUR DOMAIN NAME WITHOUT THE TRAILING / ';

And viola done!


If you want to add pop ads or a watermark in the player then edit embed.php and add the advertisement code there.

Watermark code:

Code:
<a href="#" style="position:absolute;top:15px;left:15px;"><img src="IMAGE URL"></a>

I don't know how to ad VAST apologies if someone can put it in the comments I'll add it here.

Black screen on player is usually a problem when you've not set up SSL correctly. Go back through instructions and check.

Showing two // on the embed link, remove the / from the lines 186 and 187 in the index.php file

$20 for my time sorry guys! Pop up if you're wanting me to do it for you.

API Codes - Zippyshare / Amazon / Dropbox / Mediafire Player Script 1.0


zippyshare-player-script-poster.png
amazon-drive-player-script-poster.png
dropbox-player-script-poster.png
mediafire-player-script-poster.png


Requirements:

Hosting, can be either shared or not doesn't matter for this script.

Installation:

1. Download the script (Zippyshare / Amazon Drive / Dropbox / Mediafire) and then extract to your desktop.
2. Log into your hosting as you would usually to access file explorer on hosting.
3. Copy the contents on "/source_cpanel" onto your server.
4. Go to your URL and it show display the script.

If you want to add pop ads or a watermark in the player then edit embed.php and add the advertisement code there.

Watermark code:

Code:
<a href="#" style="position:absolute;top:15px;left:15px;"><img src="IMAGE URL"></a>

I don't know how to ad VAST apologies if someone can put it in the comments I'll add it here.


Showing two // on the embed link, remove the / from the lines 186 and 187 in the index.php file

$5 for my time sorry guys! Pop up if you're wanting me to do it for you.

API Codes - cPanel Script 1.0

apicodes-cpanel-poster.png

Requirements:

Hosting which can be either cPanel hosting or shared hosting or even a dedicated server. (My Hosting - No Referral)
A dedicated server OR a VPS with at least 2GB or RAM and a decent CPU. running Ubuntu 18.08 (Cheap Servers - No Referral)
A Cloudflare account, which is free. (Can Register Here)

Installation:

Part A (Setting up Cloudflare)

1. Create an account at Cloudflare.
2. Change your name servers for your domain.
3. When domain is set up, enable force https and change ssl to flexible.
4. Set the following DNS settings.

TypeNameContentTTL
CNAMEwww@Auto
A@Hosting IP addressAuto
AproxyDedicated / VPS IP addressAuto
Asv1Dedicated / VPS IP addressAuto
Asv2Dedicated / VPS IP addressAuto
Asv3Dedicated / VPS IP addressAuto
Asv4Dedicated / VPS IP addressAuto
Asv5Dedicated / VPS IP addressAuto
Asv6Dedicated / VPS IP addressAuto

Part B (Hosting the script)

1. Download the script here and then extract to your desktop.
2. Log into your hosting as you would usually to access file explorer on hosting.
3. Copy the contents on "/new/source_cpanel" onto your server.
4. Go to your URL and it show display the script.

Disclaimer: This will run without the load balancer or proxy HOWEVER if API Codes closes their proxy the script will no longer work so it's best you create your own.

Part C (Creating the Load Balancer and Proxy)

1. Log into your VPS or Dedicated server using a SSH like Putty or Termius.
2. Run the following commands.:

Code:
CD /root/

wget http://cdn.ineeda.org/apicodes-gdriveplayer.zip

apt-get install unzip -y

apt-get install nano -y

unzip apicodes-gdriveplayer.zip

chmod 0777 setup.sh

setup.sh


3. Once the script has finished run the following command:

Code:
nano /root/LoadBalancer/models/CacheManager.js


change line 46 to the following:

Code:
CacheManager.KEY_ENCRYPT = 'apicodesdotcom'

The press CTRL + X followed by Y to save the file.

4. Once you've done the above run the following command:

Code:
nano /root/LoadBalancer/configs/servers.js

change line 4 to the following:

Code:
exports.NumberNode = 6; //The number of nodes you want to play

change line 6 to the following:

Code:
exports.DomainNode = [' INSERT YOUR OWN DOMAIN WITH NOT HTTPS OR FOLLOWING / ']; //Your primary domain

The press CTRL + X followed by Y to save the file.

5. Now run the next command:


Code:
nano /root/ProxyStream/models/CacheManager.js

change line 49 to the following:

Code:
CacheManager.KEY_ENCRYPT = 'apicodesdotcom';

Then press CTRL + X followed by Y to save the file.

6. Final edits, run the following commands:

Code:
nano /root/ProxyStream/configs/servers.js

change line 3 to the following:

Code:
exports.ALLOW_DOMAIN = []; //Domain you want to play.

7. Setting up NGINX with the proxy and load balancer.

Input the following command:

Code:
nano /etc/ngnix/ngnix.conf

The following section between lines 57 and 63 will be changes to be careful.

line 61 and 62 change to

Code:
#include /etc/nginx/conf.d/*.conf;
#include /etc/nginx/sites-enabled/*;

now on line 60 enter the following:

Code:
upstream LoadBalancer {
    server 127.0.0.1:6666;
}
upstream ProxyStream {
    server 127.0.0.1:6868;
}

server {
    listen 80;
    server_name proxy.yourdomain.com;

    location / {
        proxy_pass http://LoadBalancer;
        proxy_http_version 1.1;
        proxy_send_timeout   600;
        proxy_read_timeout   600;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }
}

server {
    listen 80;
    server_name sv1.yourdomain.com;

    location / {
        proxy_pass http://ProxyStream;
        proxy_http_version 1.1;
        proxy_send_timeout   600;
        proxy_read_timeout   600;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }
}

change line 70 to the following:

Code:
server_name proxy. INSERT YOUR DOMAIN WITH NO TRAILING /;

change line 86 to the following:

Code:
server_name sv1. INSERT YOUR DOMAIN WITH NO TRAILING /;

and that's it Proxy and Load Balancer are now sorted, you just need to run the following commands to reboot NGINX and Start them.

Code:
service nginx restart

pm2 restart all

That's all done now :) just need to edit a few files on your hosting to use your new load balancer and proxy.

Part D (Linking your Dedicated with your hosting)

1. Go to your hosting file manager again, and edit the config.php file and edit line 5 with the following:

Code:
$proxyDomain = 'https://proxy. INSERT YOUR DOMAIN NAME WITHOUT THE TRAILING / ';

And viola done!

You may notice that you need domain.com/?login=admin for this script to work. You can remove lines 10 and 502 in index.php to make it public and work without the login.

OR

You can change the login name to whatever you like by editing line 8 in config.php to change the "password"

If you want to add pop ads or a watermark in the player then edit embed.php and add the advertisement code there.

Watermark code:

Code:
<a href="#" style="position:absolute;top:15px;left:15px;"><img src="IMAGE URL"></a>

I don't know how to ad VAST apologies if someone can put it in the comments I'll add it here.


Black screen on player is usually a problem when you've not set up SSL correctly. Go back through instructions and check.

Silence is golden is usually associated with you forgetting to add ?login=admin look at the edits section to change that requirement.


Showing two // on the embed link, remove the / from the lines 186 and 187 in the index.php file

$20 for my time sorry guys! Pop up if you're wanting me to do it for you.

I hope this helps guys and gals. I honestly feel if you struggle to follow these then maybe hosting your own ain't the best option and maybe check for existing sites!

I'm also working on making it look a little better to the eyes I know there's a lot of code edits and what-not on here.

I'll be adding my other script edits and installations on here soon, just took me 2 hours to type this much so I'm taking a break haha.

Thanks for reading guys!

I'm getting this error
[root@vmi36**** ~]# CD /root/
-bash: CD: command not found

Any help?
 
If its the load balancer / proxy it won't work unless on Ubuntu, doesn't matter if you can get the cd command working or not, however if its not the load balancer then yeah just a typo
i saw a comment here using cent os7 , btw thanks
 
Part B (Hosting the script)

1. Download the script here and then extract to your desktop.
2. Log into your hosting as you would usually to access file explorer on hosting.
3. Copy the contents on "/new/source_cpanel" onto your server.
4. Go to your URL and it show display the script.

Disclaimer: This will run without the load balancer or proxy HOWEVER if API Codes closes their proxy the script will no longer work so it's best you create your own.

Part C (Creating the Load Balancer and Proxy)

1. Log into your VPS or Dedicated server using a SSH like Putty or Termius.
2. Run the following commands.:


@INeedA i'm little confused, why on API Codes - cPanel Script 1.0 download file is redirected to
Google Drive Proxy Player Advanced Script 1.3? They are different script right?
 
@INeedA please help me, all google drive are not working on my end.
I successfully installed all codes, i'm using UBUNTU 18.04.
all supported sites are working except google drive. I saw on your site remotestre.am that google drive is working 100%
 
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock