RewriteEngine on

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*\.xml$ - [R=404,L]

# disable directory browsing
Options All -Indexes

ErrorDocument 401 "Sorry, You Can't Access This Page"
ErrorDocument 403 "Sorry, You Can't Access This Page"
ErrorDocument 404 "Sorry, You Can't Access This Page"
ErrorDocument 500 "Sorry, You Can't Access This Page"

<FilesMatch ".(htaccess|htpasswd|ini)$">
Order Allow,Deny
Deny from all
</FilesMatch>

RewriteCond %{HTTP_REFERER} !^http://bkpsdmtanggamus.net/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://bkpsdmtanggamus.net$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.bkpsdmtanggamus.net/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.bkpsdmtanggamus.net$      [NC]

RewriteCond %{HTTP_REFERER} !^http://simpeg.bkpsdmtanggamus.net/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://simpeg.bkpsdmtanggamus.net$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.simpeg.bkpsdmtanggamus.net/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.simpeg.bkpsdmtanggamus.net$      [NC]

RewriteCond %{HTTP_REFERER} !^http://ekinerja.bkpsdmtanggamus.net/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://ekinerja.bkpsdmtanggamus.net$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.ekinerja.bkpsdmtanggamus.net/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.ekinerja.bkpsdmtanggamus.net$      [NC]

RewriteCond %{HTTP_REFERER} !^http://latsimpeg.bkpsdmtanggamus.net/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://latsimpeg.bkpsdmtanggamus.net$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.latsimpeg.bkpsdmtanggamus.net/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.latsimpeg.bkpsdmtanggamus.net$      [NC]

RewriteCond %{HTTP_REFERER} !^http://latkinerja.bkpsdmtanggamus.net/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://latkinerja.bkpsdmtanggamus.net$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.latkinerja.bkpsdmtanggamus.net/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.latkinerja.bkpsdmtanggamus.net$      [NC]


RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} AltaVista [OR]
RewriteCond %{HTTP_USER_AGENT} Googlebot [OR]
RewriteCond %{HTTP_USER_AGENT} msnbot [OR]
RewriteCond %{HTTP_USER_AGENT} Slurp
RewriteRule ^.*$ "http\:\/\/bkpsdmtanggamus\.net" [R=301,L]