Add a way to block some urls to avoid spam (#219)

Spam blocker
This commit is contained in:
Gaël Métais
2017-01-08 22:38:34 +08:00
committed by GitHub
parent ecbbbc2d6b
commit f76d597cbf
6 changed files with 51 additions and 3 deletions
+2
View File
@@ -37,6 +37,8 @@ apiService.factory('API', ['$location', 'Runs', 'Results', function($location, R
}, function(response) {
if (response.status === 429) {
alert('Too many requests, you reached the max number of requests allowed in 24h');
} else if (response.status === 403) {
alert('This particular query was blocked due to spamming. If you think it\'s an error, please open an issue on GitHub.');
} else {
alert('An error occured...');
}