You will need to make the restrictions on a web server level, not within WordPress itself.
You can restrict table size in the database or restrict folder sizes on the server itself.
Doing this however will break your site. If you restrict a folder to be no more than “X”, then it can’t process the PHP to render the page as there’s no disk space available. Similarly, if you restrict a table or database size (most web hosts restrict their MySQL databases to 1GB by default), there is no way to generate temporary sessions etc.
Check with your web host on the best-recommended practice for your particular environment – just be aware, the moment you put a restriction in place, you will break your site if you ever hit that limit.
Related Posts:
- Migrating a WordPress site from One Hosting Provider to Another?
- Hosting WordPress on Azure?
- How do you seamlessly switch hosting?
- Hosting alternatives to WordPress.com [closed]
- Hosting WordPress on Google Apps Engine (GAE)
- nginx or cherokee ( +php-fpm ) for WordPress backend?
- Running WordPress on low-end hardware/resources?
- Where should I host my images?
- Best hosting for WordPress blog(s)? [closed]
- What issues would you face if you use Nginx
- How to detect that site is hosted on WPEngine?
- Is there a way to figure out the way to access hosting if I have admin privilege?
- WordPress hosting – Shared/dedicated server? Any recommendations? [closed]
- Host wordpress on a subdirectory of a Rails application
- Do I need “wordpress hosting” to host wordpress?
- Google Site and WordPress
- Deploy WordPress From Local Docker to Hosting Provider
- Do i need the git directory?
- How much should this hosting cost? [closed]
- How can I view or FTP into my WordPress site hosted on AWS?
- How can I use more than 2 DB’s
- WordPress out of memory allocated issue?
- Switched hosts to one with cPanel. To transfer my blog should I do the WP install or just be uploading my old WP directory & database?
- Free swf files hosting for wordpress blog
- Has anyone used the wordpress plugin w3-total-cache on a Dreamhost VPS successfully? [closed]
- WordPress moved to a new server with a new databank. Just Theme no plugins. Site worked for minutes then went offline. cant login. Server says 408
- Dynamic sites and hosting limits: PHP Workers VS User Processes Per Sec Limits
- Configure WordPress Installation autoinstalls via Softaculous in WHCMS [closed]
- “508 Resource Limit Is Reached” on WordPress site
- Free WordPress Hosting with Custom Themes? [closed]
- Recommendation for server config for WordPress Staging servers [closed]
- Choose specific kind of hosting service for WordPress?
- Is my host the problem?
- Is Windows hosting a bad idea for wp?
- Stepping up my game with WordPress hosting [closed]
- Can I move WordPress to another folder?
- Why is WordPress filtering Pastebin URL’s
- Different Server for Images
- How to host and manage for clients
- Fantastico pros and cons
- Add wordpress to only one domain in shared hosting with multiple domains
- lost all the links in WordPress after changing hosting
- Unable to Edit Destination settings – 1and1 hosting [closed]
- Hosting wordpress on Amazon [closed]
- How many WP websites can go on one shared hosting account?
- Hostinger masked redirection to wordpress website
- What’s more important for supporting concurrent users on an elearning site with dynamic content, CPUs or RAM?
- Resting a site for a couple of years
- A way to check if wordpress installation is self-hosted or hosted via wordpress.com?
- WIll it be a good idea to host my website images on a 3rd-party service?
- WordPress transfer problems Cant’ find variable jQuery
- Alternatives to hosting WordPress post content?
- Migrating existing site to Azure is slow
- How to check the speed of a WordPress site on different hosts without WordPress access?
- Problem With DNS or WordPress installation>
- Minimum EC2 Requirements for a stable WordPress site
- Integrate wordpress before hosting
- Factors for NON-cached performance?
- WordPress working only in directory named “wordpress”
- Will it make any difference if I have CDN on the same server but different directory?
- Need to delete a wordpress website from Cpanel
- WordPress hosting good practice
- Can I host wordpress separately on one hosting account?
- I am looking for a specialist WordPress host [closed]
- How to Disconnect My Domain Name?
- Difference between WordPress stand alone & through host gator
- Call to undefined function _deprecated_file() in class-smtp.php
- Help with cPanel and sending email
- Not Authorized to View This Page
- How do I use WordPress with HostGator?
- WORDPRESS Updating failed. Error message. The response is not a valid JSON response
- What is the best php version to use with WordPress?
- Most Flawless Way To Transfer from Dev to Prod [duplicate]
- Extremely slow WordPress website with 6000 posts
- Strange redirection issues on wordpress from ssl with padlock to ssl without padlock
- Changing my site url from azure.net to custom domain
- WP Admin missing icons, numerous JavaScript errors, but only when SCRIPT_DEBUG is false
- Point domain to different webhost’s subdirectory wordpress
- Standard Fail2Ban vs. WP Fail2ban vs. WP Fail2Ban Redux
- Uploading website to Host
- Live website is not showing the changes I’ve made [closed]
- Why does do_robots() Allow: /wp-admin/admin-ajax.php by default?
- Hosting my WordPress site out of a subdirectory
- restore a db after bad backup
- Removing the WordPress.com ribbon
- Is my way to change WordPress server is correct?
- What is required in the hosting environment for WordPress to process an image into multiple sizes?
- Server specification [closed]
- How to change archieve frequency of the media file in uploads folder for wordpress blog
- Moving from one host to another – cannot access the dashboard
- How do I change the wpstaging.com domain to new domain without damaging the website?
- Fetch Data from an external MSSQL Database in a Managed WP hosting
- Error 404 Display on otherlinks apart from homepage
- What’s the best way to redirect to a new wordpress website?
- WordPress fails when my post is larger than 1400 words
- Migrated to Namecheap, now Trouble with Database & wp-config [closed]
- WordPress – connection information
- Moved site to 1&1 hosting, but is broken and redirecting to GoDaddy 404 [closed]
- How much network latency is “typical” for east – west coast USA?
- Enqueued stylesheets only loading when logged in. Hosting cache?