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
- Can you host WordPress using Amazon Web Services such as EC2, RDS, EBS etc?
- Restoring WordPress posts from database only
- Hosting multiple WordPress sites on single server – best practices?
- How to move existing WordPress wp-content folder along with database to new server and new domain name?
- Best image hosting service
- Moving WordPress from host without FTP?
- How do I copy a wordpress database?
- WordPress hosting optimized servers – Is this just a sales gimmick? [closed]
- How to use WordPress for class notes?
- How can I view wordpress site hosted locally in my home LAN network from the Internet (outside LAN network)?
- copy wordpress site files on new server
- (Big issue) Blog is Getting Down Each day.. what should i do.?
- Implementing an image hosting website using WordPress? [closed]
- looking for a hosting company for wordpress [closed]
- Site transferred to new server produces 404s
- Multisite – big hosting package or several hosting packages?
- My redirect URL doesn’t show any pages on my website [closed]
- Resolving a 500 Error with GoDaddy Hosting? [closed]
- Host Private Custom Theme
- Is it possible to use different from email in contact form 7 with different domain?
- How to transfer a site to hosting?
- WordPress website working fine on localhost but not displaying front pages on webhost
- Using WordPress multisite for subsites only
- Website painfully slow after migration to VPS2
- ClassLoader.php issues after moving to a new host
- Team member plugin problem after changing to another hosting
- uploading a new theme to live server
- Formatting wordpress debug messages
- Moved my site to new host now getting 404
- Migrating domain name from old WP host to new (which uses vhosts)
- Change a web programmed in ASP.net to WordPress from scratch in the same Hosting
- Changing a domain for a current WP site without having it go inactive
- wp-admin keeps forwarding me to an old url