Restricting access to a wesbite from a particular machine [closed] - java

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
How to restrict access to the site from a particular machine, so that the page is always accessed from a particular machine only.

You can try using getRemoteAddr() available in ServletRequest, to find which IP is trying to access your site and block if necessary.
Useful Links:
http://docs.oracle.com/javaee/6/api/javax/servlet/ServletRequest.html
http://docs.oracle.com/cd/E19857-01/821-0980/bhaip/index.html

Related

Attacked site WordPress [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 7 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
today i've logged in and see it for the 1st time:
mysite.com/?debug=command&expression=%23res%3d%23context.get(\'com.opensymphony.xwork2.dispatcher.HttpServletResponse\'),%23res.setCharacterEncoding(%22UTF-8%22),%23req%3d%23context.get(\'com.opensymphony.xwork2.dispatcher.HttpServletRequest\'),%23res.getWriter().print(%22dir:%22),%23res.getWriter().println(%23req.getSession().getServletContext().getRealPath(%22/%22)),%23res.getWriter().flush(),%23res.getWriter().close()
after that another one:
mysite.com/?redirect:
what can it cause? Injection databse? Virus?
It looks like someone is trying exploit an SQL injection vulnerability in struts2 in order to perform remote code execution.
See http://struts.apache.org/docs/s2-016.html

About Custom exception in java [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
How can I create a custom exception in java without extending any built-in exception class?
You can't. In Java, you can only throw a class that (eventually, somewhere down the line) extends java.lang.Throwable.

OpenShift Online: European Hosting [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
How can I convert existing application from US hosting location(aws-us-east-1 region) to European hosting location?
You would need to use the rhc snapshot command, to do a backup of the existing application, then create a new gear in the ea location and do an rhc snapshot restore to that gear, or the rhc create-app with the --from-app.
You can check out these resources for more specific information:
https://help.openshift.com/hc/en-us/articles/203265710-How-can-I-move-an-existing-application-from-the-US-aws-us-east-1-hosting-region-to-the-European-aws-eu-west-1-hosting-region-
https://developers.openshift.com/en/overview-platform-features.html#_migrating_an_existing_application_to_another_region_or_zone

How can create an isolated JVM? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
How can I create JVM with fewer cpu and ram (resources) and give other access to it, while also ensuring that they cannot manipulate or view files or data of my system?
I want to create a web interface java compiler which everyone can use and would not like if other can manipulate my system.
If you use VirtualBox or another VM you can
choose the OS, it doesn't have to be the same.
choose all the files it can see
choose how much CPUs and memory it can use.
make it hard to break out of the virtual host and into the real host.

What does the name Spring IO mean? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
In fall 2013 Spring has launched its new Website (spring.io) and announced its new platform "Spring IO". But what does this name/abbreviation "IO" mean?
I am NOT asking for any (technical) description of what Spring IO is, I am only interested in the name.
This question is not about the name of the website, it is about the name of the platform! - It think names are important for programming, and good names help to understand programs faster (Clean code), so I hope this name is not only a marketing gag
its Integration Objects as given in the link http://java.dzone.com/articles/spring-and-c24-io-accelerating

Categories