Skip to main content
April 16, 2008
Question

Redirect Blocked Sites

  • April 16, 2008
  • 1 reply
  • 350 views
Can any body tell me if there is a CF Command to do the following

<CFIF (Sample URL) is blocked>
Other URL
<CFELSE>Sample URL
</CFIF>

The reason I want to do this is that people go to video.cfm page
to see a YouTube Video and if YouTube is blocked then it goes to another Video Server.

Thanks
    This topic has been closed for replies.

    1 reply

    Inspiring
    April 16, 2008
    You could look at the response from cfhttp. Maybe check the
    cfhttp.statusCode and if its not 200, do something else.....

    "Pooker" <webforumsuser@macromedia.com> wrote in message
    news:fu5lmc$6j4$1@forums.macromedia.com...
    > Can any body tell me if there is a CF Command to do the following
    >
    > <CFIF (Sample URL) is blocked>
    > Other URL
    > <CFELSE>Sample URL
    > </CFIF>
    >
    > The reason I want to do this is that people go to video.cfm page
    > to see a YouTube Video and if YouTube is blocked then it goes to another
    > Video
    > Server.
    >
    > Thanks
    >