Block direct access to pligg pages

Written on August 23, 2008 – 6:36 pm | by boxed |

To block direct access to your pligg pages (which are residing inside Joomla Wrapper), use the following code.
In the pligg directory, create (or append if already exists) a .htaccess file and add the following code.

RewriteEngine On

# Blocking direct access
RewriteCond %{HTTP_REFERER} !^http://www.yourjoomlasite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yourjoomlsite.com/.*$ [NC]
RewriteCond %{REQUEST_URI} pliggdir [NC]
RewriteRule .* – [F]

Related Posts

Random Posts

    1. 2 Responses to “Block direct access to pligg pages”

    2. By Thomas on Mar 18, 2009 | Reply

      Hi,

      Any updates for the new joomla 1.5.9 and pligg 1.0?

      Thanks
      Thomas

    3. By ganool on Dec 6, 2009 | Reply

      not working

    Post a Comment

    About Me

    Like most of the people living in USA, I recently joined 'the two jobs on shoulder' club. Working my ass off throughout the day as a software consultant and at night as a freelance web developer, this is my attempt at earning $1.1 million in 3 years. While this blog is mainly focused at freelancing, I take pleasure in writing about other things that interests me. If you like any of my posts, please do subscribe! And also keep an eye on my goals list ;) More

    Want to subscribe?

     Subscribe in a reader Or, subscribe via email:
    Enter your email address:  

    hireme

    Find entries :