Not a wordpress questions really. You will get much better responses at stackoverflow.com. However you instigated my curiosity… you can get the referral url by using the following javascript:
document.referrer
You could add that to your current AD script to check if the document.referrer == “some url” before displaying the ad.
See more examples here
Related Posts:
- Google is unable to crawl Robots.txt file of my website and please help me
- Google saying is blocked by robots.txt without robots.txt on my website
- Google Adwords Tracking Code causing too many redirects error
- Add Adsense to a website but the server responds with error 510 [closed]
- Plugin for users to create their own ads like Google Adsence
- Google maps .gm-style div now displays as block, thus breaking the map
- Rich Snippets for WordPress
- Automatically post to Google+ on new post
- Remove Query String from Google jQuery
- Code syntax error, “userfullName undefined”
- How to remove Google Analyticator in WordPress site?
- Google disapproved Ads due to malware, but no malware in site? [closed]
- Old robots.txt file not changing, can’t update to the current robots.txt
- Google Apps Domain for WordPress
- Problem with WP_Query loop and search term
- How to fetch csv file and show in shortcode
- How to download finished WordPress project from Google Cloud?
- How find what plugins load google Font and block it
- Will dequeueing in child theme functions.php file prevent Google Fonts from loading?
- Google flagged a wp-admin redirect as phishing
- How to non index my website page links?
- I am getting Failed to load resource: net::ERR_BLOCKED_BY_CLIENT with Google chrome
- What is fbclid? the new facebook parameter
- Best collection of code for your 'functions.php' file [closed]
- How to: Easily Move a WordPress Install from Development to Production?
- Is moving wp-config outside the web root really beneficial?
- Hide the fact a site is using WordPress?
- Objective Best Practices for Plugin Development? [closed]
- Organizing Code in your WordPress Theme's functions.php File?
- What does this PHP function code mean? [closed]
- similar of my posts in all over the internet sites and blogs [closed]
- When to use is_home() vs is_front_page()?
- Is there a flowchart for WordPress loading sequence?
- How to change the default registration email ? (plugin and/or non-plugin)
- Best collection of code for your .htaccess file [closed]
- MySQL Database User: Which Privileges are needed?
- Essential technical features for high-end WordPress web hosting? [closed]
- How to structure a plugin
- How to remove admin menu pages inserted by plugins?
- How to create a custom search for custom post type?
- Opinions and recommendations on the best barebones base theme [closed]
- How to put logs in WordPress
- How to filter post listing (in WP dashboard posts listing) using a custom field (search functionality)?
- Conditionally Loading JavaScript/CSS for Shortcodes
- What is your best practice to execute one-time scripts?
- How to get the Date Format and Time Format settings for use in my template?
- Database synchronization between dev/staging and production
- what is the correct way to compare dates in a WP query_posts meta_query
- Explanation of update_post_(meta/term)_cache
- How to implement a customizable free OpenID authentication?
- Should all plugins be encapsulated in a Class?
- Add validation and error handling when saving custom fields?
- Best way to eliminate xmlrpc.php?
- Nested meta_query with multiple relation keys
- How To Add Custom Form Fields To The User Profile Page?
- Add multiple custom fields to the general settings page
- What SQL Query to do a simple find and replace
- What Features would you Most Like to See Added to WordPress? [closed]
- Why have on every line
- Where are Additional CSS files stored
- How can I edit post data before it is saved?
- How do i best handle custom plugin page actions?
- add_action(), add_filter() before or after function
- is_plugin_active function doesn’t exist
- Best Practices for Regression Testing WordPress Websites?
- numberposts? showposts? posts_per_page?
- Remove wrapping div and ul from output of wp_nav_menu
- Attaching taxonomy data to post with wp_insert_post
- What Is The Use Of map_meta_cap Filter?
- How do you use a CPT as the default home page?
- How to create an API for my plugin?
- Is it ever okay to include inline CSS in plugins?
- Plugins in symlinked directories?
- get post author id outside loop
- Difference between add_filter and apply_filters
- How can I make updates to a site, on a development copy, but then move updates back without overriding live site’s evolving database?
- Custom pages with plugin
- Proper Way to Modify Plugin
- Custom Walker: how to get ID in function start_lvl
- Pass boolean value in shortcode
- How to add crossorigin and integrity to wp_register_style? (Font Awesome 5)
- Customizing a WordPress theme without changing it?
- Creative uses of WordPress [closed]
- Can a custom post type have a Parent Page?
- Restrict custom post type to only site administrator role
- In Which Contexts are Plugins Responsible for Data Validation/Sanitization?
- Best practices for localizing WordPress content?
- Plugin Form Submission Best Practice
- How to *remove* a parent theme page template from a child theme?
- get_the_term_list without links in 3.1
- How to make a text with hyperlink translatable in WordPress?
- Creating an Image-Centric Custom Post Type?
- Validating Custom Meta Box Values & Required Fields
- How do I make my child theme re-apply the settings that were customised when its parent was active?
- Integrate WordPress and bbpress profiles?
- get_template_directory() vs bloginfo( ‘template_directory’ ) vs TEMPLATEPATH
- Is there a action hook for the “Empty Trash” button?
- Multiple Inputs in a Customizer Control
- New WP_Customize API – how does it work under the hood?
- Embedding a SOAP Client into a WordPress Plugin?