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
    LightFace:  Facebook Lightbox for MooTools

    One of the web components I've always loved has been Facebook's modal dialog.  This "lightbox" isn't like others:  no dark overlay, no obnoxious animating to size, and it doesn't try to do "too much."  With Facebook's dialog in mind, I've created LightFace:  a Facebook lightbox...

  • By
    CSS Animations Between Media Queries

    CSS animations are right up there with sliced bread. CSS animations are efficient because they can be hardware accelerated, they require no JavaScript overhead, and they are composed of very little CSS code. Quite often we add CSS transforms to elements via CSS during...

Incredible Demos

  • By
    Introducing LazyLoad 2.0

    While improvements in browsers means more cool APIs for us to play with, it also means we need to maintain existing code.  With Firefox 4's release came news that my MooTools LazyLoad plugin was not intercepting image loading -- the images were loading regardless of...

  • By
    CSS Fixed Position Background Image

    Backgrounds have become an integral part of creating a web 2.0-esque website since gradients have become all the rage. If you think gradient backgrounds are too cliche, maybe a fixed position background would work for you? It does provide a neat inherent effect by...

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!