Welcome Guest, Not a member yet? Register   Sign In
.htaccess restricting access to flash preventing xml to load
#6

[eluser]uptime[/eluser]
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|javascript|spotlight|includes|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

This is way more secure...

It means that CI will handle everything but <images OR css OR javascript, etc...>


If you're using:

Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [QSA,L]

Please make sure you also add:

Code:
Options -Indexes

There could be a common scenario in which a folder will be listed because it exists and does not have an index page.

P.S.: I use the same idea with iptables rules (block everything but ...) or just about anything... And I don't consider myself a paranoid.


Messages In This Thread
.htaccess restricting access to flash preventing xml to load - by El Forum - 11-24-2008, 03:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB