Redirect certain IP address .htaccess
If you ever wanted to prevent certain IP addresses from accessing your site, you can easily acheive this in the .htaccess file. Simply list the IP addresses and then redirect…
A bunch of ramblings about PHP programming, JQuery, MySQL and other 'stuff'
If you ever wanted to prevent certain IP addresses from accessing your site, you can easily acheive this in the .htaccess file. Simply list the IP addresses and then redirect…
Using Apache you can stop directory listing with this line in your .htaccess Options -Indexes Basically it says stop access for folders without and index (index.html, index.php, etc)
RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* index.php/$0