Website Ideas blog dedicated to web-developers for design inspiration
May 22, 2012, 03:45:58 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome To Website Ideas blog dedicated to web-developers for design inspiration
 
 Website Ideas  Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Block Direct Access to Joomla Wrapper with htaccess file  (Read 1398 times)
0 Members and 2 Guests are viewing this topic.
Snake Blisken
Newbie
*
Posts: 41



View Profile WWW
« on: May 06, 2008, 07:45:54 PM »

Create a .htaccess file in the directory that you wish to protect.

Code:

Quote
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?www.domain\.com [NC]
RewriteCond %{HTTP_REFERER} !^http://domain.com/.*$ [NC]
RewriteRule .* - [F]


This allows all users that were referred from the domain to access the file. In other words if they will be able to access the folder if the click through a link on your website.

Walk Slowly and carry a big gun
Arguy
Newbie
*
Posts: 48


View Profile
« Reply #1 on: November 25, 2009, 11:55:08 AM »

Well, I cannot figure out what you mean. If it is aimed to protect the directory, why it allows all users to directly access the file? Anyway, it seems difficult for me to modify my .htaccess file as I use a shared hosting.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.041 seconds with 19 queries.

Google visited last this page May 16, 2012, 07:00:09 PM