/    Sign up×
Community /Pin to ProfileBookmark

I am using the xml-rpc library from

[URL=http://scripts.incutio.com/xmlrpc/manual.php]http://scripts.incutio.com/xmlrpc/manual.php[/URL]

the problem I currently have is that I want to check the referer of the request. for some reason however the variable $_SERVER[‘HTTP_REFERER’] is empty.

can anyone help me with that?

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@bokehSep 27.2006 — That variable (as with all SERVER variables that start HTTP) is so unreliable that absolutely no functional logic should depend on its contents.
Copy linkTweet thisAlerts:
@stephan_gerlachauthorSep 27.2006 — ok how could I then implement a control that only certain websites can use my xml-rpc service? I thought about giving out usernames and passwords but this would make it possible to share them which I want to avoid. Even though there is no reason why they would share it since the service is free all i want is to know which websites are using my service.
Copy linkTweet thisAlerts:
@bokehSep 27.2006 — Well this case is a bit different because you aren't using $_SERVER['HTTP_REFERER'] as a security feature. 95% of the time it will be set. Just allow empty string as one of your options.
×

Success!

Help @stephan_gerlach 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 6.2,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...