Welcome, Guest
  • Author Topic: Security and private  (Read 3159 times)

    xxxfrog

    • Server what's that
    • *
    • Posts: 26
      • View Profile
    Security and private
    « on: 07/05/05, 12:57 »
    hi i have developed my chat room now,i have some questions

    1. how to add code in my main.asc so that other people cant steal my bandwidth or app. i found a code like this

    Add the following few lines in your application's onConnect method (in your main.asc)

    if (client.referrer != "http://mydomain/myfile.swf") {
     application.rejectConnection(client);
     return;
    }

    if in my main.asc dont have application's onConnect method ,that only like load("components.asc"),so how could i add those code??

    2. if my domain is www.mydomain.com, and my .swf is store in www.mydomain.com/my.swf,so how could i prevent people direct to load www.mydomain.com/my.swf,as i want people load www.mydomain.com/my.html

    3.  how could i add private chat function in my chat room?? any example??

    i'd like to learn fcs ,as it is wonderful,so i hope anybody could help me,thank you!! :)
    « Last Edit: 07/05/05, 13:07 by xxxfrog »

    xxxfrog

    • Server what's that
    • *
    • Posts: 26
      • View Profile
    Re: Security and private
    « Reply #1 on: 07/06/05, 23:03 »
    push

    xxxfrog

    • Server what's that
    • *
    • Posts: 26
      • View Profile
    Re: Security and private
    « Reply #2 on: 07/07/05, 06:20 »
    my gd,only jorge knows fcs :-[

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: Security and private
    « Reply #3 on: 07/07/05, 07:23 »
    Hi xxxfrog

    Questions like this:

    Quote
    if in my main.asc dont have application's onConnect method ,that only like load("components.asc"),so how could i add those code??

    Means that you don't know the basis for script any app. So a reasonable approach is to read some book (the excellent Programmig Flash Communication Server http://www.amazon.co.uk/exec/obidos/ASIN/0596005040/qid%3D1109841551/ref%3Dsr%5F8%5Fxs%5Fap%5Fi1%5Fxgl//202-4113617-8853419#product-details ) of even the manual Server-Side Communication ActionScript Dictionary ( http://www.macromedia.com/support/documentation/en/flashcom/index.html#manuals ) In this same page you can find all FlashCom manuals.

    Explaining things that are in the manual is booring. Here I quote all application Handlers that you can use in your asc file, and even more: in the manual are code snippets:

    Event handler summary for the Application object
    Event handler Description
    Application.onAppStart Invoked when the application is loaded by the server.
    Application.onAppStop Invoked when the application is unloaded by the server.
    Application.onConnect Invoked when a client connects to the application.
    Application.onConnectAccept Invoked when a client successfully connects to the application; for use
    with communication components only.
    Application.onConnectReject Invoked when a client fails to connect to the application; for use with
    communication components only.
    Application.onDisconnect Invoked when a client disconnects from the application.
    Application.onStatus Invoked when a script generates an error.

    Jorge

    xxxfrog

    • Server what's that
    • *
    • Posts: 26
      • View Profile
    Re: Security and private
    « Reply #4 on: 07/07/05, 07:46 »
    thank you very much !

    i love you jorge,you are very nice :D

    how about my second and third questions,any ideas?
    « Last Edit: 07/07/05, 07:55 by xxxfrog »

    xxxfrog

    • Server what's that
    • *
    • Posts: 26
      • View Profile
    Re: Security and private
    « Reply #5 on: 07/07/05, 10:35 »
    private chat is more important in a chat room(application with fcs)
    but,i cant find any example that add private chat function to video chat room,so  it prohibits the development of application to the public,i understand why people wouldnt open the source,but at least give a tutorial as well ;)

    xxxfrog

    • Server what's that
    • *
    • Posts: 26
      • View Profile
    Re: Security and private
    « Reply #6 on: 07/08/05, 01:06 »
    add private chat to video room function is a difficult thing??

    webfreelancer

    • Server what's that
    • *
    • Posts: 4
      • View Profile
      • Bid-Place - The Place to Bid and Sell online!
      • Email
    Re: Security and private
    « Reply #7 on: 07/08/05, 01:27 »
    nice chatroom! What if there's lots of users? Would it still function smoothly?
    Bid-Place.com- The Place to Bid and Sell online!

    xxxfrog

    • Server what's that
    • *
    • Posts: 26
      • View Profile
    Re: Security and private
    « Reply #8 on: 07/08/05, 02:10 »
    refer to http://www.flashcomguru.com/tutorials/private_msg.cfm

    but is just an introduction.


    anyone could help me???

    xxxfrog

    • Server what's that
    • *
    • Posts: 26
      • View Profile
    Re: Security and private
    « Reply #9 on: 07/08/05, 04:13 »
     ??? ???

    xxxfrog

    • Server what's that
    • *
    • Posts: 26
      • View Profile
    Re: Security and private
    « Reply #10 on: 07/08/05, 09:39 »
    i have searched the related subject in this site,but those are not complete.

    xxxfrog

    • Server what's that
    • *
    • Posts: 26
      • View Profile
    Re: Security and private
    « Reply #11 on: 07/09/05, 03:28 »
    push

    xxxfrog

    • Server what's that
    • *
    • Posts: 26
      • View Profile
    Re: Security and private
    « Reply #12 on: 07/09/05, 06:06 »
    this site is useless

    i solved already

    bye bye this site

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: Security and private
    « Reply #13 on: 07/09/05, 06:51 »
    Bye bye xxxfrog, good luck  ;)

    Jorge