MANAGING CONTENT UPLOAD AND CONTENT RETRIEVAL
A method for managing content upload and content retrieval is provided. The method includes receiving a first content for upload to a first address in a first domain. A first identifier for the first content is then generated. A second address in a second domain is determined using the first identifier. The first content is then stored at the second address. Further, a request for the first content directed to the first address is received. The first content is then served from the second address.
1 . A computer-implemented method for managing content upload and content retrieval, the method comprising:
receiving a first content for upload to a first address in a first domain;
generating a first identifier for the first content;
determining a second address in a second domain using the first identifier;
causing to store the first content at the second address;
receiving a request for the first content, the request directed to the first address; and
serving the first content from the second address.
2 . The method as claimed in claim 1 , wherein the first content comprises at least one of an executable file, a malicious script, or malicious data.
3 . The method as claimed in claim 1 , wherein processes running at the second address do not have access to the first address.
4 . The method as claimed in claim 1 , wherein determining comprises:
identifying a predefined address in the second domain; and
modifying the predefined address using the first identifier to determine the second address.
5 . The method as claimed in claim 1 , wherein the second domain is at least one of:
a cookieless domain; or
an access control list free domain.
6 . The method as claimed in claim 1 and further comprising:
storing the second address in a mapping for the first address.
7 . The method as claimed in claim 1 and further comprising:
receiving a second content for upload to the first address in the first domain;
generating a second identifier for the second content;
determining a third address in the second domain using the second identifier;
causing to store the second content at the third address;
receiving a request for the second content, the request directed to the first address; and
serving the second content from the third address.
8 . An apparatus for managing content upload, the apparatus comprising:
one or more processors;
a non-transitory computer readable medium storing instructions, that when executed by the one or more processors, cause the apparatus to perform:
receiving a first content for upload to a first address in a first domain,
generating a first identifier for the first content,
identifying a predefined address in the second domain;
modifying the predefined address using the first identifier to determine a second address, and
causing to store the first content at the second address for access via a request directed to the first address.
9 . The apparatus as claimed in claim 8 , wherein the first content comprises at least one of an executable file, a malicious script, or malicious data.
10 . The apparatus as claimed in claim 8 , wherein processes running at the second address do not have access to the first address.
11 . The apparatus as claimed in claim 8 , wherein the instructions, when executed by the one or more processors, further cause the apparatus to perform:
receiving the request for the first content, the request directed to the first address; and
serving the first content from the second address.
12 . The apparatus as claimed in claim 8 , wherein the second domain is at least one of:
a cookieless domain; or
an access control list free domain.
13 . The apparatus as claimed in claim 8 , wherein the first content is received from a first user device and the request for the first content is received from a second user device.
14 . The apparatus as claimed in claim 8 , wherein the instructions, when executed by the one or more processors, further cause the apparatus to perform:
storing the second address in a mapping for the first address.
15 . The apparatus as claimed in claim 8 , wherein the instructions, when executed by the one or more processors, further cause the apparatus to perform:
receiving a second content for upload to the first address in the first domain;
generating a second identifier for the second content;
identifying the predefined address in the second domain;
modifying the predefined address using the second identifier to determine a third address in the second domain;
causing to store the second content at the third address.
16 . The apparatus as claimed in claim 15 , wherein the instructions, when executed by the one or more processors, further cause the apparatus to perform:
receiving a request for the second content, the request directed to the first address; and
serving the second content from the third address.
17 . A non-transitory computer readable medium for storing computer instructions that when executed by at least one processor causes the at least one processor to perform a method for managing content retrieval, the method comprising:
receiving a request for a first content, the request directed to a first address in a first domain;
identifying a second address in a second domain from a mapping stored for the first address, wherein the second address is generated by modifying a predefined address in the second domain using a first identifier uniquely generated for the first content; and
providing the first content from the second address.
18 . The non-transitory computer readable medium as claimed in claim 17 , wherein processes running at the second address do not have access to the first address.
19 . The non-transitory computer readable medium as claimed in claim 17 , wherein the method further comprises:
receiving the first content for upload to the first address in the first domain;
generating the first identifier for the first content;
determining the second address in the second domain using the first identifier; and
causing to store the first content at the second address and the second address in a mapping for the first address.
20 . The non-transitory computer readable medium as claimed in claim 17 , wherein the method further comprises:
receiving a request for a second content, the request directed to the first address in the first domain;
identifying a third address in the second domain from the mapping stored for the first address, wherein the third address is generated by modifying the predefined address in second domain using a second identifier uniquely generated for the second content; and
providing the second content from the third address.