Webmail直接访问限制

My website i newly added a section employee email log in , while clicking on that it redirect the page to web-mail log in page

<table><tr><td>
<a href="mysite.com/webmail">Employee Mail</a>
</td></tr></table>

Now restrict the direct access mysite.com/webmail,page can open only through this link

Assuming you are hosting the site on an Apache HTTP Server with mod_rewrite enabled, you could try to grant access based on the user's referer.

# In your .htaccess
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://mysite\.com/access-page [NC]
RewriteRule ^webmail - [L]

This would stop everybody from visiting the link mysite.com/webmail if their referer doesn't match the URL http://mysite\.com/access-page.