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
    Welcome to My New Office

    My first professional web development was at a small print shop where I sat in a windowless cubical all day. I suffered that boxed in environment for almost five years before I was able to find a remote job where I worked from home. The first...

  • By
    Being a Dev Dad

    I get asked loads of questions every day but I'm always surprised that they're rarely questions about code or even tech -- many of the questions I get are more about non-dev stuff like what my office is like, what software I use, and oftentimes...

Incredible Demos

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!