Results 1 to 2 of 2
  1. #1
    New Member
    Join Date
    Mar 2007
    Location
    New Jersey
    Posts
    2

    Any help appreciated

    Hi- I am new to this site as well as new to complex programming. Sorry in advance for the long explanation.
    I have several radio sites on web that provide audio/video feeds for police and fire radio traffic for those who are interested in this media as I am. (Firefighter).
    I have been growing these sites and have progressed to asking for donations to keep these alive. I have had to limit this listening to 15 minutes, and then a redirect until they refresh. This gives others a chance to listen also. I allow 10 users at a time access to my site. I also have a blind link to a password to listen without timeout for those who continually donate.
    I am using either XP Pro or Win 2000 on computers that feed the media encoder and then a centos powered web server for the pages with password protection for paid users. I also encript my web pages to hide my code.
    I have embedded the media player in the code and use an asx file to point to my media encoder info.
    Here is the help I need. I am finding that anyone can go around my password protection with very little trouble and use media player and link right to the asx file.
    Is there any way to protect the asx file so as to not be able to directly access it by a raw media player. That is ONLY be able to get it through my web pages and additional password protection for unlimited listening.
    Below are my codings.

    Media encoder embedings in my web pages:
    <!-- START MODIFIED CODE --><object id="mediaPlayer"
    classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
    codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
    standby="Loading Microsoft Windows Media Player components..."
    type="application/x-oleobject" height="170" width="365"><param
    name="fileName" value="http://www.scanjersey.com/scanner.asx"><param
    name="animationatStart" value="true"><param name="transparentatStart"
    value="true"><param name="autoStart" value="true"><param
    name="showControls" value="false">
    <embed name="MediaPlayer1" src="http://www.scanjersey.com/scanner.asx"
    type="application/x-mplayer2"
    pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"
    autostart="true" controls="1" align="baseline" height="170" width="365"></object>
    <p style="color: rgb(255, 102, 0);"><!-- END MODIFIED CODE --></p>

    My asx files:

    <ASX version="3.0">
    <ENTRY>
    <REF HREF = "scanjersey2.wmv" />
    </ENTRY>
    <ENTRY>
    <REF HREF = "http://216.182.62.200:8080" />
    </ENTRY>
    <ENTRY>
    <ref HREF="users.wmv"/>
    <ref HREF="offline.wmv"/>
    </Entry>
    </ASX>

    the ip address is the actual link, the rest are files with headers and tails.

    You can see the actual website at http://www.scanjersey.com.

    Thank you in advance, for your help and patience.

  2. #2
    New Member
    Join Date
    May 2007
    Location
    St. Cloud, MN
    Posts
    1
    Define your src address in a session variable that is posted when a user is on the page.

    Then set a simple timer in the session to expire in 15 mins.

    Have your preview set with a simple if else statement that requires a session variable or else video wont display. Simply as that.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Subscribe to us on YouTube