Joined December 2012
·

Daniel Noel-Davies

Cybershade
·
London, UK
·
·
·

This protip only works when passed the parameter and isn't a fully secure way of checking it's an XMLHttpRequest.

This is also quite an old method of detection (https://github.com/cybershade/CSCMS/blob/master/core/constants.php#L28).

Also, your code should be following grammatical standards, so your code should be

isset($_SERVER['HTTP_X_REQUESTED_WITH']) && 'XMLHttpRequest' == $_SERVER['HTTP_X_REQUESTED_WITH']
Achievements
49 Karma
0 Total ProTip Views
Interests & Skills