This happens because you may have added referrer restrictions for your public access tokens. If requests do not originate from that referrer, you get this error.

Whenever you make a request having empty referrer or referrer not matching the configured patterns, then API response will return "Access restricted" error message.