How to restrict direct IP access in Apache httpd?

Solution Verified - Updated -

Issue

  • How to restrict access to the website via IP address in the URL?
  • Is it possible to block IP direct access to the Apache httpd?
  • Apache httpd configuration does not work to restrict client access
  • How to use in the Apache httpd 2.4.x?

Environment

  • Red Hat Enterprise Linux (RHEL)
  • Red Hat Software Collections (RHSCL)
  • Red Hat JBoss Core Services (JBCS)
  • Apache Web Server (httpd)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content