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
    Responsive Images: The Ultimate Guide

    Chances are that any Web designers using our Ghostlab browser testing app, which allows seamless testing across all devices simultaneously, will have worked with responsive design in some shape or form. And as today's websites and devices become ever more varied, a plethora of responsive images...

  • By
    How to Create a Twitter Card

    One of my favorite social APIs was the Open Graph API adopted by Facebook.  Adding just a few META tags to each page allowed links to my article to be styled and presented the way I wanted them to, giving me a bit of control...

Incredible Demos

  • By
    :valid, :invalid, and :required CSS Pseudo Classes

    Let's be honest, form validation with JavaScript can be a real bitch.  On a real basic level, however, it's not that bad.  HTML5 has jumped in to some extent, providing a few attributes to allow us to mark fields as required or only valid if matching...

  • By
    MooTools 1.2 Tooltips: Customize Your Tips

    I've never met a person that is "ehhhh" about XHTML/javascript tooltips; people seem to love them or hate them. I'm on the love side of things. Tooltips give you a bit more information about something than just the element itself (usually...

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!