Deprecated: Function register_sidebar_widget is deprecated since version 2.8.0! Use wp_register_sidebar_widget() instead. in /mnt/web221/b1/51/512220951/htdocs/wp-includes/functions.php on line 6078 Deprecated: Function register_widget_control is deprecated since version 2.8.0! Use wp_register_widget_control() instead. in /mnt/web221/b1/51/512220951/htdocs/wp-includes/functions.php on line 6078 Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /mnt/web221/b1/51/512220951/htdocs/wp-content/plugins/wordpress-seo/src/conditionals/third-party/elementor-edit-conditional.php on line 22 Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /mnt/web221/b1/51/512220951/htdocs/wp-content/plugins/wordpress-seo/src/conditionals/third-party/elementor-edit-conditional.php on line 28 Warning: Constant FORCE_SSL_ADMIN already defined in /mnt/web221/b1/51/512220951/htdocs/wp-config.php on line 94 Warning: Cannot modify header information - headers already sent by (output started at /mnt/web221/b1/51/512220951/htdocs/wp-includes/functions.php:6078) in /mnt/web221/b1/51/512220951/htdocs/wp-includes/rest-api/class-wp-rest-server.php on line 1831 Warning: Cannot modify header information - headers already sent by (output started at /mnt/web221/b1/51/512220951/htdocs/wp-includes/functions.php:6078) in /mnt/web221/b1/51/512220951/htdocs/wp-includes/rest-api/class-wp-rest-server.php on line 1831 Warning: Cannot modify header information - headers already sent by (output started at /mnt/web221/b1/51/512220951/htdocs/wp-includes/functions.php:6078) in /mnt/web221/b1/51/512220951/htdocs/wp-includes/rest-api/class-wp-rest-server.php on line 1831 Warning: Cannot modify header information - headers already sent by (output started at /mnt/web221/b1/51/512220951/htdocs/wp-includes/functions.php:6078) in /mnt/web221/b1/51/512220951/htdocs/wp-includes/rest-api/class-wp-rest-server.php on line 1831 Warning: Cannot modify header information - headers already sent by (output started at /mnt/web221/b1/51/512220951/htdocs/wp-includes/functions.php:6078) in /mnt/web221/b1/51/512220951/htdocs/wp-includes/rest-api/class-wp-rest-server.php on line 1831 Warning: Cannot modify header information - headers already sent by (output started at /mnt/web221/b1/51/512220951/htdocs/wp-includes/functions.php:6078) in /mnt/web221/b1/51/512220951/htdocs/wp-includes/rest-api/class-wp-rest-server.php on line 1831 Deprecated: Return type of Yoast\WP\Lib\Model::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web221/b1/51/512220951/htdocs/wp-content/plugins/wordpress-seo/lib/model.php on line 560 Deprecated: Return type of Yoast\WP\Lib\ORM::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web221/b1/51/512220951/htdocs/wp-content/plugins/wordpress-seo/lib/orm.php on line 2457 Deprecated: Return type of Yoast\WP\Lib\ORM::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web221/b1/51/512220951/htdocs/wp-content/plugins/wordpress-seo/lib/orm.php on line 2468 Deprecated: Return type of Yoast\WP\Lib\ORM::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web221/b1/51/512220951/htdocs/wp-content/plugins/wordpress-seo/lib/orm.php on line 2478 Deprecated: Return type of Yoast\WP\Lib\ORM::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /mnt/web221/b1/51/512220951/htdocs/wp-content/plugins/wordpress-seo/lib/orm.php on line 2490

WordPress database error: [Table 'dbs9686871.yoast_wp_seo_models_indexable' doesn't exist]
SELECT * FROM `yoast_wp_seo_models_indexable` WHERE `object_id` = '254' AND `object_type` = 'post' LIMIT 1

WordPress database error: [Table 'dbs9686871.yoast_wp_seo_models_indexable' doesn't exist]
SELECT * FROM `yoast_wp_seo_models_indexable` WHERE `object_id` = '254' AND `object_type` = 'post' LIMIT 1

Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /mnt/web221/b1/51/512220951/htdocs/wp-content/plugins/wordpress-seo/src/builders/indexable-post-builder.php on line 125

WordPress database error: [Table 'dbs9686871.yoast_wp_seo_models_primary_term' doesn't exist]
SELECT * FROM `yoast_wp_seo_models_primary_term` WHERE `post_id` = '254' AND `taxonomy` = 'category' LIMIT 1

WordPress database error: [Table 'dbs9686871.yoast_wp_seo_models_primary_term' doesn't exist]
SELECT * FROM `yoast_wp_seo_models_primary_term` WHERE `post_id` = '254' AND `taxonomy` = 'category' LIMIT 1

WordPress database error: [Table 'dbs9686871.yoast_wp_seo_models_indexable_hierarchy' doesn't exist]
DELETE FROM `yoast_wp_seo_models_indexable_hierarchy` WHERE `indexable_id` = NULL

WordPress database error: [Table 'dbs9686871.yoast_wp_seo_models_indexable' doesn't exist]
SELECT * FROM `yoast_wp_seo_models_indexable` WHERE `object_id` = '1' AND `object_type` = 'user' LIMIT 1

WordPress database error: [Table 'dbs9686871.yoast_wp_seo_models_indexable' doesn't exist]
SELECT * FROM `yoast_wp_seo_models_indexable` WHERE `object_id` = '1' AND `object_type` = 'user' LIMIT 1

WordPress database error: [Table 'dbs9686871.yoast_wp_seo_models_indexable' doesn't exist]
SELECT `id` FROM `yoast_wp_seo_models_indexable` WHERE `object_type` = 'post' AND `object_sub_type` IN ('post') AND `author_id` = '1' AND `is_public` = '1' LIMIT 1

WordPress database error: [Table 'dbs9686871.yoast_wp_seo_models_indexable' doesn't exist]
SELECT `id` FROM `yoast_wp_seo_models_indexable` WHERE `object_type` = 'post' AND `object_sub_type` IN ('post') AND `author_id` = '1' AND `is_public` = '1' LIMIT 1

WordPress database error: [Table 'dbs9686871.yoast_wp_seo_models_indexable' doesn't exist]
SELECT `id` FROM `yoast_wp_seo_models_indexable` WHERE `object_type` = 'post' AND `object_sub_type` IN ('post') AND `author_id` = '1' AND `is_public` IS NULL LIMIT 1

WordPress database error: [Table 'dbs9686871.yoast_wp_seo_models_indexable' doesn't exist]
SELECT `id` FROM `yoast_wp_seo_models_indexable` WHERE `object_type` = 'post' AND `object_sub_type` IN ('post') AND `author_id` = '1' AND `is_public` IS NULL LIMIT 1

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mnt/web221/b1/51/512220951/htdocs/wp-content/plugins/wordpress-seo/src/models/indexable.php on line 167

WordPress database error: [Table 'dbs9686871.yoast_wp_seo_models_indexable' doesn't exist]
INSERT INTO `yoast_wp_seo_models_indexable` (`object_type`, `object_id`, `permalink`, `title`, `description`, `is_cornerstone`, `is_robots_noindex`, `is_robots_nofollow`, `is_robots_noarchive`, `is_robots_noimageindex`, `is_robots_nosnippet`, `is_public`, `has_public_posts`, `blog_id`, `open_graph_image`, `open_graph_image_id`, `open_graph_image_source`, `open_graph_image_meta`, `twitter_image`, `twitter_image_id`, `twitter_image_source`, `version`, `permalink_hash`, `created_at`, `updated_at`) VALUES ('user', '1', 'https://www.rickroetenberg.com/author/admin/', NULL, NULL, '0', '0', NULL, NULL, NULL, NULL, NULL, '0', '1', 'https://secure.gravatar.com/avatar/bc3d8afa4c08e3c680ab5b8233ba4b80?s=500&d=mm&r=g', NULL, 'gravatar-image', NULL, 'https://secure.gravatar.com/avatar/bc3d8afa4c08e3c680ab5b8233ba4b80?s=500&d=mm&r=g', NULL, 'gravatar-image', '1', '44:d0c42e6c0b758b5b57289e1ac097bf08', '2024-04-30 12:41:59', '2024-04-30 12:41:59')

WordPress database error: [Table 'dbs9686871.yoast_wp_seo_models_indexable' doesn't exist]
INSERT INTO `yoast_wp_seo_models_indexable` (`object_type`, `object_id`, `object_sub_type`, `permalink`, `primary_focus_keyword_score`, `readability_score`, `is_cornerstone`, `is_robots_noindex`, `is_robots_nofollow`, `is_robots_noimageindex`, `is_robots_noarchive`, `is_robots_nosnippet`, `open_graph_image`, `open_graph_image_id`, `open_graph_image_source`, `open_graph_image_meta`, `twitter_image`, `twitter_image_id`, `twitter_image_source`, `primary_focus_keyword`, `canonical`, `title`, `description`, `breadcrumb_title`, `open_graph_title`, `open_graph_description`, `twitter_title`, `twitter_description`, `estimated_reading_time_minutes`, `author_id`, `post_parent`, `number_of_pages`, `post_status`, `is_protected`, `is_public`, `has_public_posts`, `blog_id`, `schema_page_type`, `schema_article_type`, `version`, `has_ancestors`, `permalink_hash`, `created_at`, `updated_at`) VALUES ('post', '254', 'post', 'https://www.rickroetenberg.com/deny-access-to-resource-based-on-http-headers/', '84', '0', '0', NULL, '0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Deny access to resource based on HTTP Headers', NULL, NULL, 'http header, netscaler, citrix, citrix netscaler, deny access http headers, user-agent ipad, Deny access to resource based on HTTP Headers', 'Deny access to resource based on HTTP Headers', NULL, NULL, NULL, NULL, NULL, '1', '0', NULL, 'publish', '0', NULL, NULL, '1', NULL, NULL, '1', '', '77:5c5a143183a5c14a763113b6f3a8222b', '2024-04-30 12:41:59', '2024-04-30 12:41:59')

WordPress database error: [Table 'dbs9686871.yoast_wp_seo_models_indexable' doesn't exist]
SELECT * FROM `yoast_wp_seo_models_indexable` WHERE `object_type` = 'home-page' LIMIT 1

WordPress database error: [Table 'dbs9686871.yoast_wp_seo_models_indexable' doesn't exist]
SELECT * FROM `yoast_wp_seo_models_indexable` WHERE `object_type` = 'home-page' LIMIT 1

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /mnt/web221/b1/51/512220951/htdocs/wp-content/plugins/wordpress-seo/src/models/indexable.php on line 167

WordPress database error: [Table 'dbs9686871.yoast_wp_seo_models_indexable' doesn't exist]
INSERT INTO `yoast_wp_seo_models_indexable` (`object_type`, `title`, `breadcrumb_title`, `permalink`, `blog_id`, `description`, `is_robots_noindex`, `open_graph_title`, `open_graph_image`, `open_graph_image_id`, `open_graph_description`, `open_graph_image_source`, `open_graph_image_meta`, `version`, `permalink_hash`, `created_at`, `updated_at`) VALUES ('home-page', '%%sitename%% %%page%% %%sep%% %%sitedesc%%', 'Home', 'https://www.rickroetenberg.com/', '1', 'Technical Consultant', '0', '%%sitename%%', '', '0', '', NULL, NULL, '1', '31:7850956d7f1a75f01d7a0f54a38d6390', '2024-04-30 12:41:59', '2024-04-30 12:41:59')

WordPress database error: [Table 'dbs9686871.yoast_wp_seo_models_indexable_hierarchy' doesn't exist]
SELECT `ancestor_id` FROM `yoast_wp_seo_models_indexable_hierarchy` WHERE `indexable_id` = '0' ORDER BY `depth` DESC

WordPress database error: [Table 'dbs9686871.yoast_wp_seo_models_indexable_hierarchy' doesn't exist]
SELECT `ancestor_id` FROM `yoast_wp_seo_models_indexable_hierarchy` WHERE `indexable_id` = '0' ORDER BY `depth` DESC

WordPress database error: [Table 'dbs9686871.yoast_wp_seo_models_indexable_hierarchy' doesn't exist]
DELETE FROM `yoast_wp_seo_models_indexable_hierarchy` WHERE `indexable_id` = '0'

Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /mnt/web221/b1/51/512220951/htdocs/wp-content/plugins/wordpress-seo/src/generators/schema-generator.php on line 176 Warning: Cannot modify header information - headers already sent by (output started at /mnt/web221/b1/51/512220951/htdocs/wp-includes/functions.php:6078) in /mnt/web221/b1/51/512220951/htdocs/wp-includes/rest-api/class-wp-rest-server.php on line 1831 Warning: Cannot modify header information - headers already sent by (output started at /mnt/web221/b1/51/512220951/htdocs/wp-includes/functions.php:6078) in /mnt/web221/b1/51/512220951/htdocs/wp-includes/rest-api/class-wp-rest-server.php on line 1831 {"id":254,"date":"2015-03-25T14:12:26","date_gmt":"2015-03-25T13:12:26","guid":{"rendered":"http:\/\/www.rickroetenberg.com\/?p=254"},"modified":"2015-03-25T14:17:58","modified_gmt":"2015-03-25T13:17:58","slug":"deny-access-to-resource-based-on-http-headers","status":"publish","type":"post","link":"https:\/\/www.rickroetenberg.com\/deny-access-to-resource-based-on-http-headers\/","title":{"rendered":"Deny access to resource based on HTTP Headers"},"content":{"rendered":"

In this blog I will describe how to configure the Citrix NetScaler\u00a0to deny access to an resource based on HTTP Headers. This\u00a0often will be used to deny access to an website for particular web browsers\/devices.<\/p>\n

<\/p>\n

Deny access to resource based on HTTP Headers<\/h2>\n

A few days ago an customer asked me if it was possible to decline access to an back-end server from the Internet for every device besides the iPad\/iPhone with an installed app from the builder. So only the app should have access to the back-end server.<\/p>\n

I realized this by using the Content Switching feature in the NetScaler. As conditions I used:<\/p>\n

HTTP.REQ.HOSTNAME.CONTAINS(“URL”) && HTTP.REQ.HEADER(“User-Agent”).CONTAINS(“iPad”) &&
\n<\/em>HTTP.REQ.HOSTNAME.CONTAINS(“URL”) && HTTP.REQ.HEADER(“User-Agent”).CONTAINS(“Safari”).NOT ||
\nHTTP.REQ.HOSTNAME.CONTAINS(“URL”) && HTTP.REQ.HEADER(“User-Agent”).CONTAINS(“iPhone”) &&
\nHTTP.REQ.HOSTNAME.CONTAINS(“URL”) && HTTP.REQ.HEADER(“User-Agent”).CONTAINS(“Safari”).NOT<\/em><\/strong><\/p>\n

On Apple ios the User-Agent from Safari and Google Chrome both are Safari, so in this case this would be enough.<\/p>\n

Ofcourse when somebody uses an\u00a0tool to fake\u00a0HTTP Headers they still get access, but\u00a0at least it’s something.<\/p>\n

Another option is to configure AAA for not Apple ios devices and app users to use the web functionality of the application.<\/p>\n

Sources:\u00a0https:\/\/developer.chrome.com\/multidevice\/user-agent<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

In this blog I will describe how to configure the Citrix NetScaler\u00a0to deny access to an resource based on HTTP Headers. This\u00a0often will be used to deny access to an website for particular web browsers\/devices.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,27,9,28],"tags":[],"yoast_head":"\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n\t\n\t\n