Circumventing Facebooks URL ban

Sharing links on social media is one of the best ways to gain traction and clout. Let’s be straight: it sucks when Facebook has banned your site for occasionally sharing an artful nude or an emotional rant. The ban can be revoked but it takes time. You can find plenty of videos on how to do it.

I want to share how I went around it with PHP.

  1. Create a fresh subdomain and create an index.php there.
  2. Grab the tail of the URL:
    $tail = parse_url($url)[“path”];
  3. Since Facebook recognizes 301 redirects, that doesn’t work. You can, however, put your target site in a frameset like so:
    <frameset cols="100%">
    <frame src=""<?php echo $tail; ?>>
  4. Add the favicon to your site like this:
    <link rel="icon" 
    type="image/png" href="favicon.png">

That’s all. It won’t be as fast as the original site, but it works until facebook revokes the block.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.