I\'m looking at the following guide: https://developers.google.com/youtube/v3/getting-started
The first step of interacting with YouTube\'s API is:
You can use restriction to secure your API Key.
Use the REFERERS
attribute of the public API key. Go to your project in console developers -> API&Auth -> Credentials
REFERERS
is a reference to
a domain. REFERERS
is a reference to a IP.
(ip of your server for example)For example, if you use github.io to make live demo of an application, REFERERS
will point on http://user.github.io/*
You can read more register your application
Use a server key if your application runs on a server. Do not use this key outside of your server code. For example, do not embed it in a web page. To prevent quota theft, restrict your key so that requests are only allowed from your servers' source IP addresses.
Use a browser key if your application runs on a client, such as a web browser. To prevent your key from being used on unauthorized sites, only allow referrals from domains you administer.
A screen to help you :