Installation guide

Restrict access from domains
Bydefault,aclientcanconnecttoFlashMediaServerfromanydomainorIPaddress,whichcan
beasecurityrisk.Youcancreateawhitelistofalloweddomains(orablacklistofbanned
domains)toensurethatonlyauthorizedclientscanconnecttoyourapplicationsorservices.
Youcanaddacomma-delimitedlistofdomainsandIPaddressblocksintheA d a pto r.x m l or
vHost.xml conguration les to add this level of security. is is usually the rst step in locking
downyourserver.Itpreventsmaliciousorunauthorizeddomainsfromfreelyaccessingyour
applications and streams.
Server-side ActionScript
Flash Media Server 3.5 has several user authentication methods available. is section discusses
the server-side ActionScript method to implement a user authentication scheme to validate the
connecting client. For example, using variables passed in through the client NetConnection
method,youcouldimplementasimpleusernameandpassword,anencryptedtoken(MD5Hash),
or a unique key.
• Usercredentials(loginandpassword)
NetConnection.connect(“rtmp..., “username, password);
• Encryptedtoken(MD5Hash)
NetConnection.connect(“rtmp..., 6aef79f07bc8f23c38e8979f3630f436);
• Uniquekey
NetConnection.connect(“rtmp..., 349jh3k4324h9.234234098);
en,ontheserver-side,FlashMediaServerwouldbeabletointegratewithwebservices(SOAP),
FlashRemoting,XML,HTTPPost(loadVars),orsimpleleaccesstovalidatetheclientbased
on the data sent. is authentication scheme could be as simple as checking login information
againstadatabaseorascomplexascreatinganSSL-basedtokensystemusingColdFusion.
Access adaptor plug-in
Improved feature in Flash Media Interactive Server; requires Flash Player 6 or later.
Anaccessadaptorisaserverplug-inwritteninC++thatinterceptsconnectionstotheserverand
determines whether requests should be accepted, rejected, or redirected before the requests reach
the servers script layer. You can create custom logic in the access adaptor to handle client
connection requests. For example, you could query your account database upon client login and
then update the database record aer the client connection was accepted.
e access adaptor can be congured to accept or reject requests based on the number of clients
currently connected or the amount of bandwidth currently being consumed. You can also set
read and write access for les and folders on the server, set permissions to access audio and video
bitmap data, and inspect client properties through the access adaptor.
When you use the access adaptor, you are catching the connection before it is processed by
FlashMediaServer.Forthisreason,youarelimitedtotrappingonlytheconnectionevents.If
you want to apply additional rules aer the connection is established, you need to congure an
authorization adaptor.
Note: There can only be one Access plug-in per Flash Media Interactive Server installation.
Authorization adaptor plug-in
Feature in Flash Media Interactive Server; requires Flash Player 6 or later.
enextlineofdefenseistheauthorizationadaptor.Aserverplug-inwritteninC++,the
authorization adaptor authorizes client access to server events. Aer the connection has been
established but before it is accepted, the authorization adaptor comes into play.
54