Is it possible?
Trying to move my script security to the server-level.
With PHP, just check if $_SERVER['HTTP_X_REQUESTED_WITH']
is set to XMLHttpRequest
(jQuery added).
I guess maybe a better question is, how can I add the X-Requested-With
request header to a variable I can check with a mod_rewrite RewriteCond
?