Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Limiting access to a local web application

by AltBlue (Chaplain)
on Aug 03, 2008 at 23:20 UTC ( [id://701944]=note: print w/replies, xml ) Need Help??


in reply to Limiting access to a local web application

You might be able to do that by plugging some firewall that knows how to deal with "packet owners", denying all connections to your local web server if the outgoing packet does not come from "The user".

Here's a Linux example, assuming that user's ID is 1234 and the web server runs only on local interface (lo), on TCP port 80:

# iptables -A OUTPUT -p tcp -m owner --dport 80 -o lo+ ! --uid-owner +1234 -j DROP

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://701944]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-06-19 14:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.