Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5998471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:24:40+00:00 2026-05-23T00:24:40+00:00

I have REST Web service written in Java. Now I want to disable Web

  • 0

I have REST Web service written in Java. Now I want to disable Web service such as services (GET methods) won’t be accessible over URI or by application. That means I still can access the service program over Web browser but other people would not be able to invokes service methods with URI or other programs. I want to keep the structure of the program the same, but make it like Web application; I do not want to rewrite it.
For example, you can’t make the service methods private because then you can’t run the program assessing via the browser.
What are your solutions?
Cheers

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T00:24:41+00:00Added an answer on May 23, 2026 at 12:24 am

    there is no reliable way to do this. You could require a request header for user-agent, but nothing stops a minimally savvy user from just putting a false request header on the request, regardless of the tool they are using.

    you should instead focus on implementing proper security via authentication and authorization. There are plenty of tools out there that you can use.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have written a stand alone WCF REST service in 4.0 under Studio 2010
I have a REST web service that returns a structure containing an array of
I have a REST web service that returns a javax.ws.rs.core.Response entity. When I run
I have a WCF REST Web Service which returns POCO entities generated by Entity
I have created a REST web service that, on Application_Start, subscribes to another service
I have created a simple Northwind's Product REST Web Service in WCF at /Northwind/Product
Greetings, I have a Cuke test that is testing a rest web service w/
I have Camel route that I would like to expose as a REST Web
I need to call a REST web service that provides an XML feed of
I have a requirement for implementing a data-store. Basically, I just need to be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.