suppress_response()) {//Do not send any output when hybrid mode is enabled and a visitor is being filtered (after hybrid page was generated) exit; } $response = $ta->get_response(); $visitor = $ta->get_visitor(); /* * Advanced users: uncomment lines below during development to expose variables you may want to use in your custom code: */ //print_r($response); //print_r($visitor); //exit; /* * Don't forget to re-comment the lines above before sending live traffic */ /* Note: when using hybrid mode, please use one of our built-in functions as your final step when routing your visitors: print header_redirect(""); //performs a 302 header redirect (or a window.location=xxx in JS) print load_fullscreen_iframe(""); //Loads a fullscreen iframe of the specified URL print paste_html(""); //Downloads HTML in specified URL and outputs it to the screen (uses JS to insert the HTML in hybrid mode) (These functions will automatically output either regular HTML or JS code depending on what the visitor's browser is expecting) */ switch ($response['action']) { case 'header_redirect': print header_redirect($response['url']); //Uses when in hybrid mode (required behaviour) exit; case 'iframe': print load_fullscreen_iframe($response['url']); exit; case 'paste_html': print paste_html($response['output_html']); exit; case 'reverse_proxy': print reverse_proxy($response['url'], "tarp_9adae02ca5de49b52ded1917943088c8/"); exit; /* Please be VERY CAREFUL if modifying this block: */ case 'load_hybrid_page': $ta->load_hybrid_page(); break; /* is needed for hybrid mode to function correctly */ default: print other_methods($response['url']); break; } /* * Note: if using the "Remain on Fail URL" action for Filtered Visitors, append your Fail URL's HTML/PHP code after the closing PHP tag below: */ ?>