lundi 19 décembre 2016

How to identify if Google Adsense code is submitted?

​ How could I recognize or identify with PHP or Javascript if a submitted code is equals to a Google Adsense code?

For example, I submit several javascript codes onto my website through a form, and the program should recognize when I submit a Google Adsense Code. How could it be possible? And I mean I submit any adsense code, the software would recognize it. Thanks for everyone in advance for any idea!

I'd like to solve the problem, but have no idea how to start.

Some ways I started thinking of (please do not read this before you have an idea, or it will confuse you)

I submit a code, and PHP checks if the code contains usual elements from the AdSense code. I realized this trial is bad, because a code can contain elements of the adsense code, but that can be expanded with unique elements, so the code still passes the check.

Another way I started thinking was to write a program that limits the input of a code, and the limitation is about the length of the adsense code, but I realized, that adsense code length changes from time to time.

Another way I was thinking of was to check manually whether it is adsense code submitted or not. Worst solution.

Aucun commentaire:

Enregistrer un commentaire