CINXE.COM
GDPR Blocking (PHP Edition) - DonationCoder.com
<!DOCTYPE html><html lang="en-gb" dir="ltr"> <head> <link rel="stylesheet" type="text/css" href="https://www.donationcoder.com/forum/Themes/dc2/css/index.css?fin20" /> <link rel="stylesheet" type="text/css" href="https://www.donationcoder.com/forum/Themes/default/css/ie7.css" /><link rel="stylesheet" type="text/css" href="/shared/css/dcsocial.css?v15"/><link href="/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" /> <script type="text/javascript" src="https://www.donationcoder.com/forum/Themes/default/scripts/script.js?fin20"></script> <script type="text/javascript" src="https://www.donationcoder.com/forum/Themes/dc2/scripts/theme.js?fin20"></script> <script type="text/javascript"><!-- // --><![CDATA[ var smf_theme_url = "https://www.donationcoder.com/forum/Themes/dc2"; var smf_default_theme_url = "https://www.donationcoder.com/forum/Themes/default"; var smf_images_url = "https://www.donationcoder.com/forum/Themes/dc2/images"; var smf_scripturl = "https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&"; var smf_iso_case_folding = false; var smf_charset = "UTF-8"; var ajax_notification_text = "Loading..."; var ajax_notification_cancel_text = "Cancel"; // ]]></script> <script type="text/javascript" src="https://www.donationcoder.com/forum/Themes/dc2/scripts/dcmods.js?fin20"></script> <meta property="og:image" content="https://www.donationcoder.com/forum/Themes/dc2/images/dc/dcfacebook.jpg" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="description" content="GDPR Blocking (PHP Edition) - DonationCoder.com" /> <meta name="keywords" content="Software, Freeware, Review, Donationware, Shareware, Windows, Screenshot" /> <title>GDPR Blocking (PHP Edition) - DonationCoder.com</title> <link rel="canonical" href="https://www.donationcoder.com/forum/index.php?topic=45495.0" /> <link rel="help" href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=help" /> <link rel="search" href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=search" /> <link rel="contents" href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&" /> <link rel="alternate" type="application/rss+xml" title="DonationCoder.com Forum - RSS" href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&type=rss;action=.xml" /> <link rel="prev" href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&topic=45495.0;prev_next=prev" /> <link rel="next" href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&topic=45495.0;prev_next=next" /> <link rel="index" href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&board=53.0" /> <link rel="stylesheet" type="text/css" id="spoiler_css" href="https://www.donationcoder.com/forum/Themes/default/css/spoiler.css" /> <script type="text/javascript" src="https://www.donationcoder.com/forum/Themes/default/scripts/captcha.js"></script><link href="/modules/mod_jux_megamenucss3/assets/css/style.css" rel="stylesheet" /> <link href="/modules/mod_jux_megamenucss3/assets/css/yoo.tp.css" rel="stylesheet" /> <link href="/modules/mod_jux_megamenucss3/assets/css/animate.css" rel="stylesheet" /> <link href="/modules/mod_jux_megamenucss3/assets/css/jux-font-awesome.css" rel="stylesheet" /> <link href="/modules/mod_jux_megamenucss3/assets/css/off-canvas.css" rel="stylesheet" /> <link href="/modules/mod_jux_megamenucss3/assets/css/style_responsive.css" rel="stylesheet" /> <link href="/modules/mod_jux_megamenucss3/assets/css/style/custom-120.css" rel="stylesheet" /> <style> h1, h2, h3, h4, h5, h6, .site-title { font-family: 'Open Sans', sans-serif; } body.site { border-top: 3px solid #0088cc; background-color: #f4f6f7; } a { color: #0088cc; } .nav-list > .active > a, .nav-list > .active > a:hover, .dropdown-menu li > a:hover, .dropdown-menu .active > a, .dropdown-menu .active > a:hover, .nav-pills > .active > a, .nav-pills > .active > a:hover, .btn-primary { background: #0088cc; } #js-mainnavcss3 ul.megamenu li.haschild.megacss3:hover > div.childcontent.adddropdown,#js-meganav-off-canvas .childcontent.open > .dropdown-menu,#jux_megamenucss3 .childcontent.open > .dropdown-menu { opacity: 1; visibility: visible; display:block!important; -moz-animation:fadeInDown 300ms ease-in ; -webkit-animation:fadeInDown 300ms ease-in ; animation:fadeInDown 300ms ease-in ; } </style> <script src="/media/jui/js/jquery.min.js"></script> <script src="/modules/mod_jux_megamenucss3/assets/js/headroom.js"></script> <script src="/modules/mod_jux_megamenucss3/assets/js/navAccordion.js"></script> <script type="text/javascript" src="https://www.donationcoder.com/forum/Themes/default/Highslide/highslide.js"></script> <script type="text/javascript" src="https://www.donationcoder.com/forum/Themes/default/Highslide/highslide.english-utf8.js"></script> <link rel="stylesheet" type="text/css" href="https://www.donationcoder.com/forum/Themes/default/Highslide/highslide.css" media="screen" /> <script type="text/javascript"> hs.graphicsDir = "https://www.donationcoder.com/forum/Themes/default/Highslide/"; hs.outlineType = "rounded-white"; hs.captionEval = "this.thumb.alt"; hs.transitions = ["expand", "crossfade"]; hs.numberOfImagesToPreload = 5; hs.dimmingOpacity = 0.1; hs.fadeInOut = false; hs.align = "center"; hs.showCredits = false; hs.creditsText = ""; hs.creditsHref = ""; hs.creditsTitle = ""; if (hs.addSlideshow) hs.addSlideshow({ interval: 5000, repeat: false, useControls: true, fixedControls: false, overlayOptions: { opacity: 1, position: "top right", hideOnMouseOut: false } }); </script> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-2403417-1']); _gaq.push(['_setDomainName', 'donationcoder.com']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> <link rel="stylesheet" type="text/css" href="https://www.donationcoder.com/forum/Themes/dc2/css/dcjmegamenu.css?v15" /><link rel="stylesheet" type="text/css" href="/shared/css/dcblogs.css?v15" /><link rel="stylesheet" type="text/css" href="/shared/css/dcstyles.css?v15" /><link rel="stylesheet" type="text/css" href="https://www.donationcoder.com/forum/Themes/dc2/css/dcmods.css?v15" /><link rel="stylesheet" type="text/css" href="https://www.donationcoder.com/forum/Themes/dc2/css/dcresponsive.css?v15" /><meta name="viewport" content="width=device-width, initial-scale=1" /> </head> <body><div id="dcabovebanner" class="dcabovebanner"> <div class=" mainNavOff js-megamenu-off-canvas clearfix" id="js-meganav-off-canvas"><div class="jux-closed"><i class="jux-fa jux-fa-times"></i></div> <ul class="megamenu wtf-menu level0"><li class="megacss3 first submenu-align-auto"><a href="/" class="megacss3 first hasTip menu102" ><span class="menu-title ">Home</span></a></li><li class="megacss3 submenu-align-auto"><a href="/forum" class="megacss3 hasTip menu108 active" ><span class="menu-title ">Forum</span></a></li><li class="megacss3 haschild submenu-align-auto"><a href="/software" class="megacss3 haschild hasTip menu104" ><span class="menu-title ">Software</span></a><div style='0' class="childcontent clearfix adddropdown cols1 "> <div class="childcontent-inner-wrap dropdown-menu"> <div class="childcontent-inner clearfix" style="width: 200px;"><div class="megacol menu-1 column1 first" style="width: 200px;"><ul class="megamenu wtf-menu level1"><li class="megacss3 first submenu-align-auto"><a href="/software/mouser" class="megacss3 first hasTip menu154" ><span class="menu-title ">Mouser's Software</span></a></li><li class="megacss3 submenu-align-left"><a href="/software/nany-new-apps-for-the-new-year" class="megacss3 hasTip menu316" ><span class="menu-title ">NANY: New Apps for the New Year</span></a></li><li class="megacss3 submenu-align-auto"><a href="/software/friends-of-dc" class="megacss3 hasTip menu417" ><span class="menu-title ">Friends of DC</span></a></li><li class="megacss3 last submenu-align-auto"><a href="/software/coding-snacks" class="megacss3 last hasTip menu112" ><span class="menu-title ">Forum Coding Snacks</span></a></li></ul></div></div> </div></div></li><li class="megacss3 haschild submenu-align-auto"><a href="/editorials" class="megacss3 haschild hasTip menu423" ><span class="menu-title ">Editorials</span></a><div style='0' class="childcontent clearfix adddropdown cols1 "> <div class="childcontent-inner-wrap dropdown-menu"> <div class="childcontent-inner clearfix" style="width: 200px;"><div class="megacol menu-1 column1 first" style="width: 200px;"><ul class="megamenu wtf-menu level1"><li class="megacss3 first submenu-align-auto"><a href="/editorials/blog" class="megacss3 first hasTip menu105" ><span class="menu-title ">Daily Blog</span></a></li><li class="megacss3 submenu-align-auto"><a href="/editorials/newsletter" class="megacss3 hasTip menu376" ><span class="menu-title ">Monthly Newsletter</span></a></li><li class="megacss3 submenu-align-auto"><a href="/editorials/mini-reviews" class="megacss3 hasTip menu313" ><span class="menu-title ">Mini Reviews</span></a></li><li class="megacss3 last submenu-align-auto"><a href="/editorials/our-favorite-websites" class="megacss3 last hasTip menu331" ><span class="menu-title ">Favorite Websites</span></a></li></ul></div></div> </div></div></li><li class="megacss3 haschild submenu-align-auto"><a href="/archives" class="megacss3 haschild hasTip menu106" ><span class="menu-title ">Archives</span></a><div style='0' class="childcontent clearfix adddropdown cols1 "> <div class="childcontent-inner-wrap dropdown-menu"> <div class="childcontent-inner clearfix" style="width: 200px;"><div class="megacol menu-1 column1 first" style="width: 200px;"><ul class="megamenu wtf-menu level1"><li class="megacss3 first submenu-align-auto"><a href="/archives/articles" class="megacss3 first hasTip menu123" ><span class="menu-title ">Articles</span></a></li><li class="megacss3 submenu-align-auto"><a href="/archives/historical-archives" class="megacss3 hasTip menu305" ><span class="menu-title ">Historical Archives</span></a></li><li class="megacss3 last submenu-align-auto"><a href="/archives/testimonials-about-us" class="megacss3 last hasTip menu398" ><span class="menu-title ">Testimonials: What Folks Say About Us</span></a></li></ul></div></div> </div></div></li><li class="megacss3 haschild submenu-align-auto"><a href="/licensing" class="megacss3 haschild hasTip menu261" ><span class="menu-title ">Licensing</span></a><div style='0' class="childcontent clearfix adddropdown cols1 "> <div class="childcontent-inner-wrap dropdown-menu"> <div class="childcontent-inner clearfix" style="width: 200px;"><div class="megacol menu-1 column1 first" style="width: 200px;"><ul class="megamenu wtf-menu level1"><li class="megacss3 first submenu-align-auto"><a href="/licensing/get-a-license-key" class="megacss3 first hasTip menu309" ><span class="menu-title ">Get a License Key</span></a></li><li class="megacss3 last submenu-align-auto"><a href="/licensing/commercial" class="megacss3 last hasTip menu265" ><span class="menu-title ">Commercial Licensing</span></a></li></ul></div></div> </div></div></li><li class="megacss3 haschild submenu-align-auto"><a href="/help" class="megacss3 haschild hasTip menu231" ><span class="menu-title ">Help</span></a><div style='0' class="childcontent clearfix adddropdown cols1 "> <div class="childcontent-inner-wrap dropdown-menu"> <div class="childcontent-inner clearfix" style="width: 200px;"><div class="megacol menu-1 column1 first" style="width: 200px;"><ul class="megamenu wtf-menu level1"><li class="megacss3 first submenu-align-auto"><a href="/help/search" class="megacss3 first hasTip menu263" ><span class="menu-title ">Search</span></a></li><li class="megacss3 submenu-align-auto"><a href="/help/faqs" class="megacss3 hasTip menu117" ><span class="menu-title ">FAQs</span></a></li><li class="megacss3 submenu-align-auto"><a href="/help/sitemap" class="megacss3 hasTip menu409" ><span class="menu-title ">DonationCoder Sitemap</span></a></li><li class="megacss3 submenu-align-auto"><a href="/help/live-chat-discord" class="megacss3 hasTip menu807" ><span class="menu-title ">Live Chat (Discord)</span></a></li><li class="megacss3 submenu-align-auto"><a href="/help/contact-us" class="megacss3 hasTip menu224" ><span class="menu-title ">Contact Us</span></a></li><li class="megacss3 last submenu-align-auto"><a href="/help/about" class="megacss3 last hasTip menu109" ><span class="menu-title ">About Us</span></a></li></ul></div></div> </div></div></li><li class="megacss3 last submenu-align-auto"><a href="/donate" class="megacss3 last hasTip menu107" ><span class="menu-title ">Donate</span></a></li></ul> </div><div id="jux_megamenucss3" class="none"> <div id="js-mainnavcss3" class="clearfix megamenu horizontal left sticky_center down noJS"> <div id="css3-megaMenuToggle" class="megaMenuToggle "> <i class="jux-fa jux-fa-bars"></i> </div> <div class=" mainNavDR js-megamenu container clearfix" id="js-meganav"> <ul class="megamenu wtf-menu level0"><li class="megacss3 first submenu-align-auto"><a href="/" class="megacss3 first hasTip menu102" ><span class="menu-title ">Home</span></a></li><li class="megacss3 submenu-align-auto"><a href="/forum" class="megacss3 hasTip menu108 active" ><span class="menu-title ">Forum</span></a></li><li class="megacss3 haschild submenu-align-auto"><a href="/software" class="megacss3 haschild hasTip menu104" ><span class="menu-title ">Software</span></a><div style='0' class="childcontent clearfix adddropdown cols1 "> <div class="childcontent-inner-wrap dropdown-menu"> <div class="childcontent-inner clearfix" style="width: 200px;"><div class="megacol menu-1 column1 first" style="width: 200px;"><ul class="megamenu wtf-menu level1"><li class="megacss3 first submenu-align-auto"><a href="/software/mouser" class="megacss3 first hasTip menu154" ><span class="menu-title ">Mouser's Software</span></a></li><li class="megacss3 submenu-align-left"><a href="/software/nany-new-apps-for-the-new-year" class="megacss3 hasTip menu316" ><span class="menu-title ">NANY: New Apps for the New Year</span></a></li><li class="megacss3 submenu-align-auto"><a href="/software/friends-of-dc" class="megacss3 hasTip menu417" ><span class="menu-title ">Friends of DC</span></a></li><li class="megacss3 last submenu-align-auto"><a href="/software/coding-snacks" class="megacss3 last hasTip menu112" ><span class="menu-title ">Forum Coding Snacks</span></a></li></ul></div></div> </div></div></li><li class="megacss3 haschild submenu-align-auto"><a href="/editorials" class="megacss3 haschild hasTip menu423" ><span class="menu-title ">Editorials</span></a><div style='0' class="childcontent clearfix adddropdown cols1 "> <div class="childcontent-inner-wrap dropdown-menu"> <div class="childcontent-inner clearfix" style="width: 200px;"><div class="megacol menu-1 column1 first" style="width: 200px;"><ul class="megamenu wtf-menu level1"><li class="megacss3 first submenu-align-auto"><a href="/editorials/blog" class="megacss3 first hasTip menu105" ><span class="menu-title ">Daily Blog</span></a></li><li class="megacss3 submenu-align-auto"><a href="/editorials/newsletter" class="megacss3 hasTip menu376" ><span class="menu-title ">Monthly Newsletter</span></a></li><li class="megacss3 submenu-align-auto"><a href="/editorials/mini-reviews" class="megacss3 hasTip menu313" ><span class="menu-title ">Mini Reviews</span></a></li><li class="megacss3 last submenu-align-auto"><a href="/editorials/our-favorite-websites" class="megacss3 last hasTip menu331" ><span class="menu-title ">Favorite Websites</span></a></li></ul></div></div> </div></div></li><li class="megacss3 haschild submenu-align-auto"><a href="/archives" class="megacss3 haschild hasTip menu106" ><span class="menu-title ">Archives</span></a><div style='0' class="childcontent clearfix adddropdown cols1 "> <div class="childcontent-inner-wrap dropdown-menu"> <div class="childcontent-inner clearfix" style="width: 200px;"><div class="megacol menu-1 column1 first" style="width: 200px;"><ul class="megamenu wtf-menu level1"><li class="megacss3 first submenu-align-auto"><a href="/archives/articles" class="megacss3 first hasTip menu123" ><span class="menu-title ">Articles</span></a></li><li class="megacss3 submenu-align-auto"><a href="/archives/historical-archives" class="megacss3 hasTip menu305" ><span class="menu-title ">Historical Archives</span></a></li><li class="megacss3 last submenu-align-auto"><a href="/archives/testimonials-about-us" class="megacss3 last hasTip menu398" ><span class="menu-title ">Testimonials: What Folks Say About Us</span></a></li></ul></div></div> </div></div></li><li class="megacss3 haschild submenu-align-auto"><a href="/licensing" class="megacss3 haschild hasTip menu261" ><span class="menu-title ">Licensing</span></a><div style='0' class="childcontent clearfix adddropdown cols1 "> <div class="childcontent-inner-wrap dropdown-menu"> <div class="childcontent-inner clearfix" style="width: 200px;"><div class="megacol menu-1 column1 first" style="width: 200px;"><ul class="megamenu wtf-menu level1"><li class="megacss3 first submenu-align-auto"><a href="/licensing/get-a-license-key" class="megacss3 first hasTip menu309" ><span class="menu-title ">Get a License Key</span></a></li><li class="megacss3 last submenu-align-auto"><a href="/licensing/commercial" class="megacss3 last hasTip menu265" ><span class="menu-title ">Commercial Licensing</span></a></li></ul></div></div> </div></div></li><li class="megacss3 haschild submenu-align-auto"><a href="/help" class="megacss3 haschild hasTip menu231" ><span class="menu-title ">Help</span></a><div style='0' class="childcontent clearfix adddropdown cols1 "> <div class="childcontent-inner-wrap dropdown-menu"> <div class="childcontent-inner clearfix" style="width: 200px;"><div class="megacol menu-1 column1 first" style="width: 200px;"><ul class="megamenu wtf-menu level1"><li class="megacss3 first submenu-align-auto"><a href="/help/search" class="megacss3 first hasTip menu263" ><span class="menu-title ">Search</span></a></li><li class="megacss3 submenu-align-auto"><a href="/help/faqs" class="megacss3 hasTip menu117" ><span class="menu-title ">FAQs</span></a></li><li class="megacss3 submenu-align-auto"><a href="/help/sitemap" class="megacss3 hasTip menu409" ><span class="menu-title ">DonationCoder Sitemap</span></a></li><li class="megacss3 submenu-align-auto"><a href="/help/live-chat-discord" class="megacss3 hasTip menu807" ><span class="menu-title ">Live Chat (Discord)</span></a></li><li class="megacss3 submenu-align-auto"><a href="/help/contact-us" class="megacss3 hasTip menu224" ><span class="menu-title ">Contact Us</span></a></li><li class="megacss3 last submenu-align-auto"><a href="/help/about" class="megacss3 last hasTip menu109" ><span class="menu-title ">About Us</span></a></li></ul></div></div> </div></div></li><li class="megacss3 last submenu-align-auto"><a href="/donate" class="megacss3 last hasTip menu107" ><span class="menu-title ">Donate</span></a></li></ul> </div> </div> </div> <script type="text/javascript"> jQuery(document).ready(function ($) { $("#css3-megaMenuToggle").click(function () { // Menu on mobile if(document.body.offsetWidth < 769){ if ((!$('.jux-custom-css').hasClass('jux-custom-css'))) { if ($('.js-megamenu-off-canvas').hasClass('mainNavOff')) { jQuery('.mainNavOff').navAccordion({ expandButtonText: '<i class="jux-fa jux-fa-angle-down "></i>', //Text inside of buttons can be HTML collapseButtonText: '<i class="jux-fa jux-fa-angle-up "></i>' }); }else { jQuery('.mainNavDR').navAccordion({ expandButtonText: '<i class="jux-fa jux-fa-angle-down "></i>', //Text inside of buttons can be HTML collapseButtonText: '<i class="jux-fa jux-fa-angle-up "></i>' }); } } } // end menu on mobile $("body").toggleClass("offcanvas-menu"); $("html").toggleClass("offcanvas"); $(".js-megamenu").toggleClass("dropdown1"); $(".js-megamenu").toggleClass("dropdown"); $('.childcontent').removeClass('adddropdown'); $('.jux-custom-css').addClass('accordion-btn-wrap'); if (!$('#css3-megaMenuToggle').hasClass('offcanvas-menu')) { $('.js-megamenu-off-canvas').css('height', window.innerHeight + 'px'); $(window).resize(function () { $('.js-megamenu-off-canvas').css('height', window.innerHeight + 'px'); }) } }); $(".jux-closed").click(function () { $("body").removeClass("offcanvas-menu"); $("html").removeClass("offcanvas"); }); $(window).resize(function () { if (document.body.offsetWidth > 768) { $('body').removeClass('offcanvas-menu'); $('html').removeClass('offcanvas'); $('.js-megamenu').removeClass('dropdown1'); $('.jux-custom-css').removeClass('accordion-btn-wrap'); $('.childcontent').addClass('adddropdown'); } else { /*$('.childcontent').removeClass('adddropdown');*/ } }); }); </script> </div> <!-- end dcabovebanner --><div id="forum_topbanner_outer" class="dcbannerouter"><a href="/forum"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/dc/banners/forum_default.jpg" alt="topbanner_forum" height="41"/></a> <div class="toprightbar"> <form id="search_form" action="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=search2" method="post" accept-charset="UTF-8"> <input type="text" name="search" value="" class="input_text" /> <select name="search_focus" id="search_focus" class="responsive1"> <option value="topic">This topic</option> <option value="board">This board</option> <option value="all" selected="selected" style="font-weight: bold;" id="search_focus_all">Entire forum</option> <option value="google">Website and forum (google)</option> <option value="member" >Member search</option> </select> <script type="text/javascript"><!-- // --><![CDATA[ var curBoard = 53; var curTopic = 45495; var focusBoards = new Array(); // ]]></script> <script type="text/javascript" src="https://www.donationcoder.com/forum/Themes/default/scripts/SearchFocus.js"></script> <input type="submit" name="submit" value="Search" class="button_submit" /> <input type="hidden" name="advanced" value="0" /> <input type="hidden" name="topic" value="45495" /><img id="upshrink" class="responsive3" src="https://www.donationcoder.com/forum/Themes/dc2/images/upshrink.png" alt="*" title="Shrink or expand the header."/></form></div></div><div id="wrapper"> <div id="headerdcouter"> <div id="headerdc"><div class="frame"> <div id="top_sectiondc"> </div> <div id="upper_section" class="middletext"> <div class="user"><p class="avatar responsive3"><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=register" title="click to register on the forum"><img src = "https://www.donationcoder.com/forum/Themes/dc2/images/theme/noavatar.jpg" alt="avatar image"/></a></p> <script type="text/javascript" src="https://www.donationcoder.com/forum/Themes/default/scripts/sha1.js"></script> <form id="guest_form" action="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=login2" method="post" accept-charset="UTF-8" onsubmit="hashLoginPassword(this, '7c6c9455890a3db95623a768c1308728');"> <div class="info">Welcome, <strong>Guest</strong>. Please <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=login">login</a> or <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=register">register</a>.<br />Did you miss your <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=activate">activation email</a>?</div> <input type="text" name="user" size="10" class="input_text" /> <input type="password" name="passwrd" size="10" class="input_password" /> <select name="cookielength"> <option value="60">1 Hour</option> <option value="1440">1 Day</option> <option value="10080">1 Week</option> <option value="43200">1 Month</option> <option value="259200" selected="selected">6 Months </option> <option value="-1">Forever</option> </select> <input type="submit" value="Login" class="button_submit" /><br /> <div class="info">Login with username, password and session length</div> <input type="hidden" name="hash_passwrd" value="" /><input type="hidden" name="a2aa415" value="7c6c9455890a3db95623a768c1308728" /> </form> </div> <div class="news normaltext"> <div class="dc_uprightinfo responsive1"><ul class="dc_uprightinfo"><li><b>Friday January 24, 2025, 7:12 pm</b> </li><li>Proudly celebrating 15+ years online. </li><li><a href="/donate" class="emphasizelink">Donate now</a> to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs. </li><li><a href="/donate"><img class="headlinedonatebutton" src="https://www.donationcoder.com/forum/Themes/dc2/images/dc/paypaldonateblue.gif" alt="donate"/></a> </li></ul></div> </div> </div></div> <script type="text/javascript"><!-- // --><![CDATA[ var oMainHeaderToggle = new smc_Toggle({ bToggleEnabled: true, bCurrentlyCollapsed: false, aSwappableContainers: [ 'upper_section' ], aSwapImages: [ { sId: 'upshrink', srcExpanded: smf_images_url + '/upshrink.png', altExpanded: 'Shrink or expand the header.', srcCollapsed: smf_images_url + '/upshrink2.png', altCollapsed: 'Shrink or expand the header.' } ], oThemeOptions: { bUseThemeSettings: false, sOptionName: 'collapse_header', sSessionVar: 'a2aa415', sSessionId: '7c6c9455890a3db95623a768c1308728' }, oCookieOptions: { bUseCookie: true, sCookieName: 'upshrink' } }); // ]]></script> <div id="main_menu"> <ul class="dropmenu" id="menu_nav"> <li id="button_home"> <a class="active firstlevel" href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&"> <span class="last firstlevel">Forum Home</span> </a> </li> <li id="button_search"> <a class="firstlevel" href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=search"> <span class="firstlevel">Search</span> </a> </li> <li id="button_login"> <a class="firstlevel" href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=login"> <span class="firstlevel">Login</span> </a> </li> <li id="button_register"> <a class="firstlevel" href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=register"> <span class="last firstlevel">Register</span> </a> </li> <li id="button_recent"> <a class="firstlevel" href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=rtopics"> <span class="last firstlevel">Recent Topics</span> </a> </li> <li id="button_goto"> <a class="firstlevel" href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=goto"> <span class="last firstlevel">Go To..</span> </a> <ul> <li> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=rtopics"> <span>Recently updated topics</span> </a> </li> <li> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=recent;dense"> <span>Recent posts (compact)</span> </a> </li> <li> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=recent"> <span>Recent posts (full text)</span> </a> </li> </ul> </li> </ul> </div> <br class="clear" /> </div></div> <div id="content_section"><div class="frame"> <div id="main_content_section"> <div class="navigate_section"> <ul> <li> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&"><span>DonationCoder.com Forum</span></a> » </li> <li> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&#c3"><span>DonationCoder.com Software</span></a> » </li> <li> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&board=53.0"><span>DC Member Programs and Projects</span></a> » </li> <li class="last"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&topic=45495.0"><span>GDPR Blocking (PHP Edition)</span></a> </li> </ul> </div> <a id="top"></a> <a id="msg419746"></a> <div class="pagesection"> <div class="nextlinks"><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&topic=45495.0;prev_next=prev#new">« previous</a> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&topic=45495.0;prev_next=next#new">next »</a></div> <div class="buttonlist floatright"> <ul> <li><a class="button_strip_new_topic" href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=post;board=53.0"><span>New Topic</span></a></li> <li><a class="button_strip_print" href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=printpage;topic=45495.0" target="_blank" rel="nofollow"><span class="last">Print</span></a></li> </ul> </div> <div class="pagelinks floatleft">Pages: [<strong>1</strong>] • <a href="#lastPost">bottom</a></div> </div> <div id="forumposts"> <div class="cat_bar dc_lowerpad"> <h3 class="catbg"> <img src="https://www.donationcoder.com/forum/Themes/dc2/images/topic/hot_post.gif" align="bottom" alt="" /> <span id="author">Author</span> Topic: GDPR Blocking (PHP Edition) (Read 47819 times)</h3> </div> <form action="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=quickmod2;topic=45495.0" method="post" accept-charset="UTF-8" name="quickModForm" id="quickModForm" style="margin: 0;" onsubmit="return oQuickModify.bInEditMode ? oQuickModify.modifySave('7c6c9455890a3db95623a768c1308728', 'a2aa415') : false"> <div class="windowbg dcpost"> <span class="topslice dctopslice"><span></span></span> <div class="post_wrapper"> <div class="poster"> <h4> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=49822" title="View the profile of Tuxman">Tuxman</a> </h4> <div class="posterextras responsive2"> <ul class="reset smalltext" id="msg_419746_extra_info"> <li class="membergroup">Supporting Member</li><li>Joined in 2006</li> <li class="stars"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/star.gif" alt="*" /><img src="https://www.donationcoder.com/forum/Themes/dc2/images/star.gif" alt="*" /></li> <li class="avatar"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=49822"> <img class="avatar" src="/forum/useravatars/avatar_49822.png" alt="" /> </a> </li> <li class="postcount">Posts: <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;area=showposts;u=49822" rel="nofollow" >2,516</a></li> <li class="profile"> <ul> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=49822"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/icons/profile_sm.gif" alt="View Profile" title="View Profile" /></a></li> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=dlist;sa=search;fields=uid;search=49822"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/dc/dcgoldcoin.gif" alt="Donate to Member" title="Donate to Member" border="0" /></a></li> </ul> </li><li><ul><li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=badges;show=nanyx7" title="Seven NANY Badges"><img src="https://www.donationcoder.com/shared/images/badges/newnany/nany16x16_07.gif" alt="" class="bbc_img" /></a></li></ul></li> </ul> </div> <!-- end posterextras --> </div> <div class="postarea"> <div class="flow_hidden"> <div class="keyinfo"> <div class="messageicon responsive2"> <img src="https://www.donationcoder.com/forum/Themes/dc2/images/post/xx.gif" alt="" /> </div> <h5 id="subject_419746"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&topic=45495.msg419746#msg419746" rel="nofollow">GDPR Blocking (PHP Edition)</a> </h5> <div class="smalltext">« <strong> on:</strong> May 04, 2018, 05:27 AM »</div> <div id="msg_419746_quick_mod"></div> </div> </div> <div class="post"> <div class="inner" id="msg_419746">There is an <a href="https://gdpr-shield.io/" class="bbc_link" target="_blank" title="https://gdpr-shield.io/">expensive web service</a> that makes your website GDPR-compliant by adding a JavaScript that redirects visitors from the EU to an error page.<br /><br />This is my attempt to provide a simple <strong>and free</strong> PHP script for those who want to achieve the same result on server side.<br /><br /><div class="codeheader">Code: PHP<a href="javascript:void(0);" onclick="return smfSelectText(this);" class="codeoperation"> [Select]</a></div><div class="php geshi" style="font-family:monospace;"><ol><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;"><?php</span></div></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;">/*</span></div></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> Copyright 漏 2018 tux. <<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b8dfd1ccf8cccdc0c8cad7d2dddbcc96dcdd">[email protected]</a>></span></div></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> This work is free. You can redistribute it and/or modify it under the</span></div></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> terms of the Do What The Fuck You Want To Public License, Version 2,</span></div></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.</span></div></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> </div></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> GDPR SHIELD [PHP draft v1]</span></div></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> </div></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> Prerequisites:</span></div></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> * PHP</span></div></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> * GeoIP as described here: http://php.net/manual/en/geoip.requirements.php</span></div></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> </div></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> Usage:</span></div></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> <?php require("gdprshield.php"); ?></span></div></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> <!doctype html></span></div></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> <html></span></div></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> ...</span></div></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> </html></span></div></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;">*/</span></div></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$disallowed_countries</span> <span style="color: #339933;">=</span> <span style="color: #009900;">[</span><span style="color: #0000ff;">"BE"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"BG"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"CZ"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"DK"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"DE"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"EE"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"IE"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"EL"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"ES"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"FR"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"HR"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"IT"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"CY"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"LV"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"LT"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"LU"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"HU"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"MT"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"NL"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"AT"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"PL"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"PT"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"RO"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"SI"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"SK"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"FI"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"SE"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"UK"</span><span style="color: #009900;">]</span><span style="color: #339933;">;</span></div></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$ip</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">[</span><span style="color: #0000ff;">"REMOTE_ADDR"</span><span style="color: #009900;">]</span><span style="color: #339933;">;</span></div></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">(</span><a href="http://www.php.net/in_array"><span style="color: #990000;">in_array</span></a><span style="color: #009900;">(</span>geoip_country_code_by_name<span style="color: #009900;">(</span><span style="color: #000088;">$ip</span><span style="color: #009900;">)</span><span style="color: #339933;">,</span> <span style="color: #000088;">$disallowed_countries</span><span style="color: #009900;">)</span><span style="color: #009900;">)</span> <span style="color: #009900;">{</span></div></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> <a href="http://www.php.net/die"><span style="color: #990000;">die</span></a><span style="color: #009900;">(</span><span style="color: #0000ff;">"Your country does not want you to be here."</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span></div></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> </div></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> <span style="color: #666666; font-style: italic;">/*</span></div></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> The above code displays a plain error text.</span></div></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> If you prefer to redirect to a full-featured HTML page,</span></div></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> you could delete it and use a Location header instead:</span></div></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> */</span></div></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> <a href="http://www.php.net/header"><span style="color: #990000;">header</span></a><span style="color: #009900;">(</span><span style="color: #0000ff;">"Location: GDPR_blocked.php"</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">451</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span></div></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">}</span></div></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">?></span></div></li></ol></div><br />Enjoy. And feel free to extend/fix/implement it as you wish.</div> </div> </div> <div class="moderatorbar"> <!--<hr/>--> <div class="smalltext modified" id="modified_419746"> « <em>Last Edit: May 04, 2018, 09:53 AM by Tuxman, Reason: enhanced redirection </em> » </div> <div class="smalltext reportlinks"> </div> </div> </div> <span class="botslice dctopslice"><span></span></span> </div> <div class="dcpost_separator"></div><hr class="post_separator" /><div class="dcpost_separator"></div> <a id="msg419749"></a> <div class="windowbg2 dcpost2"> <span class="topslice dctopslice"><span></span></span> <div class="post_wrapper"> <div class="poster"> <h4> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=2" title="View the profile of mouser">mouser</a> </h4> <div class="posterextras responsive2"> <ul class="reset smalltext" id="msg_419749_extra_info"> <li class="title">First Author</li> <li class="membergroup">Administrator</li><li>Joined in 2005</li> <li class="stars"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/staradmin.gif" alt="*" /><img src="https://www.donationcoder.com/forum/Themes/dc2/images/staradmin.gif" alt="*" /><img src="https://www.donationcoder.com/forum/Themes/dc2/images/staradmin.gif" alt="*" /><img src="https://www.donationcoder.com/forum/Themes/dc2/images/staradmin.gif" alt="*" /><img src="https://www.donationcoder.com/forum/Themes/dc2/images/staradmin.gif" alt="*" /></li> <li class="avatar"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=2"> <img class="avatar" src="/forum/useravatars/avatar_2.gif" alt="" /> </a> </li> <li class="postcount">Posts: <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;area=showposts;u=2" rel="nofollow" >40,922</a></li> <li class="profile"> <ul> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=2"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/icons/profile_sm.gif" alt="View Profile" title="View Profile" /></a></li><li><a href="https://www.donationcoder.com/software/mouser" title="Mouser's Software Zone on DonationCoder.com - http://www.donationcoder.com/software/mouser" target="_blank" class="new_win" rel="noopener noreferrer"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/www_sm.gif" alt="Mouser's Software Zone on DonationCoder.com" /></a></li><li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=2#biog"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/icons/bio.gif" alt="Read more about this member." title="Read more about this member." border="0" /></a></li> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=dlist;sa=search;fields=uid;search=2"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/dc/dcgoldcoin.gif" alt="Donate to Member" title="Donate to Member" border="0" /></a></li> </ul> </li><li><ul><li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=badges;show=gathering" title="gathering badge"><img src="https://www.donationcoder.com/shared/images/badges/dcp_badge_gathering_tiny.png" alt="" class="bbc_img" /></a></li> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=badges;show=plugin" title="plugin badge"><img src="https://www.donationcoder.com/shared/images/badges/dcp_badge_plugin_writer_tiny.png" alt="" class="bbc_img" /></a></li> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=badges;show=nanyx17" title="Seventeen NANY Badges"><img src="https://www.donationcoder.com/shared/images/badges/newnany/nany16x16_17.gif" alt="" class="bbc_img" /></a></li> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=badges;show=cody" title="cody badge"><img src="https://www.donationcoder.com/shared/images/badges/dc_cody_badge/cody_16.png" alt="" class="bbc_img" /></a></li> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=badges;show=csnacks" title="csnacks badge"><img src="https://www.donationcoder.com/shared/images/badges/dc_codingsnacks_badge/SnackBowl_16.gif" alt="" class="bbc_img" /></a></li> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=badges;show=staff" title="Volunteers/Staff"><img src="https://www.donationcoder.com/shared/images/badges/dc_misc/dc_staff_16.png" alt="" class="bbc_img" /></a></li></ul></li> </ul> </div> <!-- end posterextras --> </div> <div class="postarea"> <div class="flow_hidden"> <div class="keyinfo"> <div class="messageicon responsive2"> <img src="https://www.donationcoder.com/forum/Themes/dc2/images/post/xx.gif" alt="" /> </div> <h5 id="subject_419749"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&topic=45495.msg419749#msg419749" rel="nofollow">Re: GDPR Blocking (PHP Edition)</a> </h5> <div class="smalltext">« <strong>Reply #1 on:</strong> May 04, 2018, 05:47 AM »</div> <div id="msg_419749_quick_mod"></div> </div> </div> <div class="post"> <div class="inner" id="msg_419749">Tux, just wanted to say I appreciate you sharing your projects with us. <img src="https://www.donationcoder.com/forum/Smileys/fun/icon14.gif" alt=":up:" title="thumbs up" class="smiley" /></div> </div> </div> <div class="moderatorbar"> <!--<hr/>--> <div class="smalltext modified" id="modified_419749"> </div> <div class="smalltext reportlinks"> </div> </div> </div> <span class="botslice dctopslice"><span></span></span> </div> <div class="dcpost_separator"></div><hr class="post_separator" /><div class="dcpost_separator"></div> <a id="msg419750"></a> <div class="windowbg dcpost"> <span class="topslice dctopslice"><span></span></span> <div class="post_wrapper"> <div class="poster"> <h4> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=49822" title="View the profile of Tuxman">Tuxman</a> </h4> <div class="posterextras responsive2"> <ul class="reset smalltext" id="msg_419750_extra_info"> <li class="membergroup">Supporting Member</li><li>Joined in 2006</li> <li class="stars"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/star.gif" alt="*" /><img src="https://www.donationcoder.com/forum/Themes/dc2/images/star.gif" alt="*" /></li> <li class="avatar"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=49822"> <img class="avatar" src="/forum/useravatars/avatar_49822.png" alt="" /> </a> </li> <li class="postcount">Posts: <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;area=showposts;u=49822" rel="nofollow" >2,516</a></li> <li class="profile"> <ul> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=49822"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/icons/profile_sm.gif" alt="View Profile" title="View Profile" /></a></li> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=dlist;sa=search;fields=uid;search=49822"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/dc/dcgoldcoin.gif" alt="Donate to Member" title="Donate to Member" border="0" /></a></li> </ul> </li><li><ul><li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=badges;show=nanyx7" title="Seven NANY Badges"><img src="https://www.donationcoder.com/shared/images/badges/newnany/nany16x16_07.gif" alt="" class="bbc_img" /></a></li></ul></li> </ul> </div> <!-- end posterextras --> </div> <div class="postarea"> <div class="flow_hidden"> <div class="keyinfo"> <div class="messageicon responsive2"> <img src="https://www.donationcoder.com/forum/Themes/dc2/images/post/xx.gif" alt="" /> </div> <h5 id="subject_419750"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&topic=45495.msg419750#msg419750" rel="nofollow">Re: GDPR Blocking (PHP Edition)</a> </h5> <div class="smalltext">« <strong>Reply #2 on:</strong> May 04, 2018, 05:48 AM »</div> <div id="msg_419750_quick_mod"></div> </div> </div> <div class="post"> <div class="inner" id="msg_419750">That sounds like "P.S.: You're banned forever." <img src="https://www.donationcoder.com/forum/Smileys/fun/laugh.gif" alt=";D" title="Grin" class="smiley" /><br /><br />I thought this is a developer site where developers share their projects, so I do that. (Although this is more like an unrequested coding snack...)<br />Anyway, you're welcome.</div> </div> </div> <div class="moderatorbar"> <!--<hr/>--> <div class="smalltext modified" id="modified_419750"> </div> <div class="smalltext reportlinks"> </div> </div> </div> <span class="botslice dctopslice"><span></span></span> </div> <div class="dcpost_separator"></div><hr class="post_separator" /><div class="dcpost_separator"></div> <a id="msg419752"></a> <div class="windowbg2 dcpost2"> <span class="topslice dctopslice"><span></span></span> <div class="post_wrapper"> <div class="poster"> <h4> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=2" title="View the profile of mouser">mouser</a> </h4> <div class="posterextras responsive2"> <ul class="reset smalltext" id="msg_419752_extra_info"> <li class="title">First Author</li> <li class="membergroup">Administrator</li><li>Joined in 2005</li> <li class="stars"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/staradmin.gif" alt="*" /><img src="https://www.donationcoder.com/forum/Themes/dc2/images/staradmin.gif" alt="*" /><img src="https://www.donationcoder.com/forum/Themes/dc2/images/staradmin.gif" alt="*" /><img src="https://www.donationcoder.com/forum/Themes/dc2/images/staradmin.gif" alt="*" /><img src="https://www.donationcoder.com/forum/Themes/dc2/images/staradmin.gif" alt="*" /></li> <li class="avatar"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=2"> <img class="avatar" src="/forum/useravatars/avatar_2.gif" alt="" /> </a> </li> <li class="postcount">Posts: <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;area=showposts;u=2" rel="nofollow" >40,922</a></li> <li class="profile"> <ul> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=2"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/icons/profile_sm.gif" alt="View Profile" title="View Profile" /></a></li><li><a href="https://www.donationcoder.com/software/mouser" title="Mouser's Software Zone on DonationCoder.com - http://www.donationcoder.com/software/mouser" target="_blank" class="new_win" rel="noopener noreferrer"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/www_sm.gif" alt="Mouser's Software Zone on DonationCoder.com" /></a></li><li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=2#biog"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/icons/bio.gif" alt="Read more about this member." title="Read more about this member." border="0" /></a></li> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=dlist;sa=search;fields=uid;search=2"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/dc/dcgoldcoin.gif" alt="Donate to Member" title="Donate to Member" border="0" /></a></li> </ul> </li><li><ul><li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=badges;show=gathering" title="gathering badge"><img src="https://www.donationcoder.com/shared/images/badges/dcp_badge_gathering_tiny.png" alt="" class="bbc_img" /></a></li> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=badges;show=plugin" title="plugin badge"><img src="https://www.donationcoder.com/shared/images/badges/dcp_badge_plugin_writer_tiny.png" alt="" class="bbc_img" /></a></li> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=badges;show=nanyx17" title="Seventeen NANY Badges"><img src="https://www.donationcoder.com/shared/images/badges/newnany/nany16x16_17.gif" alt="" class="bbc_img" /></a></li> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=badges;show=cody" title="cody badge"><img src="https://www.donationcoder.com/shared/images/badges/dc_cody_badge/cody_16.png" alt="" class="bbc_img" /></a></li> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=badges;show=csnacks" title="csnacks badge"><img src="https://www.donationcoder.com/shared/images/badges/dc_codingsnacks_badge/SnackBowl_16.gif" alt="" class="bbc_img" /></a></li> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=badges;show=staff" title="Volunteers/Staff"><img src="https://www.donationcoder.com/shared/images/badges/dc_misc/dc_staff_16.png" alt="" class="bbc_img" /></a></li></ul></li> </ul> </div> <!-- end posterextras --> </div> <div class="postarea"> <div class="flow_hidden"> <div class="keyinfo"> <div class="messageicon responsive2"> <img src="https://www.donationcoder.com/forum/Themes/dc2/images/post/xx.gif" alt="" /> </div> <h5 id="subject_419752"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&topic=45495.msg419752#msg419752" rel="nofollow">Re: GDPR Blocking (PHP Edition)</a> </h5> <div class="smalltext">« <strong>Reply #3 on:</strong> May 04, 2018, 06:09 AM »</div> <div id="msg_419752_quick_mod"></div> </div> </div> <div class="post"> <div class="inner" id="msg_419752">There is no ps, it was a genuine expression of thanks.<br /><br />Like many aspects of life, sometimes it takes perseverance and stubbornness and just charting your own path and doing things without much feedback until the people who appreciate your work find you.</div> </div> </div> <div class="moderatorbar"> <!--<hr/>--> <div class="smalltext modified" id="modified_419752"> </div> <div class="smalltext reportlinks"> </div> </div> </div> <span class="botslice dctopslice"><span></span></span> </div> <div class="dcpost_separator"></div><hr class="post_separator" /><div class="dcpost_separator"></div> <a id="msg419753"></a> <div class="windowbg dcpost"> <span class="topslice dctopslice"><span></span></span> <div class="post_wrapper"> <div class="poster"> <h4> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=49822" title="View the profile of Tuxman">Tuxman</a> </h4> <div class="posterextras responsive2"> <ul class="reset smalltext" id="msg_419753_extra_info"> <li class="membergroup">Supporting Member</li><li>Joined in 2006</li> <li class="stars"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/star.gif" alt="*" /><img src="https://www.donationcoder.com/forum/Themes/dc2/images/star.gif" alt="*" /></li> <li class="avatar"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=49822"> <img class="avatar" src="/forum/useravatars/avatar_49822.png" alt="" /> </a> </li> <li class="postcount">Posts: <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;area=showposts;u=49822" rel="nofollow" >2,516</a></li> <li class="profile"> <ul> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=49822"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/icons/profile_sm.gif" alt="View Profile" title="View Profile" /></a></li> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=dlist;sa=search;fields=uid;search=49822"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/dc/dcgoldcoin.gif" alt="Donate to Member" title="Donate to Member" border="0" /></a></li> </ul> </li><li><ul><li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=badges;show=nanyx7" title="Seven NANY Badges"><img src="https://www.donationcoder.com/shared/images/badges/newnany/nany16x16_07.gif" alt="" class="bbc_img" /></a></li></ul></li> </ul> </div> <!-- end posterextras --> </div> <div class="postarea"> <div class="flow_hidden"> <div class="keyinfo"> <div class="messageicon responsive2"> <img src="https://www.donationcoder.com/forum/Themes/dc2/images/post/xx.gif" alt="" /> </div> <h5 id="subject_419753"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&topic=45495.msg419753#msg419753" rel="nofollow">Re: GDPR Blocking (PHP Edition)</a> </h5> <div class="smalltext">« <strong>Reply #4 on:</strong> May 04, 2018, 06:15 AM »</div> <div id="msg_419753_quick_mod"></div> </div> </div> <div class="post"> <div class="inner" id="msg_419753">Ah, the day on which I lose interest in writing code just to keep boredom off me will be a sad day for me.</div> </div> </div> <div class="moderatorbar"> <!--<hr/>--> <div class="smalltext modified" id="modified_419753"> </div> <div class="smalltext reportlinks"> </div> </div> </div> <span class="botslice dctopslice"><span></span></span> </div> <div class="dcpost_separator"></div><hr class="post_separator" /><div class="dcpost_separator"></div> <a id="msg419759"></a> <div class="windowbg2 dcpost2"> <span class="topslice dctopslice"><span></span></span> <div class="post_wrapper"> <div class="poster"> <h4> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=45035" title="View the profile of wraith808">wraith808</a> </h4> <div class="posterextras responsive2"> <ul class="reset smalltext" id="msg_419759_extra_info"> <li class="membergroup">Supporting Member</li><li>Joined in 2006</li> <li class="stars"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/star.gif" alt="*" /><img src="https://www.donationcoder.com/forum/Themes/dc2/images/star.gif" alt="*" /></li> <li class="avatar"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=45035"> <img src = "https://www.donationcoder.com/forum/Themes/dc2/images/theme/letter_avatar/w.gif" alt="default avatar"/> </a> </li> <li class="postcount">Posts: <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;area=showposts;u=45035" rel="nofollow" >11,192</a></li> <li class="profile"> <ul> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=45035"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/icons/profile_sm.gif" alt="View Profile" title="View Profile" /></a></li> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=dlist;sa=search;fields=uid;search=45035"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/dc/dcgoldcoin.gif" alt="Donate to Member" title="Donate to Member" border="0" /></a></li> </ul> </li><li><ul><li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=badges;show=nanyx14" title="Fourteen NANY Badges"><img src="https://www.donationcoder.com/shared/images/badges/newnany/nany16x16_14.gif" alt="" class="bbc_img" /></a></li> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=badges;show=csnacks" title="csnacks badge"><img src="https://www.donationcoder.com/shared/images/badges/dc_codingsnacks_badge/SnackBowl_16.gif" alt="" class="bbc_img" /></a></li> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=badges;show=writer" title="writer badge"><img src="https://www.donationcoder.com/shared/images/badges/dc_misc/book_16x16.gif" alt="" class="bbc_img" /></a></li> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=badges;show=hhacker" title="Hardware Hacker"><img src="https://www.donationcoder.com/shared/images/badges/dc_misc/dc_hardwarehacker_16.png" alt="" class="bbc_img" /></a></li></ul></li> </ul> </div> <!-- end posterextras --> </div> <div class="postarea"> <div class="flow_hidden"> <div class="keyinfo"> <div class="messageicon responsive2"> <img src="https://www.donationcoder.com/forum/Themes/dc2/images/post/xx.gif" alt="" /> </div> <h5 id="subject_419759"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&topic=45495.msg419759#msg419759" rel="nofollow">Re: GDPR Blocking (PHP Edition)</a> </h5> <div class="smalltext">« <strong>Reply #5 on:</strong> May 04, 2018, 09:41 AM »</div> <div id="msg_419759_quick_mod"></div> </div> </div> <div class="post"> <div class="inner" id="msg_419759">I've actually been puzzling over the ramifications of this, so this seems like an alternative to the people that try to make money off of a bad mistake.<br /><br />Thanks!</div> </div> </div> <div class="moderatorbar"> <!--<hr/>--> <div class="smalltext modified" id="modified_419759"> </div> <div class="smalltext reportlinks"> </div> </div> </div> <span class="botslice dctopslice"><span></span></span> </div> <div class="dcpost_separator"></div><hr class="post_separator" /><div class="dcpost_separator"></div> <a id="msg420048"></a> <div class="windowbg dcpost"> <span class="topslice dctopslice"><span></span></span> <div class="post_wrapper"> <div class="poster"> <h4> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=21548" title="View the profile of Deozaan">Deozaan</a> </h4> <div class="posterextras responsive2"> <ul class="reset smalltext" id="msg_420048_extra_info"> <li class="membergroup">Charter Member</li><li>Joined in 2006</li> <li class="stars"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/star.gif" alt="*" /><img src="https://www.donationcoder.com/forum/Themes/dc2/images/star.gif" alt="*" /><img src="https://www.donationcoder.com/forum/Themes/dc2/images/star.gif" alt="*" /></li> <li class="avatar"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=21548"> <img class="avatar" src="/forum/useravatars/avatar_21548.png" alt="" /> </a> </li><li>Points: 1</li> <li class="postcount">Posts: <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;area=showposts;u=21548" rel="nofollow" >9,788</a></li> <li class="profile"> <ul> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=21548"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/icons/profile_sm.gif" alt="View Profile" title="View Profile" /></a></li><li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=21548#biog"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/icons/bio.gif" alt="Read more about this member." title="Read more about this member." border="0" /></a></li> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=dlist;sa=search;fields=uid;search=21548"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/dc/dcgoldcoin.gif" alt="Donate to Member" title="Donate to Member" border="0" /></a></li> </ul> </li><li><ul><li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=badges;show=nanyx8" title="Eight NANY Badges"><img src="https://www.donationcoder.com/shared/images/badges/newnany/nany16x16_08.gif" alt="" class="bbc_img" /></a></li> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=badges;show=cody" title="cody badge"><img src="https://www.donationcoder.com/shared/images/badges/dc_cody_badge/cody_16.png" alt="" class="bbc_img" /></a></li></ul></li> </ul> </div> <!-- end posterextras --> </div> <div class="postarea"> <div class="flow_hidden"> <div class="keyinfo"> <div class="messageicon responsive2"> <img src="https://www.donationcoder.com/forum/Themes/dc2/images/post/xx.gif" alt="" /> </div> <h5 id="subject_420048"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&topic=45495.msg420048#msg420048" rel="nofollow">Re: GDPR Blocking (PHP Edition)</a> </h5> <div class="smalltext">« <strong>Reply #6 on:</strong> May 15, 2018, 12:34 PM »</div> <div id="msg_420048_quick_mod"></div> </div> </div> <div class="post"> <div class="inner" id="msg_420048">Found a reference to this on Twitter:<br /><br /><a href="https://twitter.com/x0rz/status/992370970928140288" class="bbc_link" target="_blank">https://twitter.com/...s/992370970928140288</a><br /><br />Also, it seems to me that the GDPR Shield website is currently down. I wonder why... <img src="https://www.donationcoder.com/forum/Smileys/fun/sleepy.gif" alt=":-\" title="undecided" class="smiley" /></div> </div> </div> <div class="moderatorbar"> <!--<hr/>--> <div class="smalltext modified" id="modified_420048"> </div> <div class="smalltext reportlinks"> </div> </div> </div> <span class="botslice dctopslice"><span></span></span> </div> <div class="dcpost_separator"></div><hr class="post_separator" /><div class="dcpost_separator"></div> <a id="msg420049"></a> <div class="windowbg2 dcpost2"> <span class="topslice dctopslice"><span></span></span> <div class="post_wrapper"> <div class="poster"> <h4> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=49822" title="View the profile of Tuxman">Tuxman</a> </h4> <div class="posterextras responsive2"> <ul class="reset smalltext" id="msg_420049_extra_info"> <li class="membergroup">Supporting Member</li><li>Joined in 2006</li> <li class="stars"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/star.gif" alt="*" /><img src="https://www.donationcoder.com/forum/Themes/dc2/images/star.gif" alt="*" /></li> <li class="avatar"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=49822"> <img class="avatar" src="/forum/useravatars/avatar_49822.png" alt="" /> </a> </li> <li class="postcount">Posts: <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;area=showposts;u=49822" rel="nofollow" >2,516</a></li> <li class="profile"> <ul> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=49822"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/icons/profile_sm.gif" alt="View Profile" title="View Profile" /></a></li> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=dlist;sa=search;fields=uid;search=49822"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/dc/dcgoldcoin.gif" alt="Donate to Member" title="Donate to Member" border="0" /></a></li> </ul> </li><li><ul><li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=badges;show=nanyx7" title="Seven NANY Badges"><img src="https://www.donationcoder.com/shared/images/badges/newnany/nany16x16_07.gif" alt="" class="bbc_img" /></a></li></ul></li> </ul> </div> <!-- end posterextras --> </div> <div class="postarea"> <div class="flow_hidden"> <div class="keyinfo"> <div class="messageicon responsive2"> <img src="https://www.donationcoder.com/forum/Themes/dc2/images/post/xx.gif" alt="" /> </div> <h5 id="subject_420049"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&topic=45495.msg420049#msg420049" rel="nofollow">Re: GDPR Blocking (PHP Edition)</a> </h5> <div class="smalltext">« <strong>Reply #7 on:</strong> May 15, 2018, 12:38 PM »</div> <div id="msg_420049_quick_mod"></div> </div> </div> <div class="post"> <div class="inner" id="msg_420049">Too many customers? <img src="https://www.donationcoder.com/forum/Smileys/fun/laugh.gif" alt=";D" title="Grin" class="smiley" /></div> </div> </div> <div class="moderatorbar"> <!--<hr/>--> <div class="smalltext modified" id="modified_420049"> </div> <div class="smalltext reportlinks"> </div> </div> </div> <span class="botslice dctopslice"><span></span></span> </div> <div class="dcpost_separator"></div><hr class="post_separator" /><div class="dcpost_separator"></div> <a id="msg428925"></a> <div class="windowbg dcpost"> <span class="topslice dctopslice"><span></span></span> <div class="post_wrapper"> <div class="poster"> <h4> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=548358" title="View the profile of The Code Queryer">The Code Queryer</a> </h4> <div class="posterextras responsive2"> <ul class="reset smalltext" id="msg_428925_extra_info"> <li class="postgroup">Participant</li><li>Joined in 2019</li> <li class="stars"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/star.gif" alt="*" /></li> <li class="avatar"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=548358"> <img src = "https://www.donationcoder.com/forum/Themes/dc2/images/theme/letter_avatar/t.gif" alt="default avatar"/> </a> </li> <li class="postcount">Posts: <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;area=showposts;u=548358" rel="nofollow" >33</a></li> <li class="profile"> <ul> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=548358"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/icons/profile_sm.gif" alt="View Profile" title="View Profile" /></a></li> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=dlist;sa=search;fields=uid;search=548358"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/dc/dcgoldcoin.gif" alt="Donate to Member" title="Donate to Member" border="0" /></a></li> </ul> </li> </ul> </div> <!-- end posterextras --> </div> <div class="postarea"> <div class="flow_hidden"> <div class="keyinfo"> <div class="messageicon responsive2"> <img src="https://www.donationcoder.com/forum/Themes/dc2/images/post/xx.gif" alt="" /> </div> <h5 id="subject_428925"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&topic=45495.msg428925#msg428925" rel="nofollow">Re: GDPR Blocking (PHP Edition)</a> </h5> <div class="smalltext">« <strong>Reply #8 on:</strong> April 05, 2019, 02:08 PM »</div> <div id="msg_428925_quick_mod"></div> </div> </div> <div class="post"> <div class="inner" id="msg_428925">How come this ain't working for me ?<br />I get error:<br /><br />Fatal error: Uncaught Error: Call to undefined function geoip_country_code_by_name() in C:\xampp\htdocs\test\visitor_country.php:23 Stack trace: #0 {main} thrown in C:\xampp\htdocs\test\visitor_country.php on line 23</div> </div> </div> <div class="moderatorbar"> <!--<hr/>--> <div class="smalltext modified" id="modified_428925"> « <em>Last Edit: April 25, 2019, 10:31 AM by The Code Queryer </em> » </div> <div class="smalltext reportlinks"> </div> </div> </div> <span class="botslice dctopslice"><span></span></span> </div> <div class="dcpost_separator"></div><hr class="post_separator" /><div class="dcpost_separator"></div> <a id="msg428944"></a> <div class="windowbg2 dcpost2"> <span class="topslice dctopslice"><span></span></span> <div class="post_wrapper"> <div class="poster"> <h4> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=49822" title="View the profile of Tuxman">Tuxman</a> </h4> <div class="posterextras responsive2"> <ul class="reset smalltext" id="msg_428944_extra_info"> <li class="membergroup">Supporting Member</li><li>Joined in 2006</li> <li class="stars"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/star.gif" alt="*" /><img src="https://www.donationcoder.com/forum/Themes/dc2/images/star.gif" alt="*" /></li> <li class="avatar"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=49822"> <img class="avatar" src="/forum/useravatars/avatar_49822.png" alt="" /> </a> </li> <li class="postcount">Posts: <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;area=showposts;u=49822" rel="nofollow" >2,516</a></li> <li class="profile"> <ul> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=49822"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/icons/profile_sm.gif" alt="View Profile" title="View Profile" /></a></li> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=dlist;sa=search;fields=uid;search=49822"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/dc/dcgoldcoin.gif" alt="Donate to Member" title="Donate to Member" border="0" /></a></li> </ul> </li><li><ul><li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=badges;show=nanyx7" title="Seven NANY Badges"><img src="https://www.donationcoder.com/shared/images/badges/newnany/nany16x16_07.gif" alt="" class="bbc_img" /></a></li></ul></li> </ul> </div> <!-- end posterextras --> </div> <div class="postarea"> <div class="flow_hidden"> <div class="keyinfo"> <div class="messageicon responsive2"> <img src="https://www.donationcoder.com/forum/Themes/dc2/images/post/xx.gif" alt="" /> </div> <h5 id="subject_428944"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&topic=45495.msg428944#msg428944" rel="nofollow">Re: GDPR Blocking (PHP Edition)</a> </h5> <div class="smalltext">« <strong>Reply #9 on:</strong> April 06, 2019, 09:49 AM »</div> <div id="msg_428944_quick_mod"></div> </div> </div> <div class="post"> <div class="inner" id="msg_428944">"I'll write a README directly into the code so everyone knows what to do."<br />- Developers (inexperienced).</div> </div> </div> <div class="moderatorbar"> <!--<hr/>--> <div class="smalltext modified" id="modified_428944"> </div> <div class="smalltext reportlinks"> </div> </div> </div> <span class="botslice dctopslice"><span></span></span> </div> <div class="dcpost_separator"></div><hr class="post_separator" /><div class="dcpost_separator"></div> <a id="msg428946"></a> <div class="windowbg dcpost"> <span class="topslice dctopslice"><span></span></span> <div class="post_wrapper"> <div class="poster"> <h4> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=45035" title="View the profile of wraith808">wraith808</a> </h4> <div class="posterextras responsive2"> <ul class="reset smalltext" id="msg_428946_extra_info"> <li class="membergroup">Supporting Member</li><li>Joined in 2006</li> <li class="stars"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/star.gif" alt="*" /><img src="https://www.donationcoder.com/forum/Themes/dc2/images/star.gif" alt="*" /></li> <li class="avatar"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=45035"> <img src = "https://www.donationcoder.com/forum/Themes/dc2/images/theme/letter_avatar/w.gif" alt="default avatar"/> </a> </li> <li class="postcount">Posts: <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;area=showposts;u=45035" rel="nofollow" >11,192</a></li> <li class="profile"> <ul> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=45035"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/icons/profile_sm.gif" alt="View Profile" title="View Profile" /></a></li> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=dlist;sa=search;fields=uid;search=45035"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/dc/dcgoldcoin.gif" alt="Donate to Member" title="Donate to Member" border="0" /></a></li> </ul> </li><li><ul><li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=badges;show=nanyx14" title="Fourteen NANY Badges"><img src="https://www.donationcoder.com/shared/images/badges/newnany/nany16x16_14.gif" alt="" class="bbc_img" /></a></li> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=badges;show=csnacks" title="csnacks badge"><img src="https://www.donationcoder.com/shared/images/badges/dc_codingsnacks_badge/SnackBowl_16.gif" alt="" class="bbc_img" /></a></li> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=badges;show=writer" title="writer badge"><img src="https://www.donationcoder.com/shared/images/badges/dc_misc/book_16x16.gif" alt="" class="bbc_img" /></a></li> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=badges;show=hhacker" title="Hardware Hacker"><img src="https://www.donationcoder.com/shared/images/badges/dc_misc/dc_hardwarehacker_16.png" alt="" class="bbc_img" /></a></li></ul></li> </ul> </div> <!-- end posterextras --> </div> <div class="postarea"> <div class="flow_hidden"> <div class="keyinfo"> <div class="messageicon responsive2"> <img src="https://www.donationcoder.com/forum/Themes/dc2/images/post/xx.gif" alt="" /> </div> <h5 id="subject_428946"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&topic=45495.msg428946#msg428946" rel="nofollow">Re: GDPR Blocking (PHP Edition)</a> </h5> <div class="smalltext">« <strong>Reply #10 on:</strong> April 06, 2019, 11:10 AM »</div> <div id="msg_428946_quick_mod"></div> </div> </div> <div class="post"> <div class="inner" id="msg_428946">Specifically, in case he was being too obtuse, this in the code.<br /><br /><div class="codeheader">Code: PHP<a href="javascript:void(0);" onclick="return smfSelectText(this);" class="codeoperation"> [Select]</a></div><div class="php geshi" style="font-family:monospace;"><ol><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Prerequisites<span style="color: #339933;">:</span></div></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> <span style="color: #339933;">*</span> PHP</div></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> <span style="color: #339933;">*</span> GeoIP <span style="color: #b1b100;">as</span> described here<span style="color: #339933;">:</span> http<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//php.net/manual/en/geoip.requirements.php</span></div></li></ol></div><br /><br />Though I wouldn't disagree that a bit of obtuseness was perhaps warranted in this case.</div> </div> </div> <div class="moderatorbar"> <!--<hr/>--> <div class="smalltext modified" id="modified_428946"> </div> <div class="smalltext reportlinks"> </div> </div> </div> <span class="botslice dctopslice"><span></span></span> </div> <div class="dcpost_separator"></div><hr class="post_separator" /><div class="dcpost_separator"></div> <a id="msg428947"></a> <div class="windowbg2 dcpost2"> <span class="topslice dctopslice"><span></span></span> <div class="post_wrapper"> <div class="poster"> <h4> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=49822" title="View the profile of Tuxman">Tuxman</a> </h4> <div class="posterextras responsive2"> <ul class="reset smalltext" id="msg_428947_extra_info"> <li class="membergroup">Supporting Member</li><li>Joined in 2006</li> <li class="stars"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/star.gif" alt="*" /><img src="https://www.donationcoder.com/forum/Themes/dc2/images/star.gif" alt="*" /></li> <li class="avatar"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=49822"> <img class="avatar" src="/forum/useravatars/avatar_49822.png" alt="" /> </a> </li> <li class="postcount">Posts: <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;area=showposts;u=49822" rel="nofollow" >2,516</a></li> <li class="profile"> <ul> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=49822"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/icons/profile_sm.gif" alt="View Profile" title="View Profile" /></a></li> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=dlist;sa=search;fields=uid;search=49822"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/dc/dcgoldcoin.gif" alt="Donate to Member" title="Donate to Member" border="0" /></a></li> </ul> </li><li><ul><li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=badges;show=nanyx7" title="Seven NANY Badges"><img src="https://www.donationcoder.com/shared/images/badges/newnany/nany16x16_07.gif" alt="" class="bbc_img" /></a></li></ul></li> </ul> </div> <!-- end posterextras --> </div> <div class="postarea"> <div class="flow_hidden"> <div class="keyinfo"> <div class="messageicon responsive2"> <img src="https://www.donationcoder.com/forum/Themes/dc2/images/post/xx.gif" alt="" /> </div> <h5 id="subject_428947"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&topic=45495.msg428947#msg428947" rel="nofollow">Re: GDPR Blocking (PHP Edition)</a> </h5> <div class="smalltext">« <strong>Reply #11 on:</strong> April 06, 2019, 11:13 AM »</div> <div id="msg_428947_quick_mod"></div> </div> </div> <div class="post"> <div class="inner" id="msg_428947">In fact, the PHP manual is more descriptive than I could be, especially with its comments section.</div> </div> </div> <div class="moderatorbar"> <!--<hr/>--> <div class="smalltext modified" id="modified_428947"> </div> <div class="smalltext reportlinks"> </div> </div> </div> <span class="botslice dctopslice"><span></span></span> </div> <div class="dcpost_separator"></div><hr class="post_separator" /><div class="dcpost_separator"></div> <a id="msg428949"></a> <div class="windowbg dcpost"> <span class="topslice dctopslice"><span></span></span> <div class="post_wrapper"> <div class="poster"> <h4> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=548358" title="View the profile of The Code Queryer">The Code Queryer</a> </h4> <div class="posterextras responsive2"> <ul class="reset smalltext" id="msg_428949_extra_info"> <li class="postgroup">Participant</li><li>Joined in 2019</li> <li class="stars"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/star.gif" alt="*" /></li> <li class="avatar"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=548358"> <img src = "https://www.donationcoder.com/forum/Themes/dc2/images/theme/letter_avatar/t.gif" alt="default avatar"/> </a> </li> <li class="postcount">Posts: <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;area=showposts;u=548358" rel="nofollow" >33</a></li> <li class="profile"> <ul> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=548358"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/icons/profile_sm.gif" alt="View Profile" title="View Profile" /></a></li> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=dlist;sa=search;fields=uid;search=548358"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/dc/dcgoldcoin.gif" alt="Donate to Member" title="Donate to Member" border="0" /></a></li> </ul> </li> </ul> </div> <!-- end posterextras --> </div> <div class="postarea"> <div class="flow_hidden"> <div class="keyinfo"> <div class="messageicon responsive2"> <img src="https://www.donationcoder.com/forum/Themes/dc2/images/post/xx.gif" alt="" /> </div> <h5 id="subject_428949"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&topic=45495.msg428949#msg428949" rel="nofollow">Re: GDPR Blocking (PHP Edition)</a> </h5> <div class="smalltext">« <strong>Reply #12 on:</strong> April 06, 2019, 12:23 PM »</div> <div id="msg_428949_quick_mod"></div> </div> </div> <div class="post"> <div class="inner" id="msg_428949"><blockquote class="bbc_standard_quote">There is an <a href="https://gdpr-shield.io/" class="bbc_link" target="_blank" title="https://gdpr-shield.io/">expensive web service</a> that makes your website GDPR-compliant by adding a JavaScript that redirects visitors from the EU to an error page.<br /><br />This is my attempt to provide a simple <strong>and free</strong> PHP script for those who want to achieve the same result on server side.<br /><br /><div class="codeheader">Code: PHP<a href="javascript:void(0);" onclick="return smfSelectText(this);" class="codeoperation"> [Select]</a></div><div class="php geshi" style="font-family:monospace;"><ol><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;"><?php</span></div></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;">/*</span></div></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> Copyright 漏 2018 tux. <<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="187f716c586c6d60686a77727d7b6c367c7d">[email protected]</a>></span></div></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> This work is free. You can redistribute it and/or modify it under the</span></div></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> terms of the Do What The Fuck You Want To Public License, Version 2,</span></div></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.</span></div></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> </div></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> GDPR SHIELD [PHP draft v1]</span></div></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> </div></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> Prerequisites:</span></div></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> * PHP</span></div></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> * GeoIP as described here: http://php.net/manual/en/geoip.requirements.php</span></div></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> </div></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> Usage:</span></div></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> <?php require("gdprshield.php"); ?></span></div></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> <!doctype html></span></div></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> <html></span></div></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> ...</span></div></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> </html></span></div></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;">*/</span></div></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$disallowed_countries</span> <span style="color: #339933;">=</span> <span style="color: #009900;">[</span><span style="color: #0000ff;">"BE"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"BG"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"CZ"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"DK"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"DE"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"EE"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"IE"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"EL"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"ES"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"FR"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"HR"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"IT"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"CY"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"LV"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"LT"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"LU"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"HU"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"MT"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"NL"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"AT"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"PL"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"PT"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"RO"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"SI"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"SK"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"FI"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"SE"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">"UK"</span><span style="color: #009900;">]</span><span style="color: #339933;">;</span></div></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$ip</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">[</span><span style="color: #0000ff;">"REMOTE_ADDR"</span><span style="color: #009900;">]</span><span style="color: #339933;">;</span></div></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">(</span><a href="http://www.php.net/in_array"><span style="color: #990000;">in_array</span></a><span style="color: #009900;">(</span>geoip_country_code_by_name<span style="color: #009900;">(</span><span style="color: #000088;">$ip</span><span style="color: #009900;">)</span><span style="color: #339933;">,</span> <span style="color: #000088;">$disallowed_countries</span><span style="color: #009900;">)</span><span style="color: #009900;">)</span> <span style="color: #009900;">{</span></div></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> <a href="http://www.php.net/die"><span style="color: #990000;">die</span></a><span style="color: #009900;">(</span><span style="color: #0000ff;">"Your country does not want you to be here."</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span></div></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> </div></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> <span style="color: #666666; font-style: italic;">/*</span></div></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> The above code displays a plain error text.</span></div></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> If you prefer to redirect to a full-featured HTML page,</span></div></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> you could delete it and use a Location header instead:</span></div></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"> */</span></div></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"> <a href="http://www.php.net/header"><span style="color: #990000;">header</span></a><span style="color: #009900;">(</span><span style="color: #0000ff;">"Location: GDPR_blocked.php"</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">451</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span></div></li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">}</span></div></li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">?></span></div></li></ol></div><br />Enjoy. And feel free to extend/fix/implement it as you wish.<br /><div class="dcblockquotefrom">-Tuxman <span class="dcblockquotefrom_extra">(<a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&topic=45495.msg419746#msg419746">May 04, 2018, 05:27 AM</a>)</span></div></blockquote><div class="quotefooter"><div class="botslice_quote"></div></div><br />According to this link:<br /><a href="https://www.php.net/...oip.requirements.php" class="bbc_link" target="_blank">https://www.php.net/...oip.requirements.php</a><br /><br />You need c library installed. Not sure how to install that on my cPanel. I was looking for something with php alone.</div> </div> </div> <div class="moderatorbar"> <!--<hr/>--> <div class="smalltext modified" id="modified_428949"> </div> <div class="smalltext reportlinks"> </div> </div> </div> <span class="botslice dctopslice"><span></span></span> </div> <div class="dcpost_separator"></div><hr class="post_separator" /><div class="dcpost_separator"></div> <a id="msg428967"></a> <div class="windowbg2 dcpost2"> <span class="topslice dctopslice"><span></span></span> <div class="post_wrapper"> <div class="poster"> <h4> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=55489" title="View the profile of Shades">Shades</a> </h4> <div class="posterextras responsive2"> <ul class="reset smalltext" id="msg_428967_extra_info"> <li class="membergroup">Member</li><li>Joined in 2006</li> <li class="stars"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/star.gif" alt="*" /><img src="https://www.donationcoder.com/forum/Themes/dc2/images/star.gif" alt="*" /></li> <li class="avatar"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=55489"> <img class="avatar" src="/forum/useravatars/avatar_55489.png" alt="" /> </a> </li> <li class="postcount">Posts: <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;area=showposts;u=55489" rel="nofollow" >2,944</a></li> <li class="profile"> <ul> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=55489"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/icons/profile_sm.gif" alt="View Profile" title="View Profile" /></a></li> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=dlist;sa=search;fields=uid;search=55489"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/dc/dcgoldcoin.gif" alt="Donate to Member" title="Donate to Member" border="0" /></a></li> </ul> </li> </ul> </div> <!-- end posterextras --> </div> <div class="postarea"> <div class="flow_hidden"> <div class="keyinfo"> <div class="messageicon responsive2"> <img src="https://www.donationcoder.com/forum/Themes/dc2/images/post/xx.gif" alt="" /> </div> <h5 id="subject_428967"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&topic=45495.msg428967#msg428967" rel="nofollow">Re: GDPR Blocking (PHP Edition)</a> </h5> <div class="smalltext">« <strong>Reply #13 on:</strong> April 06, 2019, 06:13 PM »</div> <div id="msg_428967_quick_mod"></div> </div> </div> <div class="post"> <div class="inner" id="msg_428967"><a href="https://dev.maxmind.com/geoip/geoip2/geolite2/" class="bbc_link" target="_blank" title="https://dev.maxmind.com/geoip/geoip2/geolite2/">GeoLite2</a> is what you likely could use.<br /><br />You could create a subdomain using cPanel and divert users from the GDPR countries to that subdomain where you make a simple page that explains why they are not allowed access. That gives you still an overview of how many visitors from GDPR countries wanted to visit your site and these visitors have an inkling of why access was denied and (hopefully) create so much outcry that politicians gladly take action to cut GDPR short before the internet becomes (too) divided. </div> </div> </div> <div class="moderatorbar"> <!--<hr/>--> <div class="smalltext modified" id="modified_428967"> </div> <div class="smalltext reportlinks"> </div> </div> </div> <span class="botslice dctopslice"><span></span></span> </div> <div class="dcpost_separator"></div><hr class="post_separator" /><div class="dcpost_separator"></div> <a id="msg428968"></a> <div class="windowbg dcpost"> <span class="topslice dctopslice"><span></span></span> <div class="post_wrapper"> <div class="poster"> <h4> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=49822" title="View the profile of Tuxman">Tuxman</a> </h4> <div class="posterextras responsive2"> <ul class="reset smalltext" id="msg_428968_extra_info"> <li class="membergroup">Supporting Member</li><li>Joined in 2006</li> <li class="stars"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/star.gif" alt="*" /><img src="https://www.donationcoder.com/forum/Themes/dc2/images/star.gif" alt="*" /></li> <li class="avatar"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=49822"> <img class="avatar" src="/forum/useravatars/avatar_49822.png" alt="" /> </a> </li> <li class="postcount">Posts: <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;area=showposts;u=49822" rel="nofollow" >2,516</a></li> <li class="profile"> <ul> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=49822"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/icons/profile_sm.gif" alt="View Profile" title="View Profile" /></a></li> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=dlist;sa=search;fields=uid;search=49822"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/dc/dcgoldcoin.gif" alt="Donate to Member" title="Donate to Member" border="0" /></a></li> </ul> </li><li><ul><li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=badges;show=nanyx7" title="Seven NANY Badges"><img src="https://www.donationcoder.com/shared/images/badges/newnany/nany16x16_07.gif" alt="" class="bbc_img" /></a></li></ul></li> </ul> </div> <!-- end posterextras --> </div> <div class="postarea"> <div class="flow_hidden"> <div class="keyinfo"> <div class="messageicon responsive2"> <img src="https://www.donationcoder.com/forum/Themes/dc2/images/post/xx.gif" alt="" /> </div> <h5 id="subject_428968"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&topic=45495.msg428968#msg428968" rel="nofollow">Re: GDPR Blocking (PHP Edition)</a> </h5> <div class="smalltext">« <strong>Reply #14 on:</strong> April 06, 2019, 06:15 PM »</div> <div id="msg_428968_quick_mod"></div> </div> </div> <div class="post"> <div class="inner" id="msg_428968"><blockquote class="bbc_standard_quote">(hopefully) create so much outcry that politicians gladly take action to cut GDPR short before the internet becomes (too) divided. <br /><div class="dcblockquotefrom">-Shades <span class="dcblockquotefrom_extra">(<a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&topic=45495.msg428967#msg428967">April 06, 2019, 06:13 PM</a>)</span></div></blockquote><div class="quotefooter"><div class="botslice_quote"></div></div><br />HAHAHAHAHAHAHAHA<br />HAHAHAHA<br /><br />I mean<br /><br />HAHAHAHAHAHAHAHA omg *snort* AHAHAHAHAHAHAHHAHAHAHAHA<br /><br />... wait, you were serious?</div> </div> </div> <div class="moderatorbar"> <!--<hr/>--> <div class="smalltext modified" id="modified_428968"> </div> <div class="smalltext reportlinks"> </div> </div> </div> <span class="botslice dctopslice"><span></span></span> </div> <div class="dcpost_separator"></div><hr class="post_separator" /><div class="dcpost_separator"></div> <a id="msg428969"></a> <div class="windowbg2 dcpost2"> <span class="topslice dctopslice"><span></span></span> <div class="post_wrapper"> <div class="poster"> <h4> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=55489" title="View the profile of Shades">Shades</a> </h4> <div class="posterextras responsive2"> <ul class="reset smalltext" id="msg_428969_extra_info"> <li class="membergroup">Member</li><li>Joined in 2006</li> <li class="stars"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/star.gif" alt="*" /><img src="https://www.donationcoder.com/forum/Themes/dc2/images/star.gif" alt="*" /></li> <li class="avatar"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=55489"> <img class="avatar" src="/forum/useravatars/avatar_55489.png" alt="" /> </a> </li> <li class="postcount">Posts: <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;area=showposts;u=55489" rel="nofollow" >2,944</a></li> <li class="profile"> <ul> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=55489"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/icons/profile_sm.gif" alt="View Profile" title="View Profile" /></a></li> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=dlist;sa=search;fields=uid;search=55489"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/dc/dcgoldcoin.gif" alt="Donate to Member" title="Donate to Member" border="0" /></a></li> </ul> </li> </ul> </div> <!-- end posterextras --> </div> <div class="postarea"> <div class="flow_hidden"> <div class="keyinfo"> <div class="messageicon responsive2"> <img src="https://www.donationcoder.com/forum/Themes/dc2/images/post/xx.gif" alt="" /> </div> <h5 id="subject_428969"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&topic=45495.msg428969#msg428969" rel="nofollow">Re: GDPR Blocking (PHP Edition)</a> </h5> <div class="smalltext">« <strong>Reply #15 on:</strong> April 06, 2019, 06:39 PM »</div> <div id="msg_428969_quick_mod"></div> </div> </div> <div class="post"> <div class="inner" id="msg_428969">If I would not have added "(hopefully)" then yes, it would be serious.<br /><br />But rest assured, I am very familiar with the unbridled apathy and lazyness of the general public at large and millennials in particular. Hence the addition.</div> </div> </div> <div class="moderatorbar"> <!--<hr/>--> <div class="smalltext modified" id="modified_428969"> </div> <div class="smalltext reportlinks"> </div> </div> </div> <span class="botslice dctopslice"><span></span></span> </div> <div class="dcpost_separator"></div><hr class="post_separator" /><div class="dcpost_separator"></div> <a id="msg429368"></a> <div class="windowbg dcpost"> <span class="topslice dctopslice"><span></span></span> <div class="post_wrapper"> <div class="poster"> <h4> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=548358" title="View the profile of The Code Queryer">The Code Queryer</a> </h4> <div class="posterextras responsive2"> <ul class="reset smalltext" id="msg_429368_extra_info"> <li class="postgroup">Participant</li><li>Joined in 2019</li> <li class="stars"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/star.gif" alt="*" /></li> <li class="avatar"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=548358"> <img src = "https://www.donationcoder.com/forum/Themes/dc2/images/theme/letter_avatar/t.gif" alt="default avatar"/> </a> </li> <li class="postcount">Posts: <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;area=showposts;u=548358" rel="nofollow" >33</a></li> <li class="profile"> <ul> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=profile;u=548358"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/icons/profile_sm.gif" alt="View Profile" title="View Profile" /></a></li> <li><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=dlist;sa=search;fields=uid;search=548358"><img src="https://www.donationcoder.com/forum/Themes/dc2/images/dc/dcgoldcoin.gif" alt="Donate to Member" title="Donate to Member" border="0" /></a></li> </ul> </li> </ul> </div> <!-- end posterextras --> </div> <div class="postarea"> <div class="flow_hidden"> <div class="keyinfo"> <div class="messageicon responsive2"> <img src="https://www.donationcoder.com/forum/Themes/dc2/images/post/xx.gif" alt="" /> </div> <h5 id="subject_429368"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&topic=45495.msg429368#msg429368" rel="nofollow">Re: GDPR Blocking (PHP Edition)</a> </h5> <div class="smalltext">« <strong>Reply #16 on:</strong> April 25, 2019, 10:28 AM »</div> <div id="msg_429368_quick_mod"></div> </div> </div> <div class="post"> <div class="inner" id="msg_429368">At the end, few days ago, I bought a gig at fiver that redirects outside my site all EU visitors through the apache module geoip.</div> </div> </div> <div class="moderatorbar"> <!--<hr/>--> <div class="smalltext modified" id="modified_429368"> </div> <div class="smalltext reportlinks"> </div> </div> </div> <span class="botslice dctopslice"><span></span></span> </div> <div class="dcpost_separator"></div><hr class="post_separator" /><div class="dcpost_separator"></div> </form> </div> <a id="lastPost"></a> <div class="pagesection"> <div class="buttonlist floatright"> <ul> <li><a class="button_strip_new_topic" href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=post;board=53.0"><span>New Topic</span></a></li> <li><a class="button_strip_print" href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=printpage;topic=45495.0" target="_blank" rel="nofollow"><span class="last">Print</span></a></li> </ul> </div> <div class="pagelinks floatleft">Pages: [<strong>1</strong>] • <a href="#top">top</a></div> <div class="nextlinks_bottom"><a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&topic=45495.0;prev_next=prev#new">« previous</a> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&topic=45495.0;prev_next=next#new">next »</a></div> </div> <div class="navigate_section"> <ul> <li> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&"><span>DonationCoder.com Forum</span></a> » </li> <li> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&#c3"><span>DonationCoder.com Software</span></a> » </li> <li> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&board=53.0"><span>DC Member Programs and Projects</span></a> » </li> <li class="last"> <a href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&topic=45495.0"><span>GDPR Blocking (PHP Edition)</span></a> </li> </ul> </div> <div id="moderationbuttons"></div><br/> <br class="clear" /> <script data-cfasync="false" src="/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script><script type="text/javascript" src="https://www.donationcoder.com/forum/Themes/default/scripts/topic.js"></script> <script type="text/javascript"><!-- // --><![CDATA[ var oQuickReply = new QuickReply({ bDefaultCollapsed: false, iTopicId: 45495, iStart: 0, sScriptUrl: smf_scripturl, sImagesUrl: "https://www.donationcoder.com/forum/Themes/dc2/images", sContainerId: "quickReplyOptions", sImageId: "quickReplyExpand", sImageCollapsed: "collapse.gif", sImageExpanded: "expand.gif", sJumpAnchor: "quickreply" }); if ('XMLHttpRequest' in window) { var oQuickModify = new QuickModify({ sScriptUrl: smf_scripturl, bShowModify: true, iTopicId: 45495, sTemplateBodyEdit: '\n\t\t\t\t\t\t\t\t<div id="quick_edit_body_container" style="width: 90%">\n\t\t\t\t\t\t\t\t\t<div id="error_box" style="padding: 4px;" class="error"><' + '/div>\n\t\t\t\t\t\t\t\t\t<textarea class="editor" name="message" rows="12" style="width: 100%; margin-bottom: 10px;" tabindex="1">%body%<' + '/textarea><br />\n\t\t\t\t\t\t\t\t\t<input type="hidden" name="a2aa415" value="7c6c9455890a3db95623a768c1308728" />\n\t\t\t\t\t\t\t\t\t<input type="hidden" name="topic" value="45495" />\n\t\t\t\t\t\t\t\t\t<input type="hidden" name="msg" value="%msg_id%" />\n\t\t\t\t\t\t\t\t\t<div class="righttext">\n\t\t\t\t\t\t\t\t\t\t<input type="submit" name="post" value="Save" tabindex="2" onclick="return oQuickModify.modifySave(\'7c6c9455890a3db95623a768c1308728\', \'a2aa415\');" accesskey="s" class="button_submit" /> <input type="submit" name="cancel" value="Cancel" tabindex="3" onclick="return oQuickModify.modifyCancel();" class="button_submit" />\n\t\t\t\t\t\t\t\t\t<' + '/div>\n\t\t\t\t\t\t\t\t<' + '/div>', sTemplateSubjectEdit: '<input type="text" style="width: 90%;" name="subject" value="%subject%" size="80" maxlength="80" tabindex="4" class="input_text" />', sTemplateBodyNormal: '%body%', sTemplateSubjectNormal: '<a hr'+'ef="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&'+'?topic=45495.msg%msg_id%#msg%msg_id%" rel="nofollow">%subject%<' + '/a>', sTemplateTopSubject: 'Topic: %subject% (Read 47819 times)', sErrorBorderStyle: '1px solid red' }); aIconLists[aIconLists.length] = new IconList({ sBackReference: "aIconLists[" + aIconLists.length + "]", sIconIdPrefix: "msg_icon_", sScriptUrl: smf_scripturl, bShowModify: true, iBoardId: 53, iTopicId: 45495, sSessionId: "7c6c9455890a3db95623a768c1308728", sSessionVar: "a2aa415", sLabelIconList: "Message Icon", sBoxBackground: "transparent", sBoxBackgroundHover: "#ffffff", iBoxBorderWidthHover: 1, sBoxBorderColorHover: "#adadad" , sContainerBackground: "#ffffff", sContainerBorder: "1px solid #adadad", sItemBorder: "1px solid #ffffff", sItemBorderHover: "1px dotted gray", sItemBackground: "transparent", sItemBackgroundHover: "#e0e0f0" }); } // ]]></script> <script type="text/javascript" src="https://www.donationcoder.com/forum/Themes/dc2/scripts/dquote.js?fin20"></script> <script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"%3E%3C/script%3E'))</script> <script type="text/javascript"><!-- // --><![CDATA[ jQuery(document).ready(function($){ $(".sp-body").hide(); $(".sp-head").on("click", function(){ $(this).toggleClass("sp-open").toggleClass("sp-closed").next().toggle(); }); }); // ]]></script> <script type="text/javascript"><!-- // --><![CDATA[ var verificationpostHandle = new smfCaptcha("https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&action=verificationcode;vid=post;rand=d951dfdf44545700125957df381b3803", "post", 1); // ]]></script> </div> </div></div> <div id="footer_section"><div class="frame"><div class="dcresonlyf"><a id="button_wap2" href="/forum/index.php?topic=45495;wap2" class="new_win">view mobile/wap2 version of this page</a><br/> <br/></div> <ul class="reset"><li class="copyright"> <span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"><a href="http://www.simplemachines.org/about/smf/license.php" title="License" target="_blank" class="new_win">SMF © 2016</a>, <a href="http://www.simplemachines.org" title="Simple Machines" target="_blank" class="new_win">Simple Machines</a> </span> and <a href="/">DonationCoder.com</a> </li><li><a id="button_rss" href="https://www.donationcoder.com/forum/index.php?PHPSESSID=bb097a0b460b18d788ac95725bd6deef&topic=496.0" class="new_win"><span>RSS</span></a></li> </ul><div id="popitmenu" onMouseover="clearhidemenu();" onMouseout="dynamichide(event)"></div> <p>Page created in 0.082 seconds with 54 queries.</p> </div></div> </div> </body></html>