> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: blockByEmail(email: string) # Method package: wixMembersBackend # Method menu location: wixMembersBackend --> Authentication --> blockByEmail # Method Link: https://dev.wix.com/docs/velo/apis/wix-members-backend/authentication/block-by-email.md # Method Description: Blocks a member from logging in to the site. The `blockByEmail()` function returns a Promise that resolves when the specified member is blocked. To unblock the member and allow them to log in to the site, use [`approveByEmail()`](https://dev.wix.com/docs/velo/api-reference/wix-members-backend/authentication/approve-by-email.md). # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Block a member ```javascript import { Permissions, webMethod } from 'wix-web-module'; import { authentication } from 'wix-members-backend'; export const myBlockByEmailFunction = webMethod(Permissions.Anyone, (email) => { return authentication.blockByEmail(email) .then(() => { console.log('Email blocked from site membership'); }) .catch((error) => { console.error(error); }); }); ``` ---