Manual:Block and unblock/hi

उचित अधिकारों वाले सदस्य (आम तौर पर सिसॉप्स) IP पतों और सदस्य खातों को सम्पादित करने, फ़ाइलें अपलोड करने, पृष्ठ को स्थानांतरित करने, और अगर लागू हो तो पृष्ठों को सुरक्षित/असुरक्षित करने और पृष्ठों को हटाने/पुनर्स्थापित करने से अवरोधित कर सकते हैं और अवरोध हटा सकते हैं।

मीडियाविकि पर अवरोधों को एक एब्सट्रेक्शन लेयर के ज़रिए हैंडल किया जाता है; एक्सटेंशन्स अवरोधों के अपने प्रकार जोड़ सकते हैं। अवरोध बनाने/अपडेट करने/हटाने और हर अवरोध के प्रकार के लिए उन्हें लॉग और सूचीबद्ध करने का तंत्र; और यह जाँचने का तंत्र कि कोई सदस्य अवरोधित है कि नहीं, जिससे अवरोधित कार्यों को रोका जाता और सदस्य को सूचित किया जाता है – समान हैं।



मानक अवरोध इंटरफ़ेस
मीडियाविकि मूल में अवरोध Special:Block पर मौजूद विशेष पृष्ठ के ज़रिए लागू किए जाते हैं। अवरोध लागू करने के कई चरण हैं:


 * 1) अवरोधित करने के लिए IP पता या सदस्य निर्दिष्ट करें। फ़ॉर्म के "" फ़ील्ड में उस IP पते का नाम जोड़ें जिसे अवरोधित किया जाएगा, या फिर उस पंजीकृत सदस्य का नाम दर्ज करें जिसे अवरोधित किया जाएगा। ध्यान रखें कि अनुपस्थित सदस्यनामों को भी अवरोधित किया जा सकता है, तो सुनिश्चित करें कि आपने सही सदस्यनाम दर्ज किया है। आप IP पतों के रेंज को भी अवरोधित कर सकते हैं; अनुदेशों के लिए  देखें।
 * 2) अवरोध के पैरामीटर्स निर्दिष्ट करें। वे कार्य चुनें जिन्हें पूरा करने से अवरोध के लक्ष्य को रोका जाएगा। एक  अवरोध से अवरोध का लक्ष्य विकियों पर किसी भी पृष्ठ को सम्पादित नहीं कर पाएगा, जबकि  अवरोध से अवरोध का लक्ष्य निर्दिष्ट पृष्ठों को और/या निर्दिष्ट नामस्थान में मौजूद पृष्ठों को सम्पादित नहीं कर पाएगा।
 * 3) अवरोध की अवधि निर्दिष्ट करें। आप "" वाले ड्रॉपडाउन बॉक्स से एक पूर्व-परिभाषित अवधि चुन सकते हैं, या फिर आप GNU मानक प्रारूप में "अन्य समय" फ़ील्ड में एक अनुकूलित वैल्यू दर्ज कर सकते हैं। अगर अवधि "indefinite" दी जाती है, अवरोध कभी खत्म नहीं होगा, हालाँकि IP पते या सदस्य खाते से किसी सिसॉप द्वारा अवरोध हटाया जा सकता है।
 * 4) अवरोध का एक कारण निर्दिष्ट करें (वैकल्पिक)। अगर अवरोधित सदस्य किसी पृष्ठ को सम्पादित करने की कोशिश करता है तो यह कारण उसे दिखाया जाएगा।

अवरोध को लागू करने के लिए "" पर क्लिक करें। सभी अवरोधों को अवरोध लॉग पर रिकॉर्ड किया जाता है, और वर्तमान में सक्रिय सभी अवरोध सक्रिय अवरोधों की सूची में सूचीबद्ध किए जाते हैं।

ध्यान रखें कि Special:Block में खुद IP पता या सदस्य खाता जोड़ने के बजाय आप IP पते या सदस्य खाते के "सदस्य" या "सदस्य वार्ता" पृष्ठ देखते समय साइडबार के टूलबॉक्स में मौजूद "" कड़ी का भी इस्तेमाल कर सकते हैं। You can also click on the "" link next following an IP address or user account name in the recent changes list or the page history.

Blocking options
Several extra blocking options were added in version 1.8 of MediaWiki, which are enabled by checking a check box on the blocking form.


 * Block anonymous users only (also called softblocking)
 * This option changes the effect of a block when blocking an IP address. When it is enabled, the block will only affect anonymous users editing from that IP address; registered users editing from that IP address will not be affected. The option has no effect on a block of a registered user, but does on an autoblock caused by it.


 * Block account creation
 * This option changes the effect of a block when blocking a user or an IP address. When it is enabled, the registration of new user accounts from that IP address will be disabled while the block is in effect. However, this can be bypassed by creating an account on another wiki and visiting the wiki where the block is active, as global accounts automatically create local accounts on wikis the first time they are visited by the user. However, the bypassing can be prevented by a global ban that prevents account creation.


 * Automatically block the last IP address used by this user, and any subsequent addresses they try to edit from (also called hardblocking)
 * This option changes the effect of a block when blocking a registered user account. When it is enabled, the IP address most recently used by the account, and any IP addresses that the account subsequently attempts to edit from will be automatically blocked.

Partial blocks
Since MediaWiki 1.33, it is possible to prohibit the block target from making changes only to the specified pages and/or all pages in namespaces. If a page is moved, the restriction will be switched to the new title. Currently non-existent ("redlink") pages cannot be blocked, and setting multiple overlapping blocks with different expiration dates is not supported.

In MediaWiki 1.33 and 1.34, partial block is disabled by default. It may be enabled by setting.

Since MediaWiki 1.35, partial blocks are always enabled and cannot be disabled. You may hide partial blocks form elements by adding some JS or CSS to user or site common.js/common.css. This does not disable partial blocks which may still be set via API.

Unblocking
An IP address or registered user account can be unblocked via the list of active blocks. Find the IP address or registered user account you wish to unblock in the list (you can enter the address or name in the "" field to help you find the entry), and click the "" link displayed to the right of the block's expiry time.

This will lead you to a confirmation page. Enter the reason for unblocking (optional) in the "" field, and click "" to remove the block. All unblockings are recorded in the block log.

Note that if a range is blocked, then the unblock must cover the whole range to be effective. Attempting to unblock an individual IP address in the range will not be effective.

Effects of being blocked
When is enabled, blocked users are locked out of their account entirely. This is mainly meant for private wikis which need a mechanism to revoke reading privileges once a user is not active anymore.

On other wikis, blocked users may still read pages, but they may not create, edit or move pages, or upload files. Partially blocked users may not edit the particular pages or namespaces specified in their block, but may create, edit or move other pages, and may upload files. Users with certain other user rights may not be able to use those rights when they are blocked, depending on their block. For example, users with the rights to delete and undelete or protect and unprotect pages will not be able to do so if they are sitewide blocked. If they are partially blocked, then for any page they are not blocked from, they will still be able to perform these actions. However, users with the rights to block and unblock users will still be able to do so when they are blocked. Unblocking your own account requires the extra right  ; by default all sysops have this but on large wikis it might make sense to remove it to make potential account takeovers less disruptive.

Users who are blocked and attempt to edit a page (or move a page, or upload a file) will see the "Your account or IP address has been blocked" message informing them that they have been blocked.

If the autoblock option has been enabled with respect to a block, and the blocked user attempts to edit (or move a page, or upload a file), the IP address being used by that user will also be blocked.

Configuration settings related to blocking
The configuration options below can be set in and can be used to enable or disable certain aspects of the blocking interface.
 * - controls how many seconds need to pass until a block on an "autoblocked" IP address will expire. The default is 86400 seconds (one day)
 * - controls whether or not a blocked user is able to edit their own user talk page. This is currently (1.26+) true by default. The ability to disable the ability of a blocked user to edit their own user talk page, when this variable is true, is an option available in Special:Block.
 * and the blockemail user right control the ability for sysops to prevent users from using the Special:EmailUser interface. is true by default.
 * - controls if blocked users will be prevented from logging in. This is false by default.
 * - (1.29+) determines whether to set a cookie when a user is autoblocked. Doing so means that a blocked user, even after logging out and moving to a new IP address, will still be blocked. This is false by default.
 * - (1.33+) - allow the creation of partial blocks, which can block a user account, IP address or IP range from particular pages, namespaces or actions. This is false by default.
 * The hideuser user right controls the ability for sysops to prevent a blocked user from appearing in the block log, the active block list, and the user list.

Default block duration options
To change the default options listed in the "Expiration" drop-down menu, edit the page MediaWiki:ipboptions. The options are stored as a comma-separated list of "label:value" strings, for example. To have three options listed in Spanish, the page could include.

The default duration is "other". To specify another default duration, edit the page MediaWiki:ipb-default-expiry and enter the value you want. Note that you must write the value and not the label, if you were using the Spanish example listed above, MediaWiki:ipb-default-expiry should be  (the value) and not   (the label).

To specify a default duration for anonymous users, edit the page MediaWiki:ipb-default-expiry-ip and enter the value you want. Using the Spanish example listed above, you could write  (the value) but not   (the label).

Interface messages

 * More blocking-related interface messages

URL parameters
Special:Block accepts some URL parameters to prepopulate the HTML form:


 * - username/IP address
 * - the type of block restriction (=sitewide or =partial)
 * - the pages to block (only applies for partial blocks; separate multiple pages with %0A; maximum 10 pages)
 * - IDs of the namespaces to block (only applies for partial blocks; separate multiple namespaces with %0A; see for a list of blockable namespace IDs)
 * - expiry time
 * - autoblock setting (=1 or =0)
 * - hard block setting (=1 or =0)
 * - prevent account creation (=1 or =0)
 * - reason, from selection of MediaWiki:Ipbreason-dropdown
 * - prepopulating "other reason" text field

Hooks

 * - occurs whenever the software receives a request to block an IP address or user
 * - occurs after the request to block an IP or user has been processed
 * , - like BlockIp/BlockIpComplete, for unblocking
 * - occurs when creating an autoblock, allows extensions to cancel
 * - similar to AbortAutoblock but called when doing a retroactive autoblock (when performing a block, also autoblocking the user's last used IP)
 * - when the software checks for blocks, can be used to modify existing blocks or implement new types of blocks
 * - deprecated, similar to GetUserBlock
 * - can be used by extensions which reimplement user talk pages in some way (e.g. ) to honor the "allow the user to edit their own talk page" flag
 * - similar to GetUserBlock, but for global blocks (which are for historical reasons handled separately)
 * , - allows cross-linking Special:BlockList and Special:AutoblockList respectively with similar special pages provided by extensions
 * - allows modifying the core Special:Block form

SQL
All types of blocks are stored in the  table, not just IP blocks. Only currently active blocks are stored here. To see old blocks, check the  table. is a string and can be a username, an IP address, or blank. contains the  of the blocked user. Here is how to filter for different kinds of blocks:


 * User blocks –
 * Auto blocks –
 * Address blocks –
 * Range blocks –
 * Partial blocks –
 * Blocks that are indefinite –
 * Blocks that expire –