[Include] SA:MP IsUp Tool - API
#19

Quote:
Originally Posted by Ryan_Bowe
Посмотреть сообщение
What are we to do if your API were to suddenly go down?
Quick somebody make an api to monitor the api!


But on topic.. Seems like a neat idea. I personally don't think many would use this unless they would have a gaming community with multiple servers and they would like to show status's of all their servers, on each server.

And as for not wanting direct access to the api i am sure you could look into http headers as i am fairly certain the samp server has a different header compared to regular browsers. Just tested myself....
Код:
[07/Jan/2015:18:27:32 +0000] "HEAD /test/test.php HTTP/1.1" 200 "http://sa-mp.com" "SAMP/0.3" "192.***.**.***"
That's what is shown in my access log. So you can get this same info in php and use it to only allow access with requests containing certain things like SAMP/0.3

Also audio streams for clients show the same except the ip is the users ip.
Reply


Messages In This Thread
SA:MP IsUp Tool - API - by Abagail - 04.01.2015, 16:20
Re: SA:MP IsUp Tool - API - by Kaperstone - 04.01.2015, 16:24
Re: SA:MP IsUp Tool - API - by Abagail - 04.01.2015, 16:26
Re: SA:MP IsUp Tool - API - by Lordzy - 04.01.2015, 16:36
Re: SA:MP IsUp Tool - API - by Abagail - 04.01.2015, 16:46
Re: SA:MP IsUp Tool - API - by Lordzy - 04.01.2015, 16:54
Re: SA:MP IsUp Tool - API - by Abagail - 04.01.2015, 17:16
Re: SA:MP IsUp Tool - API - by Djole1337 - 04.01.2015, 17:20
Re: SA:MP IsUp Tool - API - by Abagail - 04.01.2015, 17:22
Re: SA:MP IsUp Tool - API - by Djole1337 - 04.01.2015, 17:25
Re: SA:MP IsUp Tool - API - by Abagail - 04.01.2015, 17:28
Re: SA:MP IsUp Tool - API - by Djole1337 - 04.01.2015, 17:35
Re: SA:MP IsUp Tool - API - by Abagail - 04.01.2015, 17:41
Re: SA:MP IsUp Tool - API - by Abagail - 05.01.2015, 23:47
Re: SA:MP IsUp Tool - API - by ViperAssasin11 - 06.01.2015, 00:35
Re: SA:MP IsUp Tool - API - by Abagail - 06.01.2015, 00:47
Re: SA:MP IsUp Tool - API - by Ryan_Bowe - 07.01.2015, 17:03
Re: SA:MP IsUp Tool - API - by Abagail - 07.01.2015, 17:14
Re: SA:MP IsUp Tool - API - by nickdodd25 - 07.01.2015, 17:53
Re: SA:MP IsUp Tool - API - by Abagail - 07.01.2015, 17:56

Forum Jump:


Users browsing this thread: 3 Guest(s)