i want to allow users to see website only if refer is from facebook
facebook page or timeline or like that...
if refer is direct or from google i want to block him
i have these code where is my mistake?
<?php
$allowed_domains = array('www.facebook.com/','https://www.facebook.com/');
$REFERRER = $_SERVER['HTTP_REFERER'];
if ($REFERRER == '') {
// works
}
$domain = substr($REFERRER, strpos($REFERRER, '://')+3);
$domain = substr($domain, 0, strpos($domain, '/'));
if...
open website only if refer is facebook
from PHP http://ift.tt/1OD64Ee
via
IFTTT
Related Post
Strip or preg_replace .zip, .exe, .rar, .rpm, .xz, etc. etc.I'd like to have a strip function (or preg_replace) that strips all extensions that can be unzipped
Grab URL PHP code for FaceBook Comments HTTP to HTTPSHello, I have been using this code to grab the current page URL to input it into my Facebook commen
How do I create images that can be verified by humans only?With the ever-growing number of automated spamming robots which tirelessly scour the Web, human-ver
How to Open Popup using javascript!!!Hi everyone!
i have a problem with html template same zopim!
i want to code like picture.
When i c
Author Box Lite Wordpress PluginHow do I add a custom social media icon that links to a certain social media profile? The icon I wa
Update some records of tableHi guys.
I have this form.
Show records, checkbox, code and name, but name can be changed.
I want t
Out Of Topic Show Konversi KodeHide Konversi Kode Show EmoticonHide Emoticon