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]

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 :