Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-17-2014, 07:02 PM
baseman101 baseman101 is offline
Scripter
baseman101's Avatar
Join Date: Nov 2012
Location: Purcellville, VA
Posts: 76
baseman101 will become famous soon enough
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.
Reply With Quote
  #2  
Old 05-17-2014, 09:10 PM
Tim_Rocks Tim_Rocks is offline
a true gentlemen
Tim_Rocks's Avatar
Join Date: Aug 2008
Location: USA
Posts: 1,863
Tim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to beholdTim_Rocks is a splendid one to behold
I would like getting this functionality back.
__________________
Reply With Quote
  #3  
Old 05-17-2014, 10:01 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
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.
__________________
Quote:
Reply With Quote
  #4  
Old 05-17-2014, 10:51 PM
baseman101 baseman101 is offline
Scripter
baseman101's Avatar
Join Date: Nov 2012
Location: Purcellville, VA
Posts: 76
baseman101 will become famous soon enough
Quote:
Originally Posted by fowlplay4 View Post
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.

Last edited by baseman101; 05-18-2014 at 03:00 PM..
Reply With Quote
  #5  
Old 05-18-2014, 12:09 AM
PhantosP2P PhantosP2P is offline
Pizza Wizard
PhantosP2P's Avatar
Join Date: Aug 2011
Location: California, USA
Posts: 122
PhantosP2P will become famous soon enough
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.
Reply With Quote
  #6  
Old 05-18-2014, 02:38 AM
BlueMelon BlueMelon is offline
asdfg
BlueMelon's Avatar
Join Date: Sep 2008
Posts: 1,481
BlueMelon is a splendid one to beholdBlueMelon is a splendid one to beholdBlueMelon is a splendid one to beholdBlueMelon is a splendid one to behold
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.
__________________
http://i.imgur.com/OOJbW.jpg
Reply With Quote
  #7  
Old 05-18-2014, 03:01 PM
baseman101 baseman101 is offline
Scripter
baseman101's Avatar
Join Date: Nov 2012
Location: Purcellville, VA
Posts: 76
baseman101 will become famous soon enough
Quote:
Originally Posted by BlueMelon View Post
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.
Reply With Quote
  #8  
Old 05-19-2014, 07:02 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
It's possible to use curl but it's only enabled case by case.
Reply With Quote
  #9  
Old 05-20-2014, 01:03 AM
baseman101 baseman101 is offline
Scripter
baseman101's Avatar
Join Date: Nov 2012
Location: Purcellville, VA
Posts: 76
baseman101 will become famous soon enough
Quote:
Originally Posted by Stefan View Post
It's possible to use curl but it's only enabled case by case.
Ah, I understand. Thank you!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:48 PM.


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