top button
Flag Notify
Site Registration

What are the special character which are not allowed in URL?

+1 vote

As you can make out, your help will go inside the QueryHome code. We have some need where we need to find out where URL ends. Can someone help on what are the list of special characters which are NOT allowed in a url.

posted Jun 5, 2014 by Salil Agrawal

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Following Character need not to add in url :

 : # ? / \ % 
answer Jun 5, 2014 by Amit Kumar Pandey
But I do see ? / % # (even we use these in queryhome) not sure about : \
Similar Questions
0 votes

While clicking on the image it opens into the browser. I dont want to allow client to open the image in browser as separate url. I have blocked the /image/ directory from access/listing , but the image is opening.

How to stop that in apache. Please help me.

–2 votes

(a) Write a Java program the decomposes a well-formed URL input into its components: scheme (protocol),
hostname, port number, and the resource (le).

(b) Reconstruct the decomposed URL in part (a) into its equivalent one, but replace the hostname with its IP
Tip: Have a closer look at the API and the from

+1 vote

Assume that the base URL for a Web page is
Also assume that this page contains the relative URLs
Give the absolute URL corresponding to the above relative URLs


  1. Give a complete minimal HTTP GET request corresponding to the URL
  2. Give a mailto-scheme URL to send e-mail with subject Test Message to a user named Roger at host