Installation guide
Locking down your content
Regardlessofthesensitivityorownershipofyourcontent,you’llwanttoimplementsomelevelof
securitywhendeployingtotheweb.It’sbesttobeginbysecuringyourserver,thensecuringyour
content.Let’sexamineeachofthesecuritymeasuresyoucantakeinmoredetail.
Restrict access from domains
Bydefault,aclientcanconnecttoFlashMediaServerfromanydomainorIPaddress,whichcan
beasecurityrisk.Youcancreateawhitelistofalloweddomains(orablacklistofbanned
domains)toensurethatonlyauthorizedclientscanconnecttoyourapplicationsorservices.You
canaddacomma-delimitedlistofdomainsand/orIP-addressblocksintheA dap tor.x ml or
vHost.x ml conguration 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.
User authentication
ere are several methods of user authentication available with Flash Media Server 3. We will
discuss the server-side ActionScript method.
Server-side ActionScript
e next step to increase security would be to implement a user authentication scheme to
validate the connecting client. For example, using variables passed in through the client
NetConnectionmethod,youcouldimplementasimpleusername/password,anencryptedtoken
(MD5Hash),orauniquekey:
• Usercredentials(login/password):
NetConnection.connect(“rtmp...”, “ u s e r n a m e ”, “p a s s w or d”);
• Encryptedtoken(MD5Hash):
NetConnection.connect(“rtmp...”, 6aef79f07bc8f23c38e8979f3630f436);
• Uniquekey:
NetConnection.connect(“rtmp...”, 349jh3k4324h9.234234098);
en,ontheserver-side,FlashMediaServerwouldbeabletointegratewithwebservices(SOAP),
FlashRemoting,XML,HTTPPost(loadVars)orsimpleleaccess,tovalidatetheclientbased
on the data sent. is authentication scheme could be as simple as checking login information
againstadatabase,orascomplexascreatinganSSL-basedtokensystemusingColdFusion.
Access adaptor plug-in
Improved feature in Flash Media Interactive Server; requires Flash Player 6 or later.
Anaccessadaptorisaserverplug-inwritteninC++thatinterceptsconnectionstotheserver,
and determines whether requests should be accepted, rejected, or redirected before the requests
reach the server’s 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 aer the client connection was accepted.
e access adaptor can be congured 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 actually catching the connection before it is processed
byFlashMediaServer.Forthisreason,youarelimitedtotrappingonlytheconnectionevents.If
you want to apply additional rules aer the connection is established, you would need to
congure an authorization adaptor.
Note: There can only be one Access plug-in per Flash Media Interactive Server installation.
50