Gujarat Maritime Board

Port Operations & Financial Management System

@php $url_array = array('localhost','180.211.102.123','gpofms.gmbports.com','172.16.2.210','127.0.0.1','esign.gujarat.gov.in','api.einvoice1.gst.gov.in','api.einvoice2.gst.gov.in'); if (!isset($_SERVER['HTTP_HOST']) || !in_array($_SERVER['HTTP_HOST'], $url_array)) { header("Location: " . $_SERVER['APP_URL'].'/invalid-access'); exit; } if(!empty($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER'] != '') { $ref=@$_SERVER['HTTP_REFERER']; $domain = parse_url($ref, PHP_URL_HOST); if(!in_array($domain, $url_array)) { header("Location: " . url('access-error')); exit(); } } else if(!empty($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER'] == ''){ header("Location: " . url('access-error')); exit(); } // echo "
";print_r($_SERVER);die;
@endphp