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

  • By
    Regular Expressions for the Rest of Us

    Sooner or later you'll run across a regular expression. With their cryptic syntax, confusing documentation and massive learning curve, most developers settle for copying and pasting them from StackOverflow and hoping they work. But what if you could decode regular expressions and harness their power? In...

  • By
    How I Stopped WordPress Comment Spam

    I love almost every part of being a tech blogger:  learning, preaching, bantering, researching.  The one part about blogging that I absolutely loathe:  dealing with SPAM comments.  For the past two years, my blog has registered 8,000+ SPAM comments per day.  PER DAY.  Bloating my database...

Incredible Demos

  • By
    Create a CSS Flipping Animation

    CSS animations are a lot of fun; the beauty of them is that through many simple properties, you can create anything from an elegant fade in to a WTF-Pixar-would-be-proud effect. One CSS effect somewhere in between is the CSS flip effect, whereby there's...

  • By
    MooTools onLoad SmoothScrolling

    SmoothScroll is a fantastic MooTools plugin but smooth scrolling only occurs when the anchor is on the same page. Making SmoothScroll work across pages is as easy as a few extra line of MooTools and a querystring variable. The MooTools / PHP Of course, this is a...

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!