Forbidden google api calls

Posted in: Newspaper
Post count: 27

I see a load of api calls from the core code. Can you explain the course and how to fix this?

GET https://www.googleapis.com/youtube/v3/videos
?id=Xq6I7_lHppg
&part=id,contentDetails,snippet,player
&key=

403 Forbidden

td_remote_http::get_url_wordpress()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_remote_http.php:202
td_remote_http::get_page_via_channel()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_remote_http.php:157
td_remote_http::get_page()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_remote_http.php:86
td_remote_video::youtube_api_get_videos_info()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_remote_video.php:158
td_remote_video::api_get_videos_info()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_remote_video.php:44
td_video_support::get_video_duration()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_video_support.php:501
td_module->get_video_duration()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_module.php:751
tdb_module_mm->render()
wp-content/plugins/td-cloud-library/modules/tdb_module_mm.php:83
tdb_header_mega_menu->inner()
wp-content/plugins/td-cloud-library/shortcodes/header/tdb_header_mega_menu.php:1654
tdb_header_mega_menu->render()
wp-content/plugins/td-cloud-library/shortcodes/header/tdb_header_mega_menu.php:1632
tdb_menu->hook_wp_nav_menu_objects()
wp-content/plugins/td-cloud-library/includes/tdb_menu.php:180
apply_filters(‘wp_nav_menu_objects’)
wp-includes/plugin.php:212
wp_nav_menu()
wp-includes/nav-menu-template.php:226
tdb_header_menu->inner()
wp-content/plugins/td-cloud-library/shortcodes/header/tdb_header_menu.php:1402
tdb_header_menu->render()
wp-content/plugins/td-cloud-library/shortcodes/header/tdb_header_menu.php:1263
td_global_blocks::proxy_function()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php:27
do_shortcode_tag()
wp-includes/shortcodes.php:343
preg_replace_callback()
wp-includes/shortcodes.php:343
do_shortcode()
wp-includes/shortcodes.php:218
tdc_composer_block->do_shortcode()
wp-content/plugins/td-composer/includes/tdc_composer_block.php:273
vc_column->render()
wp-content/plugins/td-composer/includes/shortcodes/vc_column.php:283
td_global_blocks::proxy_function()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php:27
do_shortcode_tag()
wp-includes/shortcodes.php:343
preg_replace_callback()
wp-includes/shortcodes.php:343
do_shortcode()
wp-includes/shortcodes.php:218
tdc_composer_block->do_shortcode()
wp-content/plugins/td-composer/includes/tdc_composer_block.php:273
vc_row->render()
wp-content/plugins/td-composer/includes/shortcodes/vc_row.php:1098
td_global_blocks::proxy_function()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php:27
do_shortcode_tag()
wp-includes/shortcodes.php:343
preg_replace_callback()
wp-includes/shortcodes.php:343
do_shortcode()
wp-includes/shortcodes.php:218
tdc_composer_block->do_shortcode()
wp-content/plugins/td-composer/includes/tdc_composer_block.php:273
tdc_zone->render()
wp-content/plugins/td-composer/includes/shortcodes/tdc_zone.php:591
td_global_blocks::proxy_function()
wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php:27
do_shortcode_tag()
wp-includes/shortcodes.php:343
preg_replace_callback()
wp-includes/shortcodes.php:343
do_shortcode()
wp-includes/shortcodes.php:218
{closure}()
wp-content/plugins/td-composer/td-composer.php:250
do_action(‘tdc_header’)
wp-includes/plugin.php:484
load_template(‘wp-content/themes/Newspaper/header.php’)
wp-includes/template.php:730
locate_template()
wp-includes/template.php:676
get_header()
wp-includes/general-template.php:48

Post count: 35449

Hi,
A part from the api request are for socials, like YouTube data that can be use for social counter, or for playlist, the rest of them are from blocks (when you use feature videos for YouTube), modules and header.
Normally, the access for them is Forbidden only if there is something modSecurity, Wordface, firewall .. that is blocking the requests.
Thank you!

Post count: 27

please advice a solid solution. The website is already slow and these api calls are taking 8 seconds. Why dos this article make these calls and why my own system would block these ‘get’ requests?

A example url where calls are triggered: https://myrocknews.com/coheed-and-cambria-release-official-video-for-new-single-shoulders/

GET https://www.googleapis.com/youtube/v3/videos
?id=VcJvkp6Itbg
&part=id,contentDetails,snippet,player
&key= 403 Forbidden

HTTP API Transport: curl
DNS Resolution Time: 5.5143
Connection Time: 5.5295
Transfer Start Time (TTFB): 5.5827
Response Size: 181 B
Response Content Type: application/json; charset=UTF-8
IP Address: 2a00:1450:400e:802::200a

td_remote_http::get_url_wordpress()

Plugin: td-composer 30 5.6029
GET https://www.googleapis.com/youtube/v3/videos
?id=wX_aPTCUOEY
&part=id,contentDetails,snippet,player
&key= 403 Forbidden

HTTP API Transport: curl
DNS Resolution Time: 0.0000
Connection Time: 0.0161
Transfer Start Time (TTFB): 0.0703
Response Size: 181 B
Response Content Type: application/json; charset=UTF-8
IP Address: 2a00:1450:400e:802::200a

td_remote_http::get_url_wordpress()

Plugin: td-composer 30 0.0728
GET https://www.googleapis.com/youtube/v3/videos
?id=jH_a5YecbEI
&part=id,contentDetails,snippet,player
&key= 403 Forbidden

td_remote_http::get_url_wordpress()

Plugin: td-composer 30 0.0677
GET https://www.googleapis.com/youtube/v3/videos
?id=tNoY7RfjWqg
&part=id,contentDetails,snippet,player
&key= 403 Forbidden

td_remote_http::get_url_wordpress()

Plugin: td-composer 30 0.0810
GET https://www.googleapis.com/youtube/v3/videos
?id=ywh3Nhllpvc
&part=id,contentDetails,snippet,player
&key= 403 Forbidden

td_remote_http::get_url_wordpress()

Plugin: td-composer 30 0.0762

  • This reply was modified 4 years by Dibbes.
Post count: 18283

Hello!

Please contact your host and ask them about any security features and if they provide it to your plan. Also let us know exactly what plugins are you running.

Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.