WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to block / disable direct url entering into address bar. Is it possible in wordpress? Actually I have created custom login, profile and other pages so don't want to allow user to go through wp-admin and I want to block all direct url entering.

share|improve this question

Preventing users from entering URLs manually in the address bar is not possible in WordPress, or from any site, for that matter. It can only be done via a browser plugin.

However, redirecting users or displaying a 404 page for a certain URL is easy to do and there are several WordPress plugins for blocking admin access. One example:


share|improve this answer
Thanks for reply Scribu, but unfortunatly its not the solution what I am looking for but may be you are right. Its not possible to block direct url entering. Anyways Thanks a lot I have redirect all user to my custom login screen... Thanks again – pixelngrain Dec 18 '11 at 6:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.