Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    unwanted and unauthorized ads on my site!

    Hey I hope this is in the right section. If not, sorry.

    My website - jworld2.sitesled.com, and I think all the other html pages hosted on my server account have unauthorized ads placed on them. If you click the link you can see it. It is the only ad on the site.

    Viewing the page source, I found some html that I did not put there-

    <BR><BR>
    <BR><BR>
    <CENTER>
    <script language='JavaScript' type='text/javascript' src='http://www.wecounthits.com/process/adengine/adx.js'></script>
    <script language='JavaScript' type='text/javascript'>
    <!--
    if (!document.phpAds_used) document.phpAds_used = ',';
    phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);

    document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
    document.write ("http://www.wecounthits.com/process/adengine/adjs.php?n=" + phpAds_random);
    document.write ("&what=zone:44");
    document.write ("&exclude=" + document.phpAds_used);
    if (document.referrer)
    document.write ("&referer=" + escape(document.referrer));
    document.write ("'><" + "/script>");
    //-->
    </script><noscript><a href='http://www.wecounthits.com/process/adengine/adclick.php?n=aa7be145' target='_blank'><img src='http://www.wecounthits.com/process/adengine/adview.php?what=zone:44&n=aa7be145' border='0' alt=''></a></noscript>
    </CENTER>


    I tested this code and figured out that it is indeed this that created the ads on my site. Right clicking on the ad and going to properties, in the address section, I found a url that resembled this- http://b1.adbrite.com/iads/22644.gif. I say it only resembled that because the ads are not always the same and the url may be slightly different. But the url always says "adbrite" in it. I searched about adbrite and it seems to be a professional ad placing service.

    You can see the url for wecounthits.com. I went to that site and it is a statcounting site that says it does not put ads on people's sites. I put in the url http://www.wecounthits.com/process/adengine from above. If you click on that link, you go to a page that says welcome to phpAdsNew, which I found out is now Openads. That is as far as I got into finding the source of the ads.

    I may just be going nowhere here, but I was hoping that somebody knows anymore about this. It may just be the work of hackers. I was also hoping that there would be a way to get rid of the ads without having to upload all of the html files over again. Thank you for your patience and help!

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Have you contacted your web host about this? It seems like this might either be them starting to add ads to their pages or someone has compromised their server.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Senior Coder whizard's Avatar
    Join Date
    Jan 2005
    Location
    Philadelphia, PA, USA
    Posts
    1,662
    Thanks
    14
    Thanked 76 Times in 76 Posts
    It seems as if there is a sudden flood of people saying that they are finding unexpected things in their source code... I wonder if there is some new hacking technique?

    Dan
    PHP Tip: If you want to use short tags (<? or <?=$var) then make sure short_open_tag is set to "1". It really helps.

    Don't forget to save everyone time and mark your thread as Resolved :)

    "Also note that it is your responsibility to die() if necessary."

    DON'T USE THE MYSQL_ EXTENSION

  • #4
    Senior Coder CFMaBiSmAd's Avatar
    Join Date
    Oct 2006
    Location
    Denver, Colorado USA
    Posts
    3,026
    Thanks
    2
    Thanked 314 Times in 306 Posts
    Viewing the page source
    Is the information in your post based on using a browser's "view source" or is the bad code actually contained in the source files on the server?
    If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.

  • #5
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    well the source is from the browser view source, but from what I've gathered, I think my server is now putting ads on the sites. I will still check around for more info, but I think that is what's going on. If that is the case though, they really should have notified people first, and also the ads are right in the middle of things. They should have placed them out of the way.

  • #6
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'd start complaining quickly about that, especially because your paying not to have the annoying advertisements on your page, of course, unless they are your own ads...

  • #7
    Senior Coder CFMaBiSmAd's Avatar
    Join Date
    Oct 2006
    Location
    Denver, Colorado USA
    Posts
    3,026
    Thanks
    2
    Thanked 314 Times in 306 Posts
    His host is a free hosting service.
    If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.

  • #8
    Senior Coder
    Join Date
    Jul 2005
    Location
    UK
    Posts
    1,051
    Thanks
    6
    Thanked 13 Times in 13 Posts
    Yeah, unfortunately you get what you pay for. I know that host states they don't put ads on sites hosted with them, but it's their server... they can basically do whatever the hell they like.

    With shared hosting costing as little as it does these days I'm surprised that anyone still uses these free hosting services (especially when it's an actual company website ).

    The bottom line is if you want peace of mind you need only shell out a few bucks/quid per month.

  • #9
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    I'd imagine the ads are being placed into the pages when the web server sends them to the client. And since you are using a free host, if they've decided to do that, there isn't really anything you can do about it except switch hosts. And I have to agree with the above post, hosting is fairly cheap and then you get no ads so that is something you should definitely look into.

    And discussion about removing ads that free hosts add into the pages through other means is off limits.
    OracleGuy


  •  

    Posting Permissions

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