Start a conversation

Verifying if is running under a safe site(web server llS.)

The Scriptcase provides the macro sc_site_ssl (https protocol) to see if the site is safe.

Note: This macro works only for the IIS web server (Internet Information Server).

Example 1: Using the affirmative.
if (sc_site_ssl) {
echo "okay - Secure Site";

Example 2: Using the negative.
if (! sc_site_ssl) {
echo "Danger - Site is not safe";

Example 3: Redirecting if the site is not safe.
if (! sc_site_ssl){
sc_redir ( "");

Choose files or drag and drop files
Was this article helpful?
  1. Ronyan Alves

  2. Posted
  3. Updated