$ip = $_SERVER['REMOTE_ADDR']; $ua = $_SERVER['HTTP_USER_AGENT']; if ($ip =="10.10.10.101"){ #ini_set('display_errors', 1); #ini_set('display_startup_errors', 1); #error_reporting(E_ALL); } $actual_link = $_SERVER['PHP_SELF']; $list = file("/var/wwwroot/westnet.ca/bannedipan.txt", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); #if (preg_match('/bot|semrush|riddler|qwant|curl|dataprovider|riddler|daum|get|spider|find|java|majesticsEO|teoma|contaxe|yandex|libwww-perl|abacho|accona|AddThis|AdsBot|ahoy|AhrefsBot|AISearchBot|alexa|altavista|anthill|appie|applebot|arale|araneo|AraybOt|ariadne|arks|aspseek|ATN_Worldwide|Atomz|baiduspider|baidu|bbot|bingbot|bing|Bjaaland|BlackWidow|BotLink|bot|boxseabot|bspider|calif|CCBot|ChinaClaw|christcrawler|CMC\/0\.01|combine|confuzzledbot|contaxe|CoolBot|cosmos|crawler|crawlpaper|crawl|curl|cusco|cyberspyder|cydralspider|dataprovider|digger|DIIbot|DotBot|downloadexpress|DragonBot|DuckDuckBot|dwcp|EasouSpider|ebiness|ecollector|elfinbot|esculapio|ESI|esther|eStyle|Ezooms|facebookexternalhit|facebook|facebot|fastcrawler|FatBot|FDSE|FELIX IDE|fetch|fido|find|Firefly|fouineur|Freecrawl|froogle|gammaSpider|gazz|gcreep|geona|Getterrobo-Plus|get|girafabot|golem|grabber|GrabNet|griffon|Gromit|gulliver|gulper|hambot|havIndex|hotwired|htdig|HTTrack|ia_archiver|iajabot|IDBot|Informant|InfoSeek|InfoSpiders|INGRID\/0\.1|inktomi|inspectorwww|Internet Cruiser Robot|irobot|Iron33|JBot|jcrawler|Jeeves|jobo|KDD\-Explorer|KIT\-Fireball|ko_yappo_robot|label\-grabber|larbin|legs|libwww-perl|linkedin|Linkidator|linkwalker|Lockon|logo_gif_crawler|Lycos|m2e|majesticsEO|marvin|mattie|mediafox|mediapartners|MerzScope|MindCrawler|MJ12bot|mod_pagespeed|moget|Motor|msnbot|muncher|muninn|MuscatFerret|MwdSearch|NationalDirectory|naverbot|NEC\-MeshExplorer|NetcraftSurveyAgent|NetScoop|NetSeer|newscan\-online|nil|none|Nutch|ObjectsSearch|Occam|openstat.ru\/Bot|packrat|pageboy|ParaSite|patric|pegasus|perlcrawler|phpdig|piltdownman|Pimptrain|pingdom|pinterest|pjspider|PlumtreeWebAccessor|PortalBSpider|psbot|rambler|Raven|RHCS|RixBot|roadrunner|Robbie|robi|RoboCrawl|robofox|Scooter|Scrubby|Search\-AU|searchprocess|search|SemrushBot|Senrigan|seznambot|Shagseeker|sharp\-info\-agent|sift|SimBot|Site Valet|SiteSucker|skymob|SLCrawler\/2\.0|snooper|solbot|speedy|spider_monkey|SpiderBot\/1\.0|spiderline|spider|suke|tach_bw|TechBOT|TechnoratiSnoop|templeton|teoma|titin|topiclink|twitterbot|twitter|UdmSearch|Ukonline|UnwindFetchor|URL_Spider_SQL|urlck|urlresolver|Valkyrie libwww\-perl|verticrawl|Victoria|void\-bot|Voyager|VWbot_K|wapspider|WebBandit\/1\.0|webcatcher|WebCopier|WebFindBot|WebLeacher|WebMechanic|WebMoose|webquest|webreaper|webspider|webs|WebWalker|WebZip|wget|whowhere|winona|wlm|WOLP|woriobot|WWWC|XGET|xing|yandex|yeti|Zeus/i', $_SERVER['HTTP_USER_AGENT'])){ #if (preg_match('/(?!\googlebot)|bot|semrush|riddler|curl|dataprovider|riddler|daum|get|spider|find|java|majesticsEO|teoma|contaxe|yandex|libwww-perl/i', $_SERVER['HTTP_USER_AGENT'])) { #if (preg_match('/bot|semrush|riddler|curl|dataprovider|riddler|daum|get|spider|find|java|majesticsEO|teoma|contaxe|yandex|libwww-perl/i', $_SERVER['HTTP_USER_AGENT'])) { #if (preg_match('/bot|semrush|riddler|qwant|curl|dataprovider|riddler|daum|get|spider|find|java|majesticsEO|teoma|contaxe|yandex|libwww-perl|abacho|accona|AddThis|AdsBot|ahoy|AhrefsBot|AISearchBot|alexa|altavista|anthill|appie|applebot|arale|araneo|AraybOt|ariadne|arks|aspseek|ATN_Worldwide|Atomz|baiduspider|baidu|bbot|bingbot|bing|Bjaaland|BlackWidow|BotLink|bot|boxseabot|bspider|calif|CCBot|ChinaClaw|christcrawler|CMC\/0\.01|combine|confuzzledbot|contaxe|CoolBot|cosmos|crawler|crawlpaper|crawl|curl|cusco|cyberspyder|cydralspider|dataprovider|digger|DIIbot|DotBot|downloadexpress|DragonBot|DuckDuckBot|dwcp|EasouSpider|ebiness|ecollector|elfinbot|esculapio|ESI|esther|eStyle|Ezooms|facebookexternalhit|facebook|facebot|fastcrawler|FatBot|FDSE|FELIX IDE|fetch|fido|find|Firefly|fouineur|Freecrawl|froogle|gammaSpider|gazz|gcreep|geona|Getterrobo-Plus|get|girafabot|golem|grabber|GrabNet|griffon|Gromit|gulliver|gulper|hambot|havIndex|hotwired|htdig|HTTrack|ia_archiver|iajabot|IDBot|Informant|InfoSeek|InfoSpiders|INGRID\/0\.1|inktomi|inspectorwww|Internet Cruiser Robot|irobot|Iron33|JBot|jcrawler|Jeeves|jobo|KDD\-Explorer|KIT\-Fireball|ko_yappo_robot|label\-grabber|larbin|legs|libwww-perl|linkedin|Linkidator|linkwalker|Lockon|logo_gif_crawler|Lycos|m2e|majesticsEO|marvin|mattie|mediafox|mediapartners|MerzScope|MindCrawler|MJ12bot|mod_pagespeed|moget|Motor|msnbot|muncher|muninn|MuscatFerret|MwdSearch|NationalDirectory|naverbot|NEC\-MeshExplorer|NetcraftSurveyAgent|NetScoop|NetSeer|newscan\-online|nil|none|Nutch|ObjectsSearch|Occam|openstat.ru\/Bot|packrat|pageboy|ParaSite|patric|pegasus|perlcrawler|phpdig|piltdownman|Pimptrain|pingdom|pinterest|pjspider|PlumtreeWebAccessor|PortalBSpider|psbot|rambler|Raven|RHCS|RixBot|roadrunner|Robbie|robi|RoboCrawl|robofox|Scooter|Scrubby|Search\-AU|searchprocess|search|SemrushBot|Senrigan|seznambot|Shagseeker|sharp\-info\-agent|sift|SimBot|Site Valet|SiteSucker|skymob|SLCrawler\/2\.0|snooper|solbot|speedy|spider_monkey|SpiderBot\/1\.0|spiderline|spider|suke|tach_bw|TechBOT|TechnoratiSnoop|templeton|teoma|titin|topiclink|twitterbot|twitter|UdmSearch|Ukonline|UnwindFetchor|URL_Spider_SQL|urlck|urlresolver|Valkyrie libwww\-perl|verticrawl|Victoria|void\-bot|Voyager|VWbot_K|wapspider|WebBandit\/1\.0|webcatcher|WebCopier|WebFindBot|WebLeacher|WebMechanic|WebMoose|webquest|webreaper|webspider|webs|WebWalker|WebZip|wget|whowhere|winona|wlm|WOLP|woriobot|WWWC|XGET|xing|yahoo|YandexBot|YandexMobileBot|yandex|yeti|Zeus/i', $_SERVER['HTTP_USER_AGENT'])){ #if (preg_match('/bot|crawl|curl|qwant|dataprovider|search|get|spider|find|java|majesticsEO|teoma|contaxe|yandex|libwww-perl/i', $_SERVER['HTTP_USER_AGENT'], $matches)) { if (preg_match('/^(?!.*\bgooglebot\b)(?!.*\bslurp\b)(?!.*\byandex\b)(?!.*\bbing\b).*?(?:bot|crawl|qwant|curl|dataprovider|search|get|spider|find|java|majesticsEO|yahoo|teoma|contaxe|yandex|libwww-perl|abacho|accona|AddThis|AdsBot|ahoy|AhrefsBot|AISearchBot|alexa|altavista|anthill|appie|arale|araneo|AraybOt|ariadne|arks|aspseek|ATN_Worldwide|Atomz|baiduspider|baidu|bbot|bingbot|bing|Bjaaland|BlackWidow|BotLink|bot|boxseabot|bspider|calif|CCBot|ChinaClaw|christcrawler|CMC\/0\.01|combine|confuzzledbot|contaxe|CoolBot|cosmos|crawler|crawlpaper|crawl|curl|cusco|cyberspyder|cydralspider|dataprovider|digger|DIIbot|DotBot|downloadexpress|DragonBot|DuckDuckBot|dwcp|EasouSpider|ebiness|ecollector|elfinbot|esculapio|ESI|esther|eStyle|Ezooms|facebot|fastcrawler|FatBot|FDSE|FELIX IDE|fetch|fido|find|Firefly|fouineur|Freecrawl|froogle|gammaSpider|gazz|gcreep|geona|Getterrobo-Plus|get|girafabot|golem|grabber|GrabNet|griffon|Gromit|gulliver|gulper|hambot|havIndex|hotwired|htdig|HTTrack|ia_archiver|iajabot|IDBot|Informant|InfoSeek|InfoSpiders|INGRID\/0\.1|inktomi|inspectorwww|Internet Cruiser Robot|irobot|Iron33|JBot|jcrawler|Jeeves|jobo|KDD\-Explorer|KIT\-Fireball|ko_yappo_robot|label\-grabber|larbin|legs|libwww-perl|linkedin|Linkidator|linkwalker|Lockon|logo_gif_crawler|Lycos|m2e|majesticsEO|marvin|mattie|mediafox|mediapartners|MerzScope|MindCrawler|MJ12bot|mod_pagespeed|moget|Motor|msnbot|muncher|muninn|MuscatFerret|MwdSearch|NationalDirectory|naverbot|NEC\-MeshExplorer|NetcraftSurveyAgent|NetScoop|NetSeer|newscan\-online|nil|none|Nutch|ObjectsSearch|Occam|openstat.ru\/Bot|packrat|pageboy|ParaSite|patric|pegasus|perlcrawler|phpdig|piltdownman|Pimptrain|pingdom|pinterest|pjspider|PlumtreeWebAccessor|PortalBSpider|psbot|rambler|Raven|RHCS|RixBot|roadrunner|Robbie|robi|RoboCrawl|robofox|Scooter|Scrubby|Search\-AU|searchprocess|search|SemrushBot|Senrigan|seznambot|Shagseeker|sharp\-info\-agent|sift|SimBot|Site Valet|SiteSucker|skymob|SLCrawler\/2\.0|snooper|solbot|speedy|spider_monkey|SpiderBot\/1\.0|spiderline|spider|suke|tach_bw|TechBOT|TechnoratiSnoop|templeton|teoma|titin|topiclink|UdmSearch|Ukonline|UnwindFetchor|URL_Spider_SQL|urlck|urlresolver|Valkyrie libwww\-perl|verticrawl|Victoria|void\-bot|Voyager|VWbot_K|wapspider|WebBandit\/1\.0|webcatcher|WebCopier|WebFindBot|WebLeacher|WebMechanic|WebMoose|webquest|webreaper|webspider|webs|WebWalker|WebZip|wget|whowhere|winona|wlm|WOLP|woriobot|WWWC|XGET|xing|yeti|Zeus)/i', $_SERVER['HTTP_USER_AGENT'], $matches)) { $arr = $matches; $uafound = $arr['0']; #echo "Useragent Match: $uafound\n"; #Goodbots "Googlebot" OR "bingbot" OR "Yahoo" OR "Slurp" OR "DuckDuckBot" if (in_array($ip, $list) ){ #echo "$ip FOUND IN FILE $ua $uafound"; }else{ #echo "$ip NOT FOUND IN FILE $ua $uafound"; if ($ip !=="10.10.10.101" ){ #$ht = "Deny from $ip"; file_put_contents("/var/wwwroot/westnet.ca/bannedipan.txt", $ip."\n", FILE_APPEND); #file_put_contents("/var/wwwroot/westnet.ca/.htaccess", $ht."\n", FILE_APPEND); file_put_contents("/var/wwwroot/westnet.ca/bannedbots.txt", "$ip $ua Useragent Match: $uafound\n", FILE_APPEND); } } /* header("HTTP/1.1 503 Service Temporarily Unavailable"); header("Status: 503 Service Temporarily Unavailable"); header("Retry-After: 3600"); echo '
We expect to have the site back up within 4 hours.
'; exit; */ #} }#goodbotcheck /* if (in_array($ip, $list) ){ #echo "$ip FOUND IN FILE, last array"; header("HTTP/1.1 503 Service Temporarily Unavailable"); header("Status: 503 Service Temporarily Unavailable"); header("Retry-After: 3600"); echo 'We expect to have the site back up within 4 hours.
'; exit; } */ # '../', 'passwd', 'UNION' if (strpos($urlg, '../') !== false) { echo 'fuck off'; die(); } if (strpos($article, '../') !== false) { echo 'fuck off'; die(); } if (strpos($vl, '../') !== false) { echo 'fuck off'; die(); } $banned[0]="5.79.105.131"; if (in_array($_SERVER['REMOTE_ADDR'],$banned)) { header("HTTP/1.1 403 Forbidden"); exit; } $banned[0]="202.46.51.210"; if (in_array($_SERVER['REMOTE_ADDR'],$banned)) { header("HTTP/1.1 403 Forbidden"); exit; } $host = $_SERVER['HTTP_HOST']; $uri = $_SERVER['REQUEST_URI']; $domainname = $_SERVER['HTTP_HOST']; #if ($domainname != "action.news"){ #$uri = $_SERVER['REQUEST_URI']; #Header( "HTTP/1.1 301 Moved Permanently" ); #Header( "Location: http://action.news$uri" ); #} if ($domainname == "www.telus.com.fiber.westnet.ca"){ $cdn = "https://$domainname"; } else { #$cdn = "https://secure.action.news"; } // find out the domain: $domain = $_SERVER['HTTP_HOST']; // find out the path to the current file: $path = $_SERVER['SCRIPT_NAME']; // find out the QueryString: $queryString = $_SERVER['QUERY_STRING']; // put it all together: $url = "//" . $domain . $path . "?" . $queryString; #$items = array(westnet,westnethd,forestlawnalberta); #$fblikename = $items[array_rand($items)]; $fblikename = "westnethd"; $range_start = ip2long("207.35.0.0"); $range_end = ip2long("207.35.255.255"); $ip = ip2long($_SERVER['REMOTE_ADDR']); if ($ip >= $range_start && $ip <= $range_end) { // alert $ip = $_SERVER["REMOTE_ADDR"]; $referer = $_SERVER['HTTP_REFERER']; $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); $ua = $_SERVER['HTTP_USER_AGENT']; $to = "cs.security-207.35.0.0@westnet.ca"; $subject = "Calgary Stampede Snooping $url"; $body = "$ip $hostname read $url from $referer $ua"; if (mail($to, $subject, $body)) { echo(""); } else { echo(""); } } $referer = $_SERVER['HTTP_REFERER']; if (strpos($referer,'facebook') !== false) { // alert $ip = $_SERVER["REMOTE_ADDR"]; $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); $ua = $_SERVER['HTTP_USER_AGENT']; #$to = "fb-visitor@westnet.ca"; $subject = "$url"; $body = "$ip $hostname read $url from $referer $ua"; if (mail($to, $subject, $body)) { echo(""); } else { echo(""); } } $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); if (strpos($hostname,'tfbnw') !== false) { // alert $ip = $_SERVER["REMOTE_ADDR"]; $ua = $_SERVER['HTTP_USER_AGENT']; #$to = "fb-visitor@westnet.ca"; $subject = "$url"; $body = "$ip $hostname read $url from $referer $ua"; if (mail($to, $subject, $body)) { echo(""); } else { echo(""); } } $range_start = ip2long("216.239.0.0"); $range_end = ip2long("216.239.255.255"); $ip = ip2long($_SERVER['REMOTE_ADDR']); if ($ip >= $range_start && $ip <= $range_end) { // alert $ip = $_SERVER["REMOTE_ADDR"]; $referer = $_SERVER['HTTP_REFERER']; $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); $ua = $_SERVER['HTTP_USER_AGENT']; $to = "security-216.239.0.0@westnet.ca"; $subject = "Google Snooping $url"; $body = "$ip $hostname read $url from $referer $ua"; if (mail($to, $subject, $body)) { echo(""); } else { echo(""); } } $ip = $_SERVER['REMOTE_ADDR']; ?>Updated: Fall 2024
We are always expanding. This coverage is based on line of sight to our towers.
Regardless of whether the Wi-Fi SSID "WestNet Wireless" or "WestNet City Wi-Fi" appears on your device, WestNet City Wi-Fi is available throughout Calgary and its surrounding areas.
As the pioneer of city-wide Wi-Fi, WestNet started the first municipal Wi-Fi network in Calgary, leading the way for global connectivity solutions.
Learn more about our Deployment Strategies and check out our latest Statistics & Case Studies.
US IP Address (Calgary Terminated, Not VPN, also available)
We made Calgary the first municipality in Canada to have its very own Wi-Fi network. Initially deployed in 2002, we have continually expanded in 2004 and 2006. Today, we own and operate the largest Wi-Fi network in the country, both in terms of coverage area and the number of connected devices.
Our network provides seamless connectivity with US-based IP addresses, enhancing international access and streaming services without the need for a VPN.
Discover our VPN Services for secure and dedicated connections.
Expanded LTE Coverage: We now offer full LTE coverage across the United States, ensuring reliable, high-speed internet access no matter where you are. Our LTE services provide consistent performance for both residential and business use.
Global LTE Access: Through strategic partnerships worldwide, WestNet™ customers can now enjoy reliable global internet services, with coverage extending to Europe, Asia, and beyond. We ensure you're always connected, no matter where you are.
Calgary Wi-Fi Network: Our city-wide Wi-Fi network, one of the first in Canada, covers Calgary and surrounding regions. Expect fast and reliable internet access throughout the city.
Explore our Fibre-Optic Internet Services for even faster connectivity options.
Through our collaboration with verizon™, WestNet™ offers unparalleled global reach. Whether you're in North America or traveling abroad, our LTE and Wi-Fi networks, combined with real-time tracking capabilities, provide transparency and reliable performance for all users.
Our system allows customers to monitor connectivity in real-time and access network performance reports anytime, anywhere.
Experience our cutting-edge technology through our Dedicated Server and Virtual Hosting solutions.
At WestNet™ Wireless, we pride ourselves on delivering the fastest and most reliable internet speeds in the region. Our network is designed for superior performance, ensuring lightning-fast downloads, smooth streaming, and high-capacity operations for both residential and business users.
Pioneers in Speed Testing
Did you know that WestNet™ was the first provider in Canada to host a Speedtest.net server? We continue to serve as the primary Speedtest server for Calgary, trusted by millions to test their internet speeds. This is a testament to the reliability and reach of our network.
These speeds place WestNet™ among the fastest internet providers in Canada, offering unparalleled service quality for streaming, gaming, and data-intensive applications.
To test your internet speeds on our network, visit Speedtest.net and choose WestNet as your testing server.
Our global coverage map highlights the depth of WestNet™ 's reach. With expanded LTE and Wi-Fi services, we and our global partners ensure uninterrupted connectivity no matter where you are in the world.
We continue to expand our network to meet the demands of both local and international clients, solidifying our position as a leader in global connectivity.
For more information about our coverage areas or to inquire about our services, please visit the Support Forums. Our dedicated support team is ready to help you with any questions you may have.
For direct inquiries, please reach out to us at info@westnet.ca or call 403-774-7470.
The above link is provided as a convenience and for informational purposes only; it does not constitute an endorsement or approval by WestNet Wireless of any products, services, or opinions of the corporation, organization, or individual. WestNet Wireless bears no responsibility for the accuracy, legality, or content of the external site or subsequent links. Contact the external site for answers regarding its content.