variables from other server

i need to make script that activates or disables firewall rule depending on variable on another server.

for example -

if http://www.server.com/aaa.htm output is aaa then script should execute function1,

else if http://www.server.com/aaa.htm output is bbb then script should execute function2

is it possible?

I don’t think it’s possible using ROS scripting.
But you can make a simple PHP or any other language to do that.
Checking on other server first… than telnet to the router and disable the rule.