Prevent invoking script from browser.
Merge pull request #5615 from openscholar/5526-1

Prevent invoking script from browser