Welcome! Log In Create A New Profile

Advanced

protect sphider directory

Posted by syiannis80 
protect sphider directory
January 11, 2014 04:37PM
Can anyone explain how to protect sphider for being access by anyone? Currently and per your instructions the directory is within "public_html".
Thanks
Tec
Re: protect sphider directory
January 11, 2014 06:14PM
Create a file named
.htaccess
(including the dot as first character)
with the following content

Order deny,allow
Deny from all
Allow from ::1

Place this file into the root folder of your Sphider installation. Afterwards the search engine will be available only localhost.

Tec
Re: protect sphider directory
January 11, 2014 06:40PM
This is however will prevent files to be executed; which is not what I want.

for example we have a web page : www.sphider.eu
where there there is a subdirictory sphider and within there the search.php file. If anyone knows this it can go through:
www.sphider.eu/sphider/ and by pressing enter then server will display all contents folder. This is what I want to avoid.
Thanks
Tec
Re: protect sphider directory
January 11, 2014 07:11PM
Your question was
<<< to protect sphider for being access by anyone >>>

In order to prevent directory listing, the content of the .htaccess file should be:

Options -Indexes

Tec
Re: protect sphider directory
January 12, 2014 07:28AM
thanks mate!
Sorry, only registered users may post in this forum.

Click here to login