Binom Documentation

Go to navigation

Landing page protection

You can protect landing pages from direct entries. The protection relies on the checking of the time gap between Binom registering a click and the opening of a landing page. If there's too much time between these two actions (5 min by default), an empty page will open instead of a landing page. IP and User agent matching is checked as well.

Setting up


1. Go to Settings > LP Protect and copy the LP Protect code.



You can also find this code on any LP editing page.

2. Paste the code to the very beginning of your landing page's code. The landing page file has to have the .php extension.

3. Open the landing page settings and add LP Key token to the URL in order to provide the key to the landing page.

Now your landing page can be opened only through Campaign URL.

Safe landing page instead of a blank page


By default LP Protect shows just a blank page. If you want to show a “safe” landing page instead — you can use this code:

                        
                            <?php 
                                $key="YOUR-LP-KEY";
                                $a=@$_GET["lpkey"];
                                $b=substr($a,0,2).substr($a,4,2).substr($a,8,2).substr($a,12,2).substr($a,16,2);
                                $c=substr($a,2,2).substr($a,6,2).substr($a,10,2).substr($a,14,2);
                                $d=md5($key.$_SERVER["HTTP_USER_AGENT"].$b);
                                $d=substr($d,2,2).substr($d,7,2).substr($d,12,2).substr($d,24,2);
                                if(time()>$b || $d!==$c){
                                ?>
                                    <!DOCTYPE html>
                                    <html>
                                    <head>
                                        <title>White page</title>
                                    </head>
                                    <body>
                                    </body>
                                    </html>
                                <?php
                                }else{
                                ?>
                                    <!DOCTYPE html>
                                    <html>
                                    <head>
                                        <title>Black page</title>
                                    </head>
                                    <body>
                                        <a href="https://domain.com/click.php?lp=1">Click to offer</a>
                                    </body>
                                    </html>
                                <?php
                                }
                            ?>
                        
                    

Replace YOUR-LP-KEY with your actual LP Key, and specify your campaign domain instead of domain.com.

Now you don't have to hide the referer because it will always lead to the safe landing page.