Questions tagged [files]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
8 views

Website files (documents) hosting for download [duplicate]

I have a website (on development) of learning resources (school exams and courses), which contains links to pdf docs (~ 2000) each user can read the document online or download it, having to start ...
1 vote
2 answers
71 views

How can I check for coding errors in all the HTML files from my site?

I'm working dad's website which is OK but very badly coded. There are many errors like missing opening and closing tags, more brackets than is needed etc. I know in VS Code offers CTRL + SHIFT + M ...
2 votes
0 answers
44 views

Are the advantages to uploading files in a form one at a time rather than all when the form is submitted?

I have a form in my application where user can drop some files (images, csv, or other file types.) My current flow is: User drops the file I read the File and show an preview User Submit the form I ...
2 votes
2 answers
1k views

How can I display the MD5 or SHA1 of files in a web server directory?

When you don't have an index.html, most web servers will show a list of files in the directory. Can I get preferably lighttpd (but Apache as a backup) to do show a file's MD5/SHA1 (along with standard ...
0 votes
2 answers
84 views

How Does Google Search Find Pages On Web Site

Google is finding pages on my site that are not listed in my site map. How does Google Search find a list of pages on a site to index?
2 votes
2 answers
996 views

Are there any files or folders (apart from robots.txt and favicon.ico) which MUST go in the root directory according to their official spec?

I know that Robots Exclusion Protocol (robots.txt) Other similar .txt protocols (including sellers.json) favicon.ico must be placed in the root directory (according to their official spec), like ...
1 vote
1 answer
2k views

cPanel ssh ftp application to transfer files to another server

I have to transfer ~6GB of data from my server to another which I don't own. On my server I have ssh access, and I have SFTP console client. The thing is, other server only supports plain old FTP and ...
1 vote
2 answers
254 views

How do I remove unneeded files from WordPress and Magento installations to stay below a limit on the number of files from my web host?

Using GoDaddy Ultimate Linux Plan, under which these are the features: Plan details: - Ultimate Hosting - 2 CPU - 1,024 MB RAM - 250,000 files - 140 entry processes Till now, there are 7 ...
3 votes
1 answer
94 views

When splitting a folder with tens of thousands of documents into several folders, how can I handle broken links?

I have over 30,000 html files stored in www.example.com/docs, and these files are linked to each other. When it comes to displaying the content of those files on my site, I use the following code: ...
1 vote
0 answers
1k views

Apache FilesMatch to deny access to all ".config" files is working except for web.config

In my apache server I don't want to serve any files with extensions .config because it could contain potentially sensitive information. In my apache2.conf file I added: <FilesMatch "\.config"> ...
1 vote
1 answer
2k views

How do I use Amazon s3 to host audio files linked from my website?

I wanna make a website to allow users to download audio files . Where can i store those audio file. I read about amazon s3 . What is it and how to use it to store my files ? How to serve those files ...
3 votes
0 answers
715 views

Change default index.html page of a subdomain in directadmin

When I create a new subdomain in direct admin panel it gets a default placeholder page saying something between the lines "welcome, the page is under construction" or whatever. I've looked online ...
1 vote
1 answer
8k views

what is the proper file permissions needed for certificate files

I am curious about what should be the file permission of the ssl certificate files. Because you really don't want anyone physically copying the server key, so why does the hosts make it readable to ...
1 vote
1 answer
4k views

Microsoft Edge browser not correctly filtering PDF files in upload file dialog with Contact Form 7

I am using a Contact Form 7 which allows you to attach a PDF file to the message: https://www.publictalksoftware.co.uk/contact-form/ Chrome correctly shows a filter: Firefox correctly shows a ...
1 vote
1 answer
302 views

Do robots.txt and sitemap.xml need to be physical files? [closed]

I have both setup in my routes: Route::get('/robots.txt', function() { // robots.txt contents here }); Route::get('/sitemap.xml', function() { // sitemap.xml contents here }); I can access ...
3 votes
2 answers
100 views

How can I name an image so that a) it's still unique b) descriptive

It's a given that a better name for a picture is "cat_eating_mouse.jpg" than "Aou7aIw=2.jpg". On my website I'm going to have thousands of pictures. It's not a big of a problem to name them manually, ...
1 vote
1 answer
2k views

SEO impact of hosting static HTML on Amazon S3 vs. webserver

Scenario: Updating a static HTML file hosted on AWS S3 bucket. I read that a file (including static HTML) cannot be updated on AWS S3 bucket. Existing file needs to be deleted, new file with same ...
1 vote
0 answers
51 views

Moving files between directories automatically [closed]

I know what I am trying to achieve can be done via cron job, but I know nothing about coding this at all. I have a directory on a website that it updated with new files from an external source daily. ...
0 votes
1 answer
27 views

Is it possible to host just a filesystem instead of an HTML site? [closed]

I know how to program in basic java. Before learning java, I studied HTML. Quite frankly, I forgot it, and it seems to me that it is going to be a hassle updating my HTML code every time I write an ...
1 vote
1 answer
674 views

What image compressor Google Pagespeed Insights uses? [duplicate]

It's very inefficient to compress all my site's images in Google's preferred compresion by running webpage after webpage in Google GPI, downloading all images and upload one by one to my CMS image ...
0 votes
1 answer
1k views

Can files such as PDF and JPEG be stored in MySQL BLOBs to keep them off the webserver?

Situation: Users upload documents through web form and the documents are stored in MySQL (InnoDB) as MEDIUMBLOB. The rationality of this versus to store the original document on the webserver is the ...
0 votes
1 answer
62 views

Directory Structure - Sub Directories or Basic Files

So I basically have my site folder structure like this. Images [folder] CSS [folder] JS [folder] Products [folder] --index.php Services [folder] --index.php Testimonials [folder] --...
1 vote
1 answer
150 views

How to stop parallel downloads

In my server logs I noticed random sets of IP's originating from china that are downloading the same file of about 16MB every couple of hours, and every time the computer downloads it, it starts the ...
10 votes
2 answers
22k views

What is a recommended maximum number of files in a directory on your webserver?

I have directory that contains 400,000+ files. Potentially the directory could easily contain ~30,000,000 files. Is that a good idea or should I rather chop it up in smaller directories like this: /...
4 votes
3 answers
1k views

File limit on shared hosting - does the issue still apply?

I've heard that shared hosting often imposes a limit on files per directory, though obviously this would be different per host. Generally speaking, is number of files still an issue on modern hosts? ...
0 votes
1 answer
338 views

Separate server for images?

Should I be using a separate server for hosting images that are created on a website? For example, my application creates images and currently stores them on the same server. I have around 200k+ ...
3 votes
0 answers
61 views

What is the recommended method to analyse the structure of a HTML page/site? [closed]

Recently, I have had to analyse and upgrade a web application. I need to know the relationships and functions of each file including CSS and JS inside each page, as opposed to the whole website. ...
1 vote
2 answers
620 views

best apache log file permissions on cpanel server

In an effort to protect my site from bad bots including ridiculous hackers that can login to the server, I want to secure access_log and error_log as much as possible without breaking apache or cpanel....
1 vote
2 answers
3k views

How to setup server, file permissions, and python script so that python script can create files and directories

I have a simple form that submits a select box. When the submit button is pressed I run a python script that needs to create a new directory and add files from an repository. Currently I cannot get ...
5 votes
1 answer
3k views

what does license.txt belong to exactly?

Every now and then my server logs report that an IP is trying to look for license.txt on two domains. the IP belongs to amazonaws according to a whois lookup. Is this file supposed to be a new legal ...
2 votes
2 answers
2k views

When and how do I remove temporary files on server left from abandoned forms?

I have a form on my site to submit posts, it features multiple file upload tool (Mini Ajax File Upload Form) which submits files to server as they are added (before actual post submission) and server ...
0 votes
1 answer
96 views

PDF file sizes when attached to a webpage article and hosted on own server

When you host a PDF on your own website and server, and then link to that PDF in an article, does the size of the PDF file matter? Or is the size only a factor when clicked, because of the time it ...
0 votes
0 answers
68 views

How to offer high quality image downloads without making google upset

My website consists of thousands of photos online that people can see. The photographer creates the photos using the highest quality settings possible and then uploads them. Then my php scripts use ...
5 votes
7 answers
13k views

What should the Unix file system permissions be for PHP files under Apache?

What is the best practice for permissions with PHP files? When should they be writable, or executable? What owner is best? I'm using an Apache server.
1 vote
1 answer
69 views

Configure files to come from a central location unless that file has been customized for a specific site

I have an user A on a server, this users has a working set of scripts (html+js+css+everything else). I also have users B-[as much as I want]. I want those to use the exact same files, but if they have ...
1 vote
1 answer
365 views

Files synced via dropbox cannot be served with IIS because of file permissions

I'm running into the problem of using Dropbox and IIS. I am using the Dropbox Folder Sync plugin to sync a folder outside the Dropbox folder. They are synced into my inetpub\root\downloads\ ...
0 votes
1 answer
1k views

Grant Permission to File Folder

I am making a website, and I want the users to be able to access a file folder. I have a link to a folder. When I do this locally, all works fine. But when I upload it to my site, I get: Forbidden ...