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?
- Prevent WordPress from automatically installing a new theme each year
- Can we use one WordPress installation for multiple databases, domains and content directories
- When adding a custom REST endpoint, where do you put the endpoint function, and where do you put the function registration call?
- Different fields in My Profile page depending on user role
- modify all posts of a category to “no comments allowed”
- How to not allow custom roles to edit published custom post types?
- Menu Link Redirect Based on Username or User ID
- What’s the most minimal way in which a page can be hooked into WP?
- How to handle security on a wordpress site? [closed]
- adding custom classes for tables
- Remove ‘rel’ attributes from the_category() output
- Display page content AFTER a loop of posts
- Copyright messages for a particular set of pages
- how to replace embedded “full” sized images within a post with the “large” ones
- How can I create a custom meta box to add an mp4 video to a page?
- Paginate Author’s Post List on Custom Author Page (ANOTHER THEORY)
- Custom post type menu missing after 3.0b2 -> 3.1.2 upgrade
- Taxonomy linked to pages
- View Private Published Page with URL Code (no login required)
- Sort posts by multiple meta key values
- Any recommendation on how to manage ads?
- How to Call a static page in WordPress
- How can I modify all existing tags while keeping the urls themselves?
- Create custom dashboard for Multisite admins
- How to list custom fields as headers and list all pages sharing that custom field under it?
- Send reply with pre-prepared answers
- Shortcode to display Staff post type based on Location post type and Specialty post type
- Highlight comments of all the site authors
- Allow guests to use WP Customizer but disable save button
- Add a custom meta box in the post options that loads some html code in the header
- Can I add/replace the WordPress image in the Dashboard
- How does order=asc effect a wp_query (its acting pretty weird in a loop)
- Add content in between of foreach
- How to insert a writing panel between the title and the page content?
- Show custom message/info for authors in add/edit post page
- How to transfer one domain to another domain without losing theme options (customizer)?
- Display Youtube Time Automate from Key
- How to change the wp_upload_dir() path in plugin
- Wp-query Order By problem
- Create a page that dynamically loads data
- How can I apply custom sanitization to new usernames?
- WordPress Count posts within a custom post type
- Theme for subcategories
- save metabox with new values _wp_page_template
- Using the media library for theme customization
- How to set up conditionals in page templates?
- My posts show 2 comment forms
- How do you set the default page in WordPress?
- Custom Post Type Implementation
- How to output all taxonomy links from a custom post type in a menu?
- Searching with Multiple (Parallel) Criteria on Custom Fields?
- Save custom field types with this function…?
- How do I change my permalink structure to a custom structure on an established blog?
- I found this code to be very useful, how can I change it to a text that display “Product versions and period of last update” rather than a button?
- Bootstrap slider not working
- If Statement is Ignored?
- Editing a website made with wordpress
- How do I make elements in mobile only reverse order?
- Cannot replace header & footer using “the_content”
- Creating custom setting in add media popup
- Still desperate about multiple TinyMCEs in widgets – is there any good solution to this yet?
- WordPress Customizer Help with FontAwesome Icon
- Display ads by location [closed]
- Replace custom gallery shortcode with default gallery shortcode
- Customize search results to include custom posts and display in a specific template page
- Integrate non-wordpress site into a wordpress site
- Custom permalink based on custom post type fields
- Taxonomy template by post type
- Is each issue of a magazine site a static page
- display certain category on custom template page
- Setting Custom WordPress “Posts page” AS “Front page”
- Inserting two categories
- How to show only the date, the title and a little “summary” of my WordPress post in my custom theme?
- WordPress Code Access to Restricted Content without Registration
- How to pre-set WordPress settings for specific posts?
- Add Custom postmeta Fields to Custom Post Type RSS in wordpress
- Is it possible assign a secondary existing role to already existing one?
- Set custom banner image size with wp_customize
- Resources for building a custom event page template