Welcome to World of IPTV

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

Forum Rules

Our Rules: Read to avoid getting banned!

Advertising

Introduce Yourself to the World with Us!

Resource Database

Find the newest resources around IPTV!

Account upgrade

Upgrade your account to unlock more benefits!

Tutorial XUI ONE HACKING API.PHP SOLUTION ON NGINX!!

lucasrodrigo

Extended Member
Ext. Member
Joined
Sep 22, 2019
Messages
68
Reaction score
458
Points
64
Location
brazil
Hello everyone, as many people know that xui.one is being invaded by api.php both from the main server and from the balances, I made a configuration using ngnix.conf so as not to have to update from version 1.5.5 which for me is stable to version 1.5.13 so that it only allows system servers to use this API, thus preventing others from using the API to inject into the server.
I'm not an expert on the subject, I just want to help anyone who wants to test the configuration, so if anyone wants to check and test, feel free!


Download:


In MainServer Go to => /home/xui/bin/nginx/conf

And edit the nginx.conf



Configuration on Balances => Go to /home/xui/bin/nginx/conf

And edit the nginx.conf




replace YOU SERVERS; by the IPs of your server all servers including mainserver, after that save the file and use this command to reload ngnix



I hope I helped because I can't take anymore of these people invading people's servers asking for money as a ransom, See you later!

Att. Lucas Rodrigo
 
Last edited by a moderator:
Hello everyone, as many people know that xui.one is being invaded by api.php both from the main server and from the balances, I made a configuration using ngnix.conf so as not to have to update from version 1.5.5 which for me is stable to version 1.5.13 so that it only allows system servers to use this API, thus preventing others from using the API to inject into the server.
I'm not an expert on the subject, I just want to help anyone who wants to test the configuration, so if anyone wants to check and test, feel free!


Download: *** Hidden text: cannot be quoted. ***



In MainServer Go to => /home/xui/bin/nginx/conf

And edit the nginx.conf

*** Hidden text: cannot be quoted. ***



Configuration on Balances => Go to /home/xui/bin/nginx/conf

And edit the nginx.conf


*** Hidden text: cannot be quoted. ***



replace YOU SERVERS; by the IPs of your server all servers including mainserver, after that save the file and use this command to reload ngnix

*** Hidden text: cannot be quoted. ***



I hope I helped because I can't take anymore of these people invading people's servers asking for money as a ransom, See you later!

Att. Lucas Rodrigo
Error
/home/xui/bin/nginx/conf$ /home/xui/bin/nginx/sbin/nginx -s reload
nginx: [emerg] unknown directive "more_set_input_headers" in /home/xui/bin/nginx/conf/nginx.conf:37
 
Error
/home/xui/bin/nginx/conf$ /home/xui/bin/nginx/sbin/nginx -s reload
nginx: [emerg] unknown directive "more_set_input_headers" in /home/xui/bin/nginx/conf/nginx.conf:37
If you are using xui.1.5.12 or 1.5.13 you will have to add these lines to your nginx, instead of using the full command.



add it to your nginx code, edit the ips and save, do it in main and balances, and reload.
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
Nice job bro. It's good to know that Brazilian users are also enthusiastic and seek to bring solutions to the community in general.
 
Hello

I dont understand thisone:

more_set_input_headers "X-IP: $realip_remote_addr";

on the MAINSERVER

and

YOUIPSERVERS, does it mean when I edit the MAIN to put there the MAIN IP?

Thanks
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
thank you, this is working nicely

edit: I can't see your post because it requires 5 reactions and I have none, that's a shame
 
don't forgot install fail2ban or create firewall block other port..
 
I don't think it will work because it is caused by error problems due to license. Slin from sql will fix the panel error logs.
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top