PDA

View Full Version : Bring Back CURL Functions


baseman101
05-17-2014, 07:02 PM
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.


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
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
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
It's possible to use curl but it's only enabled case by case.

Ah, I understand. Thank you!