{"id":256279,"date":"2025-10-23T13:44:28","date_gmt":"2025-10-23T13:44:28","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/mdi-http-referer-block\/"},"modified":"2025-12-18T11:50:52","modified_gmt":"2025-12-18T11:50:52","slug":"mdi-http-referer-block","status":"publish","type":"plugin","link":"https:\/\/gl.wordpress.org\/plugins\/mdi-http-referer-block\/","author":17476159,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"1.0.2","tested":"6.9.4","requires":"5.6","requires_php":"","requires_plugins":null,"header_name":"Smart Traffic Source Filter for WordPress","header_author":"Medium Interactive","header_description":"Hide elements or redirect users when arriving from configured referrer domains. Supports PHP-side and client-side checks and optional notification.","assets_banners_color":"d5e4ea","last_updated":"2025-12-18 11:50:52","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/mediuminteractive.com\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":500,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"mediuminteractive","date":"2025-11-17 06:23:19"},"1.0.1":{"tag":"1.0.1","author":"mediuminteractive","date":"2025-12-15 18:20:28"},"1.0.2":{"tag":"1.0.2","author":"mediuminteractive","date":"2025-12-18 11:50:52"},"1.0.3":{"tag":"1.0.3","author":"mediuminteractive","date":"2026-02-25 08:16:54"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128-odl.png":{"filename":"icon-128x128-odl.png","revision":3470899,"resolution":"128x128","location":"assets","locale":"odl"}},"assets_banners":{"banner-772x250-old.jpg":{"filename":"banner-772x250-old.jpg","revision":3470899,"resolution":"772x250","location":"assets","locale":"old"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.0.1","1.0.2","1.0.3"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3395118,"resolution":"1","location":"assets","locale":""}},"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[388,5237,727,5203,4131],"plugin_category":[36],"plugin_contributors":[177069],"plugin_business_model":[],"class_list":["post-256279","plugin","type-plugin","status-publish","hentry","plugin_tags-cookie","plugin_tags-hide-content","plugin_tags-redirect","plugin_tags-referer","plugin_tags-referrer","plugin_category-analytics","plugin_contributors-mediuminteractive","plugin_committers-mediuminteractive"],"banners":{"banner":"https:\/\/ps.w.org\/mdi-http-referer-block\/assets\/banner-772x250-old.jpg?rev=3470899","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/mdi-http-referer-block\/assets\/icon-128x128-odl.png?rev=3470899","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/mdi-http-referer-block\/assets\/screenshot-1.png?rev=3395118","caption":""}],"raw_content":"<!--section=description-->\n<p>Tired of spam form submissions from suspicious referral sources? Want to block or redirect traffic from specific ad networks that send low-quality leads? Managing traffic quality shouldn't require a developer. We made it easy!<\/p>\n\n<p>Smart Traffic Source Filter gives WordPress site owners complete control over user experience based on traffic origin. By analyzing the HTTP referrer (both server-side via PHP and client-side via JavaScript when headers are missing), this plugin makes it easy to detect where visitors come from and apply different behavior\u2014whether you need to filter spam, protect forms, redirect unwanted traffic, or optimize conversions for high-quality sources.<\/p>\n\n<p>You can define specific referrer domains or patterns, and when a visitor matches those conditions, the plugin can:<\/p>\n\n<ul>\n<li>Display a small notification (server-side) showing the detected referrer host or path.<\/li>\n<li>Hide or reveal specific elements on your site using CSS selectors.<\/li>\n<li>Redirect visitors from certain sources to a different URL.<\/li>\n<\/ul>\n\n<p>This gives marketers, advertisers, and site owners fine control over how different audiences see the site.<\/p>\n\n<p>Example use cases:<\/p>\n\n<ul>\n<li>Hide contact forms when users arrive through syndicated search traffic to prevent spam or low-quality leads.<\/li>\n<li>Hide pricing details when a user comes from social media to encourage engagement before pricing exposure.<\/li>\n<li>Redirect visitors from affiliate networks to a dedicated landing page.<\/li>\n<li>Show a simple banner confirming that the user arrived via a partner campaign.<\/li>\n<\/ul>\n\n<p>The plugin sets a tracking cookie (<code>mdi_syndicated_ref<\/code>) to remember the detected source for the configured number of days, ensuring consistent visibility rules on repeat visits.<\/p>\n\n<p>MDI HTTP Referer Block helps you tailor on-site experiences dynamically based on real visitor origin \u2014 simple, server-side controlled, and privacy-respecting.<\/p>\n\n<p>For a full guide on blocking syndicated search traffic (e.g., Google Ads Performance Max), see:<br \/>\nhttps:\/\/mediuminteractive.com\/how-to-block-syndicated-search-traffic-from-performance-max-campaigns-in-google-ads\/<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>mdi-http-referer<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress.<\/li>\n<li>Configure settings at: Settings \u2192 HTTP Referer.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"will%20this%20expose%20the%20full%20referrer%20url%20publicly%3F\"><h3>Will this expose the full referrer URL publicly?<\/h3><\/dt>\n<dd><p>No. The plugin only outputs host and path in the notification to avoid leaking query parameters. Referrer data is sanitized.<\/p><\/dd>\n<dt id=\"does%20the%20plugin%20support%20regex%20matching%3F\"><h3>Does the plugin support regex matching?<\/h3><\/dt>\n<dd><p>The client-side code treats configured domain strings as patterns and will try to use them as regex. Keep patterns simple (example: <code>example\\.com<\/code> or <code>partner.example<\/code>).<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial public release.<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Update assets<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Update assets<\/li>\n<\/ul>","raw_excerpt":"Hide elements or redirect users based on referrer domains. Useful for blocking partners, scrapers, or altering content per source.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/256279","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=256279"}],"author":[{"embeddable":true,"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mediuminteractive"}],"wp:attachment":[{"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=256279"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=256279"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=256279"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=256279"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=256279"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/gl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=256279"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}