MaxPayne420
MaxPayne420

Reputation: 43

How can i deny access to request url in htaccess?

I have problem I'm using my folder as 'includes' and there are all files with extension .php so I wanna block this folder, when someone "hacker" want to write in url path to for instance file responsible for connection to database. But other files can using this files to make a diffrent operations.

Upvotes: 1

Views: 189

Answers (1)

esqeudero
esqeudero

Reputation: 102

inside your "includes" directory create a file ".htaccess" with a row "deny from all". It will prevent browser access to your files inside Includes directory.

Upvotes: 1

Related Questions