Using RTA Labels for Adult Content

By  on  
RTA Label

Sometimes the web seems like a grab bag of anything because anyone can put just about anything up.  There are, however, an increasingly large number of organizations that choose to be responsible about the adult or sensitive content they push.  A standard called RTA, Restricted to Adults, has been created for robots, search engines, and general crawlers to notify them that the content on a given page or entire website should be viewed only by adults. There are multiple methods to communicating this standard -- let me show you each of them!

RTA META Tag

The RTA meta tag can be retrieved directly from the RTA website:

<meta name="RATING" content="RTA-5042-1996-1400-1577-RTA" />

Like any other meta tag you want to be effective, it must be placed on each and every page that contains adult content.  You could easily achieve that with a PHP include (or other server side include) so that the meta tag wouldn't have to be placed in dozens of files.

RTA Header

You can also direct your server-side language to send a header to the client:

header("Rating: RTA-5042-1996-1400-1577-RTA");

The above snippet is PHP response header.  The server side language you use will have its own response header setting code to accomplish this task.

Apache mod_headers Directive

For those of you that are skilled with Apache, you can also add the following directive to the httpd.conf file:

<IfModule mod_headers.c>
Header set Rating "RTA-5042-1996-1400-1577-RTA"
</IfModule>

This directive will communicate the RTA header to the client for each request.  This would be helpful for adult websites for which all content could be adult-only.

And there you have it.  Many pr0n websites use this header, and the adult film industry has even taken the time out of their gettin' busy schedule to film PSA announcements about RTA.  I strongly urge you to consider using RTA where applicable as it's the responsible thing to do!

Recent Features

Incredible Demos

  • By
    Create Custom Events in MooTools 1.2

    Javascript has a number of native events like "mouseover," "mouseout", "click", and so on. What if you want to create your own events though? Creating events using MooTools is as easy as it gets. The MooTools JavaScript What's great about creating custom events in MooTools is...

  • By
    background-size Matters

    It's something that makes all men live in fear, and are often uncertain of. It's never spoken, but the curiosity is always there. Nine out of ten women agree in the affirmative. Advertisers do their best to make us feel inadequate but...

Discussion

  1. Ian

    “Many pr0n websites use this header”

    … I feel like you actually went to porn sites just to view the source code

    • Ummm, yeah, why else would I go? :D

    • Ahmed

      You looked at b00bz on the sites :'(

      :-P

  2. After quite some years I still wonder why there isn’t any adult oriented paysite to use MooTools.

    (maybe only w4b)

  3. Not sure when i ll be using these codes.

  4. Paperboy

    I’ve been using ICRA to label my nsfw-site with but they don’t seem to exist anymore so I’ll switch to RTA now so… thanks for the tip!

  5. I use RTA labels on my sites. Sometimes I do wonder if they work though. Wouldn’t a simple test be to just put the site into google with a content restricted search?

  6. RatedG

    How do you find a date and originator of a video from a website

  7. David

    Long time fan first time caller. :)

    Great as always, and I used both the meta and mod_headers Directive, although mine was located in apache2.conf. Ubuntu 14.04
    I would like to suggest that everyone who uses the rating follow up with an RTA logo, thus presenting as a website that participates in the rating system. The RTA website suggests this directing users to the logo page http://www.rtalabel.org/index.php?content=banners.

    As a self-taught coder at 50, thanks.

    Mike

Wrap your code in <pre class="{language}"></pre> tags, link to a GitHub gist, JSFiddle fiddle, or CodePen pen to embed!