Security

Secure Roxy FilemanFileman's PHP or .NET scripts will not manipulate files or folders that are outside the directory set in FILES_ROOT setting. Also Fileman script which is not set in the configuration cannot be executed - it will exit.
Example: 
MOVEDIR is set to "your_script_to_move_dir.php", if the original Fileman "php/movedir.php" script is requested, it will check the configuration and exit, because the mismatch of it's own name and the value of MOVEDIR setting. The same mechanism is used in the .NET distribution.

However, it's up to you to implement application level access restriction! If you are using protected directory and Fileman resides in it, you are good to go.

 

.NET users can use web.config file to apply user authentication.

 

To implement your own security checks in PHP, you have to fill "checkAccess($action)" function located in fileman/php/security.inc.php file. This function is executed in the beginning of each PHP script, and you can validate user or the action which is about to be performed ($action will contain the name of the setting i.e "MOVEDIR" when moving directory). Usually user login validation is pretty simple, it could be something like "if($_SESSION['is_admin_logged'] !== true)exit;".

You can also use HTTP Basic authentication or any other authentication mechanism you want.


 

User comments

Please see the FAQ page before ask a question.

I don't review comments very often, and I will NOT answer the questions asked here, please use the contact form.

L. Arsov


Author: mercurialcheap 15-04-2017 09:31:58 (GMT)
http://www.soccerpumacleats.com/
http://www.soccerpumacleats.com/products/?PumaSoccer-Cleats-c216_p1.html
http://www.soccerpumacleats.com/products/?New-Soccer-Jerseys-c207_p1.html
http://www.soccerpumacleats.com/products/?Top-NFL-Jerseys-c208_p1.html
http://www.kyrieforsale.com/" target="_blank">http://www.kyrieforsale.com/
http://www.kyrieforsale.com/" target="_blank">http://www.kyrieforsale.com/
http://www.kyrieforsale.com/" target="_blank">http://www.kyrieforsale.com/products/?NBA-Kyrie-Jersey-c172_p1.html
http://www.kyrieforsale.com/" target="_blank">http://www.kyrieforsale.com/products/?Nike-Zoom-Kyrie-3-c123_p1.html
http://www.kyrieforsale.com/" target="_blank">http://www.kyrieforsale.com/products/?Nike-Zoom-Kyrie-2-c124_p1.html
http://www.nmdhot.com/
http://www.nmdhot.com/products/?2017-New-Arrival-c236_p1.html
http://www.nmdhot.com/products/?adidas-eqt-guidance-93-c173_p1.html
http://www.nmdhot.com/products/?adidas-selena-gomez-x-lite-tm-neo-sg-c174_p1.html
http://www.ultrauncaged.com/
http://www.ultrauncaged.com/products/?Adidas-Eqt-Guidance-93-c173_p1.html
http://www.ultrauncaged.com/products/?Adidas-Selena-Gomez-X-Lite-TM-Neo-SG-c174_p1.html
http://www.cheaplebron14.org/
http://www.cheaplebron14.org/products/?Jordan-Retro-1-c118_p1.html
http://www.cheaplebron14.org/products/?Jordan-Retro-3-c120_p1.html
http://www.cheaplebron14.org/products/?Jordan-Retro-4-c121_p1.html
http://www.cheaplebron14.org/products/?Jordan-Retro-5-c122_p1.html
http://www.cheapharden.com/" target="_blank">http://www.cheapharden.com/
http://www.cheapharden.com/" target="_blank">http://www.cheapharden.com/products/?Harden-Vol.-1-c172_p1.html
http://www.cheapharden.com/" target="_blank">http://www.cheapharden.com/
http://www.mercurialcheap.com/
http://www.mercurialcheap.com/products/?2017-Adidas-X-16.1-FG-AG-Mens-c265_p1.html
http://www.mercurialcheap.com/products/?2017-Adidas-X-16.3-AG-Mens-c266_p1.html
Author: zinchronize 29-12-2016 08:50:25 (GMT)
I inject a code inside the a code inside the main.ashx file under public method "ProcessRequest". Sample snippet below:

public void ProcessRequest (HttpContext context) {

//Custom code here
var auth = new SMIC_Intranet2.Models.AuthorizationGateway();
.UsersRepository credentials = auth.AuthorizeUser();

if (!(credentials.Role == SMIC_Intranet2.Models.UserRoles.ADMINISTRATOR || credentials.Role == SMIC_Intranet2.Models.UserRoles.PUBLISHER))
{
//here throws 401 if condition has met otherwise continue execution
context.Response.StatusCode = 401;
context.Response.End();
}



}
Author: Daniel Wiberg 23-09-2014 09:40:00 (GMT)
@Martin Curly
Sorry for late response.
Open the "Web.config" file in "fileman" directory
Add this three lines right under "<system.web>"
<authorization>
<deny users="?" />
</authorization>

When you do that you deny all users that are not logged in.
Author: Martin Curly 14-09-2014 10:15:20 (GMT)
".NET users can use web.config file to apply user authentication."

How this process?. Please helpme.

Add comment