Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 235
  • Last Modified:

How can we restrict other ip address perticular domain in production server

Hi
We are having Linux web server running jboss and,i want to restrict other public ip's other than our static ip's so please guide me in this issue  to provide good security to my server.
0
srujanmiryala
Asked:
srujanmiryala
1 Solution
 
Pieter JordaanCommented:
Hi

You can edit the apache config file and add a range of IP addresses that will have access.

The "Allow from" statement should be inside the "<Directory" tag.

You can add an entire /24 IP range, or just a single address, by separating them with a space.

    <Directory "/path/to/your/webpage">
        Options none
        AllowOverride Limit
        Order Deny,Allow
        Deny from all
        Allow from 10.10.10.0/24 10.11.12.16 10.16.21.0/16
    </Directory>

I hope that helps.

BitFreeze.
0
 
srujanmiryalaAuthor Commented:
can u please explain how to do this in jboss server.


<Directory "/path/to/your/webpage">
        Options none
        AllowOverride Limit
        Order Deny,Allow
       Deny from 10.10.10.0/24 10.11.12.16 10.16.21.0/16
        Allow from all
    </Directory>

  this mean it will restric the particular ip's range  rite?
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now