Security & Firewall

What file permissions should my website use?

File permissions control who can read, write or run each file on your hosting. Getting them right keeps attackers from modifying your files, while wrong permissions can either break your site or leave it exposed.

Recommended defaults for a typical site:

Never use 777 on files or folders. It lets anyone write to them and is a common cause of hacked sites. If a plugin insists on 777 to work, that is a red flag.

To change permissions, use the File Manager in the DirhamHost control panel (right-click a file, choose Change Permissions) via my.dirhamaday.ae, or set them over FTP/SSH with chmod.

If your site suddenly shows a 403 Forbidden or 500 error after a permissions change, it is often because folders lost the 755 or a script lost execute rights; setting them back usually fixes it. Unsure what a file should be? Contact our 24/7 team on WhatsApp +971 58 553 6767 or support@dirhamaday.ae and we will advise.

Still need a hand? Our UAE-based team is here 24/7.

Related articles

What firewall protects my hosting?How does brute-force protection work?Is my website scanned for malware?What is the ModSecurity web application firewall?How do I block a specific IP address?