Plugin Sale! Save 15% on pro plugins with discount code: FALL2020
Web Dev + WordPress + Security

Protect Your Site Against UserCash and Other Scumbags

In this brief article I explain the atrocity that is UserCash and then provide the JavaScript needed to protect your site.

What is UserCash?

UserCash is an online advertising program that uses redirects and frames to exploit your site with advertisements. UserCash customers link to target sites using rewritten URL’s generated via the UserCash “generator/compiler.” There are two types of these rewritten UserCash links:

  • Links that use frames to create banner-like ads above your pages
  • Links that use frames to deploy landing-page ads before your pages

As of now, all UserCash links assume the following generalized format:

http://1z2l3e4gt6y44k7wqld9.usercash.com

UserCash then pays 70 cents (or less) for every 9999 top-frame clicks or 70 cents for every 3999 landing-page clicks. Let’s just pause for a moment to contemplate the implications of this idiocy:

  • UserCash is paying people to exploit sites that may not belong to them.
  • UserCash advertisements are low-quality, unwanted cheap spam junk ads.
  • UserCash pays 70 cents for 9999 ads, or, 70 bucks for a million ads.
  • UserCash is littering the Web with their cheap garbage advertisements.
  • UserCash will pay people to put garbage ads on any site — even yours.
  • Even Google is susceptible to this type of advertising (see screenshot).

I find it remarkably sad that there are people who are eager to force scummy spam ads upon others just to make a quick buck. It is also utterly pathetic that people are willing to sell out their own sites with such a blatantly cheap advertising stunt. Nonetheless, rather than continuing with this rant, let’s focus on a way to protect our sites against UserCash and any other site that tries to frame our pages..

Protect your site against UserCash and other framing scumbags

Fortunately, preventing scumbags such as UserCash from placing ads on your site is relatively easy. Simply link to or place the following JavaScript in the <head> of your web pages:

<script type="text/javascript">
<!--//--><![CDATA[//><!--

// break out of frames @ https://perishablepress.com/press/2007/12/03/protect-your-site-against-usercash-and-other-scumbags/

if (top.location != self.location)
top.location = self.location;

//--><!]]>
</script>

With this code in place, your pages will automatically “break out” of any enclosing frames. Of course, this method requires that JavaScript be enabled on the visitor’s browser, which happens to be the case for a large majority. When JavaScript is available, this code is highly effective at breaking your pages out of frames. This trick was taken from my article, HTML Frames Notes Plus.

Jeff Starr
About the Author
Jeff Starr = Designer. Developer. Producer. Writer. Editor. Etc.
Digging Into WordPress: Take your WordPress skills to the next level.

27 responses to “Protect Your Site Against UserCash and Other Scumbags”

  1. thanks, I had worked out another solution but yours is much simpler, going with it. damn usercash..

  2. Jeff Starr
    Perishable 2007/12/30 9:21 am

    Glad to hear it’s working for you, psilo — usercash doesn’t deserve any business that is attained by stealing from people!

  3. I totally forgot to do this when setting up my blog, and this is the second time I’ve been helped by this site. – Thanks!

  4. Jeff Starr
    Perishable 2008/01/13 9:19 am

    My pleasure — glad to be of service! ;)

  5. Webmaster 2008/01/23 6:19 pm

    Fantastic, works for me. Have installed your solution to all of my sites under my banner KMPNetwork. Can’t thank you enough.

  6. I don’t think its the right approach to be blocking sites that could drive traffic to your sites.

  7. Jeff Starr

    @Webmaster: Thanks for the feedback — much success to your domains! :)

    @Ryan: Thank you for your honest opinion, however, this method does not block any sites whatsoever — it simply prevents thieves from stealing content by removing unwanted advertising frames. Traffic is definitely not blocked — in fact, removing frames helps to “pull” traffic into the actual target site.

  8. lol, someones mad cuz people like to make money online.

  9. please dont make such comments about a site that you dont even know about.. if it was illegal what they were doing they wouldnt last this far… usercash has helped me a lot.. right now i am earning at least 250dollars a month with usercash.. and thats all that matters..

  10. Nikolai is a liar. He owns usercash.com.

    View here:
    http://www.blacklabelads.com/mb/commerce/purchase_form.php?zone_id=78150

    And see his site in the descriptions!

  11. Jeff Starr
    Perishable 2008/04/07 8:55 am

    No, nikolai, you are wrong. Making money is definitely not “all that matters.” It is that very attitude that continues to ruin the Web for the rest of us. Let’s do the math on this one. If UserCash is paying roughly $70 per million ads, then someone such as yourself claiming to make $250 per month is guilty of polluting the Web with over 3.5 million servings of those atrociously sleazy UserCash advertisements every month!

  12. DONT CARE PERSON 2008/04/15 11:06 am

    i really don’t care on what you think or say .. i just think that your a scumbag yourself for your reckless title…

Comments are closed for this post. Something to add? Let me know.
Welcome
Perishable Press is operated by Jeff Starr, a professional web developer and book author with two decades of experience. Here you will find posts about web development, WordPress, security, and more »
USP Pro: Unlimited front-end forms for user-submitted posts and more.
Thoughts
Watching. Waiting. Praying.
Got all of my free WordPress plugins updated for imminent WP 5.6 in early December. Pro plugin updates currently in the works.
7G Firewall now integrated into BBQ Firewall (free version). Pro version soon ;)
macOS Big Sur update complete. So far no crazy issues. Except TextEdit, which is completely screwed up and unusable. Replaced with free BBEdit.
Got so sick of macOS’ annoying “red dot” that I had to remove System Prefs from the dock. Come on Apple you can do better.
Beginning development of an Nginx version of 7G Firewall.
Happy Birthday to Perishable Press, celebrating 15 years online! :)
Newsletter
Get news, updates, deals & tips via email.
Email kept private. Easy unsubscribe anytime.