atmoner / php-pastebin-v3

Php pastebin tool
110 stars 56 forks source link

Move every core directory one folder back #52

Open meletisf opened 9 years ago

meletisf commented 9 years ago

You should move the core directories one folder back. Having them where the webserver points is a very VERY bad idea. If you dont want, atleast update the .htaccess accordingly to block access.

knackrack615 commented 9 years ago

You can easely achieve that by adding the following code to your htaccess

RewriteRule ^(themes/bootstrap/index.html) - [F,L,NC]
RewriteRule ^(plugins/) - [F,L,NC]
RewriteRule ^(pages/) - [F,L,NC]
RewriteRule ^(cache/) - [F,L,NC]