hiding an Url Urgent.....

Last post 11-20-2008 4:06 PM by sonu. 26 replies.
Page 1 of 2 (27 items) 1 2 Next >
Sort Posts: Previous Next
  • 11-06-2008 4:13 PM

    hiding an Url Urgent.....

    Hey guys,

     

           I have this problem i have an application which connects to my application and my application runs an soap request and the according to the response i redirect to the respective URL....but my problem the user doesn't want the redirected url to be shown as they might bookmark it...

           i have tried blocking the browser functionalities but that was not enough i need an solution can someone help me with this?

    Filed under: , ,
  •  Advertisement

    Featured Advertisement

     
  • 11-06-2008 8:52 PM In reply to

    • sonu
    • Top 10 Contributor
    • Joined on 05-22-2006
    • Montreal / Canada
    • Slacker
    • Points 12,183
    • MVP

    Re: hiding an Url Urgent.....

    This blog post should solve your problem.

    http://geekswithblogs.net/rashid/archive/2007/01/18/103875.aspx

    [MVP since 2005] [MCAD]
    Webmaster of DotNetSlackers
    Question or Suggestion?
    Feel free to ask my any .NET question
    Our Posting FAQ
  • 11-07-2008 8:05 AM In reply to

    • xxxd
    • Top 10 Contributor
    • Joined on 12-18-2006
    • Slacker
    • Points 19,057

    Re: hiding an Url Urgent.....

  • 11-07-2008 10:49 AM In reply to

    Re: hiding an Url Urgent.....

    this doesn't work for me as i need to restrrict user from bookmarking it and i cannot control the incoming url and the target url too...can u pls help me out with another solution...

  • 11-07-2008 12:21 PM In reply to

    • sonu
    • Top 10 Contributor
    • Joined on 05-22-2006
    • Montreal / Canada
    • Slacker
    • Points 12,183
    • MVP

    Re: hiding an Url Urgent.....

    I dont think there is any way to do that. Why do you want the user to restrict the URL?

    [MVP since 2005] [MCAD]
    Webmaster of DotNetSlackers
    Question or Suggestion?
    Feel free to ask my any .NET question
    Our Posting FAQ
  • 11-07-2008 3:47 PM In reply to

    Re: hiding an Url Urgent.....

    i wanted to do that bcoz i doesn't want the user to bookmark that page .....and do u think url rewrite would be an option???

  • 11-07-2008 10:43 PM In reply to

    Re: hiding an Url Urgent.....

    i wanted to do that bcoz i doesn't want the user to bookmark that page .....and do u think url rewrite would be an option???

  • 11-09-2008 5:57 AM In reply to

    • xxxd
    • Top 10 Contributor
    • Joined on 12-18-2006
    • Slacker
    • Points 19,057

    Re: hiding an Url Urgent.....

    http://www.velocityreviews.com/forums/t164263-prevent-bookmarking.html

    here is some discussion that maybe helpful.

    It is possible to send post request, so url have only part of the information and bookmarked page would fail.

     

  • 11-10-2008 2:33 PM In reply to

    Re: hiding an Url Urgent.....

    can smeone help me out with this i am stuck here..plzzz

  • 11-10-2008 3:04 PM In reply to

    • xxxd
    • Top 10 Contributor
    • Joined on 12-18-2006
    • Slacker
    • Points 19,057

    Re: hiding an Url Urgent.....

    Will a post operation work for you?

    If a get request is sent, all of query parameters can be seen from the url and can be bookmarked.

    as in: getData.aspx?x=5&y=6

    however, if it is a post request,

    the url will only be getData.aspx and if next time a user goes to this page, it will fail.

    let me know if you need an example of sending a post request

  • 11-10-2008 5:06 PM In reply to

    Re: hiding an Url Urgent.....

    pls send me an example that would be great....

  • 11-10-2008 5:24 PM In reply to

    • xxxd
    • Top 10 Contributor
    • Joined on 12-18-2006
    • Slacker
    • Points 19,057

    Re: hiding an Url Urgent.....

    this is the code I stole from other people

    private XmlDocument FetchXMLfromPostData(String URI, string Parameters)
        {
           System.Net.WebRequest req = System.Net.WebRequest.Create(URI);

                req.ContentType = "application/x-www-form-urlencoded";
                req.Method = "POST";

                byte[ bytes = System.Text.Encoding.UTF8.GetBytes(Parameters);
                req.ContentLength = bytes.Length;

                System.IO.Stream os = req.GetRequestStream();
                os.Write(bytes, 0, bytes.Length);
                os.Close();

                System.Net.WebResponse resp = req.GetResponse();
                if (resp == null) return null;

                System.IO.StreamReader sr = new System.IO.StreamReader(resp.GetResponseStream());
               

                Response.Write(sr.ReadToEnd().Trim());

    }

  • 11-11-2008 9:51 AM In reply to

    Re: hiding an Url Urgent.....

    thanks and is the URI is the place we have to input the url to which it is redirected??and what would be the parameters??

  • 11-11-2008 9:54 AM In reply to

    Re: hiding an Url Urgent.....

    my url looks smethng like this...http://192.168.22.11/hdjd/mls-updates.pdf this is where the content is...

  • 11-11-2008 10:27 AM In reply to

    • xxxd
    • Top 10 Contributor
    • Joined on 12-18-2006
    • Slacker
    • Points 19,057

    Re: hiding an Url Urgent.....

     how you generate your pdf file?

    this would be a sample how you call the function

     string params = "address=123 street&city=chicago&state=il&zip=12345&uname=me&pwd=him"

                     

            xdoc = this.FetchXMLfromPostData(yoururl, params);

     

     

Page 1 of 2 (27 items) 1 2 Next >