Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Bring Back CURL Functions (https://forums.graalonline.com/forums/showthread.php?t=134269220)

baseman101 05-17-2014 07:02 PM

Bring Back CURL Functions
 
Hello,

I have recently returned to scripting on Graal, and have attempted to use one of my previous scripts to log RC messages to my webserver. Upon saving the script, I was denied access to POSTing to my server with cbk's HTTP functions class.

Quote:

The CURL connection to http://commentblock.com/code/webrc/post.php is not authorized on this server
I am wondering, what is the significance of blocking such a simple task? I see no harm in doing so. If it was blocked for the main intent of server owners not finding the IP address, that would be a silly reason as you could find it just as easily by visiting the weblevels folder on the Graal Client. Also, a lot of server owners want this capability back.

Tim_Rocks 05-17-2014 09:10 PM

I would like getting this functionality back.

fowlplay4 05-17-2014 10:01 PM

Those aren't the server's real IPs, they're a Black Lotus DDoS Protected IP that masks the server's actual IP.

If the server's can leak their real IP then it makes the whole protected IP pointless.

The only way I can see it being re-enabled is if they have all CURL/web requests sent through a proxy.

baseman101 05-17-2014 10:51 PM

Quote:

Originally Posted by fowlplay4 (Post 1727289)
Those aren't the server's real IPs, they're a Black Lotus DDoS Protected IP that masks the server's actual IP.

If the server's can leak their real IP then it makes the whole protected IP pointless.

The only way I can see it being re-enabled is if they have all CURL/web requests sent through a proxy.

I suppose that's true, but these kinds of requests are really important for some aspects to the server. They should really have a proxy going both ways if they really want to mask their IP, like you said.

PhantosP2P 05-18-2014 12:09 AM

Oh GOD, they use Black Lotus? We have them at work and they are super spotty. CURL being gone broke a lot of our systems but I understand there are newer best practices, so I'll respect the change.

BlueMelon 05-18-2014 02:38 AM

You can get around this... but at the expense of the players (clientside web request sent back to server).
Although you can only make a GET request you can still use PHP (or whatever serverside language of choice) on your webserver to do your cURL functions.

I wouldn't suggest this though for obvious reasons.

baseman101 05-18-2014 03:01 PM

Quote:

Originally Posted by BlueMelon (Post 1727293)
You can get around this... but at the expense of the players (clientside web request sent back to server).
Although you can only make a GET request you can still use PHP (or whatever serverside language of choice) on your webserver to do your cURL functions.

I wouldn't suggest this though for obvious reasons.

That would be overkill, and sometimes wouldn't necessarily work. Examples of this is when no one is online, the player's firewall could have blocked the webserver, the connection speed could be slow, or anything else. But it still would be nice to have these capabilities back.

Admins 05-19-2014 07:02 AM

It's possible to use curl but it's only enabled case by case.

baseman101 05-20-2014 01:03 AM

Quote:

Originally Posted by Stefan (Post 1727302)
It's possible to use curl but it's only enabled case by case.

Ah, I understand. Thank you!


All times are GMT +2. The time now is 06:13 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.