/    Sign up×
Community /Pin to ProfileBookmark

Load Only If Referral URL is Right

I need some more help. Does anyone know how to make it where the page will only load is the referral url is (i.e. [url]www.paypal.com/cgi-bin/ur?[/url]) or just paypal.com ????
Any Information will be appreciated.

to post a comment
Full-stack Developer

3 Comments(s)

Copy linkTweet thisAlerts:
@ray326Jun 28.2006 — What's the damage to you when someone doesn't go through the paypal link?
Copy linkTweet thisAlerts:
@timmahJun 30.2006 — [code=php]
if($_SERVER['HTTP_REFERER']=='Whatever page want')
{
include("pageyou want loaded.htm");
//or close the php tags and just paste the html in here and reopen php tags at EOF
}
else
echo "GET OFF MY SERVER!";
[/code]


or something like that
Copy linkTweet thisAlerts:
@Stephen_PhilbinJun 30.2006 — Vast numbers of people would not be able to use whatever it is you're building if it relies on referring URL data to function correctly, regardless of whether they were legitimate users or not. Especially those that are "Well protected" by anti-virus, firewall & "privacy guarding" software setups installed on their machines.
×

Success!

Help @fiercesnowboard spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...