Block direct access to pligg pages
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]


2 Responses to “Block direct access to pligg pages”
By Thomas on Mar 18, 2009 | Reply
Hi,
Any updates for the new joomla 1.5.9 and pligg 1.0?
Thanks
Thomas
By ganool on Dec 6, 2009 | Reply
not working