1

Is there a way or at least a workaround on masking default webmail urls or disabling access webmail urls so users will not be able to change their passwords?

Website is PHP based and is using apache server under a shared hosting account. The thing is that http://domain.com/webmail will let users access the main panel where they can change their individual passwords. We do not need this. Most solutions point to changing httpd.conf which we are not allowed to change since this is on a shared hosting service.

I'm looking for at least a workaround to this issue. How about disabling it through their browsers if my client is under a network server, this would be a decent workaround isn't it? or are there any more suggestions aside from this?

Please help. This is my urgent issue.

Thank you very much!

4

1 に答える 1

0

「 http://domain.com/webmail 」へのすべてのリクエストを「 http://domain.com/webmail/address/」に転送したい場合(URL はここで作成します。別のページ)。

次のルールで「.htaccess」ファイルを追加します。

RewriteEngine on
RewriteRule ^webmail/ /webmail/address/ [NC,R=301]

代替ソリューション...

" http://domain.com/webmail/index.php "に存在するページ- このページのアドレスを確認し、リダイレクト ヘッダーを移動先のページに配置することができます...

if ($_SERVER['REQUEST_URI'] == 'http://domain.com/webmail/') {
    header('Location: http://domain.com/webmail/address/');
}

出力バッファに何かをエコーまたはプリントする前に、このコードをページの最上部近くに配置することが重要です。

于 2010-04-06T07:32:13.087 に答える