How to remove creation of file paths? I have created a Drupal project, on that project I have many files uploaded. But when I crawl the project through crawlers I am getting files as file url like the following.

http://project.com/files/file2png
  This means I have a file in my files directory as file2.png
http://project.com/files/file1png
  This means I have a file in my files directory as file1.png

I have a File Entity module. Does it create url in this format?
If yes, how to avoid this?

And I don't know which module makes this. I want to avoid this. Is there any way to remove creation of file paths for my files?
According to your comment:


  I don't want to create pages for the Files


The url file/%file is registered as menu item in file_entity_menu(). You can disable the page by implementing hook_menu_alter() in custom module.

Example

/**
 * Implements hook_menu_alter().
 */
function mymodule_menu_alter(&amp;$items) {
  // disable the file entity page
  $items['file/%file']['access callback'] = FALSE;
}


Another question you mentioned.


  Can I redirect to home page for file url's?


You can override the page callback and add the redirection in it.

Example

/**
 * Implements hook_menu_alter().
 */
function mymodule_menu_alter(&amp;$items) {
  // disable the file entity page
  $items['file/%file']['page callback'] = 'mymodule_file_callback';
}

function mymodule_file_callback($file) {
  drupal_goto('&lt;front&gt;');
}