Forum

phpMyAdmin .htaccess rules

Olli
6 July 2010, 20:09
Hi everybody,

I just installed phpMyAdmin and it was very easy to deny access to certain subfolders via the great url toolkit. Anyway, I'm now looking at the sample .htaccess file provided with phpMyAdmin and ask myself (actually I'm asking you if the rules mentioned there could be ported to Hiawatha (for what I read in the howto it's not possible):
RewriteCond %{REQUEST_METHOD} !^(GET|POST)$ [NC,OR]

RewriteCond %{HTTP_USER_AGENT} ^(java|curl|wget).* [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^.*(libwww-perl|curl|wget|python|nikto|wkito|pikto|scan|acunetix).* [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^.*(winhttp|HTTrack|clshttp|archiver|loader|email|harvest|extract|grab|miner).* [NC,OR]

RewriteCond %{HTTP_USER_AGENT} ^.*(AdsBot-Google|ia_archiver|Scooter|Ask.Jeeves|...|YahooSeeker).* [NC]
RewriteRule .* - [F]


Kudos,
Olli

--
Hiawatha version: 7.3
Operating System: Debian 5
Hugo Leisink
6 July 2010, 22:47
The rules you posted cannot be converted to Hiawatha's UrlToolkit. But don't worry. Those rules are quite useless, so you can simply ignore them.
This topic has been closed.