To specify multiple IP addreses / ranges, there are a number of ways this can be done with the PRO API.
<IPAddress>192.168.1.1-50</IPAddress> <IPAddress>10.1.2.1</IPAddress> <IPAddress>20.1.3.5</IPAddress>
Is same as:
<IPAddress>192.168.1.1-50, 10.1.2.1, 20.1.3.5</IPAddress>
Full XML below:
<?xml version="1.0"?>
<Query>
<Action>AddMedia</Action>
<UserID>[User ID]</UserID>
<UserKey>[User key]</UserKey>
<Notify>[Notify URL]</Notify>
<Source>
<SourceFile>[SourceFile1]</SourceFile>
<CDN>[CDNType]</CDN>
<HD>[HD]</HD>
<Protect>
<StartDate>2012-04-01 00:00:00</StartDate>
<ExpirationDate>2012-05-01 00:00:00</ExpirationDate>
<IPAddress>192.168.1.1-50</IPAddress>
<IPAddress>10.1.2.1</IPAddress>
<IPAddress>20.1.3.5</IPAddress>
<Token/>
</Protect>
</Source>
</Query>
<?xml version="1.0"?>
<Query>
<Action>AddMedia</Action>
<UserID>[User ID]</UserID>
<UserKey>[User key]</UserKey>
<Notify>[Notify URL]</Notify>
<Source>
<SourceFile>[SourceFile1]</SourceFile>
<CDN>[CDNType]</CDN>
<HD>[HD]</HD>
<Protect>
<StartDate>2012-04-01 00:00:00</StartDate>
<ExpirationDate>2012-05-01 00:00:00</ExpirationDate>
<IPAddress>192.168.1.1-50, 10.1.2.1, 20.1.3.5</IPAddress>
<Token/>
</Protect>
</Source>
</Query>
