All posts in HTaccess

How to Prevent Directory Browsing

If you want to disable directory browsing using a .htaccess file on a linux server.

1, Open your .htaccess file.
2, Add the following code

Options -Indexes

3, File save and upload.

IPad Detection via Htaccess

RewriteCond %{HTTP_USER_AGENT} ^.*iPad.*$
RewriteRule ^(.*)$ http://ipad.yourdomain.com [R=301]