Htaccess File

codeaid/resolve/master/public/.htaccess

ENV, HTTP_USER_AGENT, REQUEST_FILENAME
# block Twitter swarmers
RewriteCond %{HTTP_USER_AGENT} altairplus.ru [NC,OR]
RewriteCond %{HTTP_USER_AGENT} arinarodionovna.com [NC,OR]
RewriteCond %{HTTP_USER_AGENT} bestdizajn.ru [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Butterfly/d+.d+ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} crawler [NC,OR]
RewriteCond %{HTTP_USER_AGENT} elita-lady.ru [NC,OR]
RewriteCond %{HTTP_USER_AGENT} EQENTIA-BOT [NC,OR]
RewriteCond %{HTTP_USER_AGENT} fitmarket.ru [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Flipboard [NC,OR]
RewriteCond %{HTTP_USER_AGENT} gilina.ru [NC,OR]
RewriteCond %{HTTP_USER_AGENT} invest4net.ru [NC,OR]
RewriteCond %{HTTP_USER_AGENT} itelepat.ru [NC,OR]
RewriteCond %{HTTP_USER_AGENT} JS-Kit [NC,OR]
RewriteCond %{HTTP_USER_AGENT} karadene.com [NC,OR]
RewriteCond %{HTTP_USER_AGENT} lampokrat.ucoz.ru [NC,OR]
RewriteCond %{HTTP_USER_AGENT} magpie-crawler [NC,OR]
RewriteCond %{HTTP_USER_AGENT} medselect.ru [NC,OR]
RewriteCond %{HTTP_USER_AGENT} metall-gifts.ru [NC,OR]
RewriteCond %{HTTP_USER_AGENT} MetaURI [NC,OR]
RewriteCond %{HTTP_USER_AGENT} MSIECrawler [NC,OR]
RewriteCond %{HTTP_USER_AGENT} nardulan.com [NC,OR]
RewriteCond %{HTTP_USER_AGENT} nayra.ru [NC,OR]
RewriteCond %{HTTP_USER_AGENT} nineconnections [NC,OR]
RewriteCond %{HTTP_USER_AGENT} NING/d+.d+ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} pankovmedikl.ru [NC,OR]
RewriteCond %{HTTP_USER_AGENT} PaperLiBot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} pd-crawler [NC,OR]
RewriteCond %{HTTP_USER_AGENT} pronekut.com [NC,OR]
RewriteCond %{HTTP_USER_AGENT} randecan.com [NC,OR]
RewriteCond %{HTTP_USER_AGENT} rx24.ru [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ShowyouBot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} SISTRIX [NC,OR]
RewriteCond %{HTTP_USER_AGENT} statdom.ru [NC,OR]
RewriteCond %{HTTP_USER_AGENT} tasbalionde.ya.ru [NC,OR]
RewriteCond %{HTTP_USER_AGENT} tldstat.com/Bot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} TweetedTimes [NC,OR]
RewriteCond %{HTTP_USER_AGENT} TweetmemeBot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Twitmunin [NC,OR]
RewriteCond %{HTTP_USER_AGENT} UnwindFetchor [NC,OR]
RewriteCond %{HTTP_USER_AGENT} vksaver-besplatno.ru [NC,OR]
RewriteCond %{HTTP_USER_AGENT} woriobot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} yolinkBot [NC]
RewriteRule .* - [F,L]

SetEnvIfNoCase Host "^resolve.diskstation$" APPLICATION_ENV=development
SetEnvIfNoCase Host "^resolve.ds.andr.is$"  APPLICATION_ENV=staging
# everything else should be "production"

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
Exit mobile version