Results 1 to 7 of 7

Thread: Block HTTP requests from other computers in Network

  1. #1
    Join Date
    Oct 2010
    Location
    Kathmandu,Nepal
    Posts
    79

    Default Block HTTP requests from other computers in Network

    Hello
    My computer shares an internet connection using an ADSL router.There are other three machines.I have set up a Apache server for learning purpose and I want it to be inaccessible from anywhere else including the PCs in the network.When I enter my ip-address assigned in the network (192.168.1.1xx) from other computer,I get my ppages and I dont want that.

    How can I block HTTP requests from other computers?

    Thanks in advance.

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    32,324
    Blog Entries
    15

    Default Re: Block HTTP requests from other computers in Network

    Hi
    Configure your web server to just bind to the loopback address rather than your local ip address then you can access locally via http://localhost
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3
    Join Date
    Oct 2010
    Location
    Kathmandu,Nepal
    Posts
    79

    Default Re: Block HTTP requests from other computers in Network

    I tried Yast configuration to activate:
    listen ports and addersses:
    127.0.0.1 80

    But it is still accessible via 192.168.1.100 from another computer.Firewall ports are closed.

  4. #4
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: Block HTTP requests from other computers in Network

    Aatish910 wrote:

    >
    > I tried Yast configuration to activate:
    > listen ports and addersses:
    > 127.0.0.1 80
    >
    > But it is still accessible via 192.168.1.100 from another
    > computer.Firewall ports are closed.
    >
    >

    If the firewall ports are really closed you cannot access that from another
    server, check your firewall again.

    --
    PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.3 | GeForce
    9600 GT | 4GB Ram
    Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia
    ION | 3GB Ram

  5. #5
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    32,324
    Blog Entries
    15

    Default Re: Block HTTP requests from other computers in Network

    Hi
    In the server conf file you need to set the ServerName to localhost:80 and listen.conf to 127.0.0.1:80 then restart apache.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  6. #6
    Join Date
    Dec 2009
    Location
    Moldova
    Posts
    130

    Default Re: Block HTTP requests from other computers in Network

    Or you can remove apache from allowed services and to provide local access via custom rule in susefirewall.

  7. #7
    Join Date
    Oct 2010
    Location
    Kathmandu,Nepal
    Posts
    79

    Default Re: Block HTTP requests from other computers in Network

    Done.
    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •