View Single Post
Old 10-20-2019, 10:35 AM  
thommy
Confirmed User
 
thommy's Avatar
 
Industry Role:
Join Date: Jun 2003
Location: Switzerland / Germany / Thailand
Posts: 5,469
Quote:
Originally Posted by AmateurFlix View Post
It is possible that my site was penalized for "invisible click areas" because I use code like below to wrap a video feed on my pages. I just noticed that it is allowing clicks on the full width of the page, even in whitespace outside of the video feed:

Code:
<script type='text/javascript' src='//code.jquery.com/jquery-1.9.1.js'></script>
<style type='text/css'>
.my_container{position:relative;}
.my_overlay{top:0;left:0;width:99%;height:100%;position:absolute;cursor:pointer;}
</style>
<script type='text/javascript'>
$(window).load(function(){
$('.my_overlay').click(function(){window.open('http://mydomain.com/');})
});
</script>
<div class='my_container'>
	<iframe src='blah' height=528 width=850 style='border: none;'></iframe>
	<div class='my_overlay'></div>
</div>
Software detection would definitely pick up on that, humans would be unlikely to try clicking on it due to the location being near the bottom of the page and isolated horizontally.
if you did not change $('.my_overlay') to anything else even a adblocker will detect and block it.
if is is software detected and not human it is quite tricky to work around that.
__________________
Open for handpicked publishers and advertisers:
www.trafficfabrik.com
thommy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote