0
votes
1answer
92 views

How to Protect a Folder from Browser access but allow PHP scripts to acess it

So I currently have a folder located at /var/www/pictures, with /var/www being the document root for my web server. I want to have the pictures folder to throw a 403 forbidden error if a user tries to ...
2
votes
2answers
2k views

How to protect a folder in Apache but allow PHP scripts to access it?

I've been thinking a lot about this and can't find a way to do it, maybe it's not possible or maybe I just can't think of way. That's why I'm posting this here right... Basically, I need to protected ...
0
votes
2answers
129 views

is there any other way to deny php files

see this and this <IfModule !mod_php5.c> <FilesMatch "\.php$"> Order allow,deny Deny from all Allow from none </FilesMatch> </IfModule> ...
0
votes
4answers
691 views

How to secure bash scripts on apache?

How to close access for a few bash scripts that are used by my PHP-Apache-based website? I have an index.php file in my document root /var/www/. index.php is supposed to call some bash scripts which ...
0
votes
1answer
665 views

PHP and MySQL remote host

How to run a PHP script which needs to connect to a MySQL at a remote host? When I run this: $dbHost = "example.com"; $dbUsername = "root"; $dbPassword = "pass"; $dbDatabase = ...