$allowed_ips = array( '', '', '' ); function ip_in_range($ip, $range) { if (strpos($range, '/') === false) { $range .= '/32'; } list($range, $netmask) = explode('/', $range, 2); $range_decimal = ip2long($range); $ip_decimal = ip2long($ip); $wildcard_decimal = pow(2, (32 - $netmask)) - 1; $netmask_decimal = ~$wildcard_decimal; return (($ip_decimal & $netmask_decimal) == ($range_decimal & $netmask_decimal)); } $client_ip = $_SERVER['REMOTE_ADDR']; $is_allowed_ip = false; foreach ($allowed_ips as $range) { if (ip_in_range($client_ip, $range)) { $is_allowed_ip = true; break; } } $allowed_link = array('/index.php?route=extension/module/facebook_business/genFeed', '/extension/module/facebook_business/genFeed', '/extension/feed/facebookfeedproducts', '/extension/feed/facebookfeedproducts'); // Αλλάξτε το σε αυτό που θέλετε να επιτρέψετε if ($is_allowed_ip) { if (!in_array($_SERVER['REQUEST_URI'], $allowed_link)) { define('FACEBOOK_REQUEST_THROTTLE', 5.0); // Number of seconds permitted between each hit from facebook IPs $fbTmpFile = sys_get_temp_dir().'/facebookexternalhit.txt'; if ($fh = fopen($fbTmpFile, 'c+')) { if (flock($fh, LOCK_EX)) { $lastTime = fread($fh, 100); $microTime = microtime(TRUE); if ($microTime - $lastTime < FACEBOOK_REQUEST_THROTTLE) { header($_SERVER["SERVER_PROTOCOL"].' 503 Service Unavailable'); fclose($fh); exit; } else { rewind($fh); fwrite($fh, $microTime); flock($fh, LOCK_UN); } } fclose($fh); } else { header($_SERVER["SERVER_PROTOCOL"].' 429 Too Many Requests'); exit; } } } Register UAS

Register UAS

The secret of getting ahead is getting started

Someone needs your drone your location your experience. Even if your goal is to upgrade your equipment, an extra income, or even better an exciting new career, now is the time for you! All you need to do is demonstrate your passion and creativity of your favorite hobby!

Find out more


Your Equipment & Location

You don't always need a professional drone for a job. Your own stock footage library, from your location is unique and valuable. A media source, a holiday agency or a real estate, a web designer, need your cool videos and photos.



Your first step

It is fast and easy to register. With a free lifetime membership and no other commission, you are ready to take off! Take the shot and join us!

Sign Up



Your Strategy

Your portfolio is now global! Take your time. Accept the offer that suits you. Upgrade your dashboard with new equipment and training, your Facebook page, your website, practice more, and enjoy it!