Skip to main content
Notice removed Canonical answer required by CommunityBot
Bounty Ended with no winning answer by CommunityBot
added 1182 characters in body
Source Link
user10360773
user10360773

My tests:

I have created a page with the following links: iframe.html

<div> <a href="https://example.com" target="_black">1</a> <a href="https://example.com" target="_black">2</a> <a href="https://example.com" target="_black">3</a> <a href="https://example.com" target="_black">4</a> <a href="https://example.com" target="_black">5</a> <a href="https://example.com" target="_black">6</a> <a href="https://example.com" target="_black">7</a> <a href="https://example.com" target="_black">8</a> </div> 

Then this page I have loaded in an iframe

<iframe src="http://example.com/iframe.html"></iframe> 

As a result it doesn't work, I can give all clicks on the links without any restriction

Note: It is difficult to determine the content of an iframe since ad providers such as google adsense do not define an exact content.

If in most cases the content of the iframe cannot be eliminated, then it will be possible to count the clicks that the iframe receives, and then create a div, a protective layer that covers the entire iframe and, thus avoid more than two or three clicks, according to the rule that I determine.


My tests:

I have created a page with the following links: iframe.html

<div> <a href="https://example.com" target="_black">1</a> <a href="https://example.com" target="_black">2</a> <a href="https://example.com" target="_black">3</a> <a href="https://example.com" target="_black">4</a> <a href="https://example.com" target="_black">5</a> <a href="https://example.com" target="_black">6</a> <a href="https://example.com" target="_black">7</a> <a href="https://example.com" target="_black">8</a> </div> 

Then this page I have loaded in an iframe

<iframe src="http://example.com/iframe.html"></iframe> 

As a result it doesn't work, I can give all clicks on the links without any restriction

Note: It is difficult to determine the content of an iframe since ad providers such as google adsense do not define an exact content.

If in most cases the content of the iframe cannot be eliminated, then it will be possible to count the clicks that the iframe receives, and then create a div, a protective layer that covers the entire iframe and, thus avoid more than two or three clicks, according to the rule that I determine.

Notice added Canonical answer required by user10360773
Bounty Started worth 100 reputation by CommunityBot
deleted 313 characters in body
Source Link
user10360773
user10360773

But the problem is that this code developed in jquery will disable me foreverHow can I set a validity time to the clicksdata stored in localStorage without the ad for that user since the click count is saved in localStorage and to restorebeing online or delete the localStorage session it is necessary to do it manually since this is not it will erase by itself.

So, how to replace the localStorage with a cookie that is active for 24 or 48 hours, so that user can click on the ads again.?

But the problem is that this code developed in jquery will disable me forever the clicks in the ad for that user since the click count is saved in localStorage and to restore or delete the localStorage session it is necessary to do it manually since this is not it will erase by itself.

So, how to replace the localStorage with a cookie that is active for 24 or 48 hours, so that user can click on the ads again.

How can I set a validity time to the data stored in localStorage without the user being online or not?

improve question
Link

How to protect invalid ads or malicious users using script jQuery?

Source Link
user10360773
user10360773
Loading