ESGF / esgf-wget

Service API endpoint for simplified wget scripts
0 stars 4 forks source link

Project whitelist #28

Closed mauzey1 closed 4 years ago

mauzey1 commented 4 years ago

Resolves #25

This adds a JSON file that has a list of projects that are allowed to be used by the API. If a query specifies a project or id (id, master_id, dataset_id, instance_id) from a project that is not in the list, then the API will throw an error instead of generating a wget script.

Example error:

This query cannot be completed since the project, CORDEX, is not allowed to be accessed by this site. Please redo your
query with unrestricted data only, and request CORDEX data from another site.