Solved

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

Posted on 2011-02-22
2
231 Views
Last Modified: 2012-05-11
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
Comment
Question by:srujanmiryala
2 Comments
 
LVL 11

Accepted Solution

by:
Pieter Jordaan earned 125 total points
ID: 34958492
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
 

Author Comment

by:srujanmiryala
ID: 34958519
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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
Hello EE, Today we will learn how to send all your network traffic through Tor which is useful to get around censorship and being tracked all together to a certain degree. This article assumes you will be using Linux, have a minimal knowledge of …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question