Results 1 to 8 of 8

Thread: how google script work?

  1. #1
    bullshitwebsites's Avatar
    bullshitwebsites is offline Newbie Net Builder
    Join Date
    Dec 2008
    Posts
    89
    Thanks
    0
    Thanked 10 Times in 8 Posts

    how google script work?

    Explain to me...how google script work?
    Here is a typical adsense script:
    <script type="text/javascript"><!--
    google_ad_client = "pub-xxxxxxxxxxxxxx";
    /* 468x60, created 9/23/08 */
    google_ad_slot = "2846379014";
    google_ad_width = 468;
    google_ad_height = 60;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>


    How can those simple lines of code can do wonders on your site? How do they know what ads to put on?
    BullshitWebsites.com- Website of the Year
    Domains for sale-High Premium Domains
    GoodKarmaToYou

  2. #2
    Charles's Avatar
    Charles is offline Senior Net Builder
    Join Date
    Dec 2008
    Location
    On the Bike
    Posts
    1,211
    Blog Entries
    5
    Thanks
    311
    Thanked 311 Times in 212 Posts
    http://pagead2.googlesyndication.com/pagead/show_ads.js

    Simple lines of code, eh? Perhaps ya forgot about JS includes?

  3. #3
    Will.Spencer's Avatar
    Will.Spencer is offline Retired
    Join Date
    Dec 2008
    Posts
    5,033
    Blog Entries
    1
    Thanks
    1,010
    Thanked 2,329 Times in 1,259 Posts
    Quote Originally Posted by bullshitwebsites View Post
    How can those simple lines of code can do wonders on your site? How do they know what ads to put on?
    Here is a very simplified view:

    1. Site visitor loads your page with a JavaScript enabled browser.
    2. Google JavaScript code is activated.
    3. Googe JavaScript reads your page and sends the content to Google.
    4. Google analyzes your page and decides what ads are relevant and will perform best.
    5. Google sends those ads to your site visitor's web browser.
    Submit Your Webmaster Related Sites to the NB Directory
    I swear, by my life and my love of it, that I will never live for the sake of another man, nor ask another man to live for mine.

  4. #4
    bullshitwebsites's Avatar
    bullshitwebsites is offline Newbie Net Builder
    Join Date
    Dec 2008
    Posts
    89
    Thanks
    0
    Thanked 10 Times in 8 Posts
    Quote Originally Posted by Will.Spencer View Post
    Here is a very simplified view:

    1. Site visitor loads your page with a JavaScript enabled browser.
    2. Google JavaScript code is activated.
    3. Googe JavaScript reads your page and sends the content to Google.
    4. Google analyzes your page and decides what ads are relevant and will perform best.
    5. Google sends those ads to your site visitor's web browser.
    Are you serious?
    It means google can capture what you are doing, anything on your HD and more and more.
    It is like having an invisible Mr.Google in your room, s/he can watch all your moves.

    It is frightening Man!!. I am going to have nightmares or might not go to bed.
    BullshitWebsites.com- Website of the Year
    Domains for sale-High Premium Domains
    GoodKarmaToYou

  5. #5
    Charles's Avatar
    Charles is offline Senior Net Builder
    Join Date
    Dec 2008
    Location
    On the Bike
    Posts
    1,211
    Blog Entries
    5
    Thanks
    311
    Thanked 311 Times in 212 Posts
    Quote Originally Posted by bullshitwebsites View Post
    Are you serious?
    It means google can capture what you are doing, anything on your HD and more and more.
    It is like having an invisible Mr.Google in your room, s/he can watch all your moves.

    It is frightening Man!!. I am going to have nightmares or might not go to bed.
    No? Where did he say that?

  6. #6
    Will.Spencer's Avatar
    Will.Spencer is offline Retired
    Join Date
    Dec 2008
    Posts
    5,033
    Blog Entries
    1
    Thanks
    1,010
    Thanked 2,329 Times in 1,259 Posts
    Quote Originally Posted by bullshitwebsites View Post
    Are you serious?
    Yes.

    Quote Originally Posted by bullshitwebsites View Post
    It means google can capture what you are doing, anything on your HD and more and more.
    Not quite. Read JavaScript Security. Here's an excerpt:
    The modern JavaScript security model is based upon Java. In theory, downloaded scripts are run by default in a restricted “sandbox” environment that isolates them from the rest of the operating system. Scripts are permitted access only to data in the current document or closely related documents (generally those from the same site as the current document). No access is granted to the local file system, the memory space of other running programs, or the operating system’s networking layer. Containment of this kind is designed to prevent malfunctioning or malicious scripts from wreaking havoc in the user’s environment. The reality of the situation, however, is that often scripts are not contained as neatly as one would hope. There are numerous ways that a script can exercise power beyond what you might expect, both by design and by accident.

    The fundamental premise of browsers’ security models is that there is no reason to trust randomly encountered code such as that found on Web pages, so JavaScript should be executed as if it were hostile. Exceptions are made for certain kinds of code, such as that which comes from a trusted source. Such code is allowed extended capabilities, sometimes with the consent of the user but often without requiring explicit consent. In addition, scripts can gain access to otherwise privileged information in other browser windows when the pages come from related domains.
    Submit Your Webmaster Related Sites to the NB Directory
    I swear, by my life and my love of it, that I will never live for the sake of another man, nor ask another man to live for mine.

  7. #7
    bullshitwebsites's Avatar
    bullshitwebsites is offline Newbie Net Builder
    Join Date
    Dec 2008
    Posts
    89
    Thanks
    0
    Thanked 10 Times in 8 Posts
    Let put it this way...nobody reads the TOS and it is very possible google can do whatever they want to do with your data and that includes capturing your keystrokes...??

    Google is getting strong and will be stronger as goggle and Obama are buddies. Isn't one of Obama's advisor from google?

    I guess nobody dares to challenge google.
    BullshitWebsites.com- Website of the Year
    Domains for sale-High Premium Domains
    GoodKarmaToYou

  8. #8
    Will.Spencer's Avatar
    Will.Spencer is offline Retired
    Join Date
    Dec 2008
    Posts
    5,033
    Blog Entries
    1
    Thanks
    1,010
    Thanked 2,329 Times in 1,259 Posts
    Quote Originally Posted by bullshitwebsites View Post
    Let put it this way...nobody reads the TOS
    The JavaScript security model is enforced by your web browser, not by the AdSense TOS.

    Quote Originally Posted by bullshitwebsites View Post
    .. and it is very possible google can do whatever they want to do with your data and that includes capturing your keystrokes...??
    That's a much higher risk with other Google applications, such as the Google Toolbar.
    Submit Your Webmaster Related Sites to the NB Directory
    I swear, by my life and my love of it, that I will never live for the sake of another man, nor ask another man to live for mine.

Similar Threads

  1. Replies: 0
    Last Post: 5 March, 2010, 10:03 AM
  2. Replies: 1
    Last Post: 14 January, 2010, 17:05 PM
  3. [WTB] youtube & Google video download script for sale $8
    By Kevinwills in forum Scripts
    Replies: 3
    Last Post: 18 November, 2009, 14:02 PM
  4. Replies: 0
    Last Post: 20 October, 2009, 12:59 PM
  5. Replies: 0
    Last Post: 19 October, 2009, 12:45 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •