Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to create some defination in firewall to open the restricted site (say facebook) if it is coming from the server where our application is hosted but restrict from anywhere else. ie.say our application is hosted on 172.0.0.0 ,if client request is coming from this server it would allow to open fb else it not allow. is it possible to create such defination.

share|improve this question

migrated from stackoverflow.com Aug 24 '12 at 2:38

This question came from our site for professional and enthusiast programmers.

    
I would have to say yes. For a more detailed answer you need to supply more information. –  Keppil Aug 22 '12 at 14:01
    
i have one link in my web application ,on the click of that link i am calling the servlet within the servlet which is deploy on application server i am redirecting the response to facebook.com ,so i want to allow opening facebook if request is coming from this server which is having some ip. –  Atiksh Hajela Aug 22 '12 at 14:05
    
A redirect is something that is happening client-side – so the client will make the request for facebook.com if it is redirected there. And that means checking “if request is coming from this server” is not an option, because the request is not coming from the server. –  CBroe Aug 22 '12 at 14:10
    
hi CBroe , but firstly request goes to servlet from there i am redirecting to facebook,thus it is hitting the app server first –  Atiksh Hajela Aug 22 '12 at 14:19
    
Any suggestion ,its require urgently.. –  Atiksh Hajela Aug 23 '12 at 4:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.