MyBB Community Forums

Full Version: Six Methods to Protect Your MyBB Forums
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10
Ingenious stuff Zash, thanks for sharing !
This is very useful. Defenatly going to do the first method.
(2009-02-10, 02:34 AM)Zash Wrote: [ -> ].HTAccess Protect Your Admin Directory
Renaming the admin directory is just step 1 of 3 different processes you can use to rename your directory. The following code snippet will check for somebody's IP address. If their IP address does not match the one that you specify, they will be redirected to your index.

To do this, create a .htaccess file in your admin directory. Add the following code:

Quote:RewriteEngine On
RewriteBase /
RewriteCond %{REMOTE_HOST} !^68\.193\.195\.1
RewriteRule .* http://www.mybbstudios.com [R=301,L]

Change the green to your IP address (using the format specified), and the red to the domain you wish to redirect other people.

If you have multiple administrators, use the following code instead:

Quote:ErrorDocument 403 http://www.mybbstudios.com
Order deny,allow
Deny from all
Allow from 102.54.68.123
Allow from 102.54.68.123

Change the green to each of the IP addresses, and the red to the domain you wish to redirect other people.

Is possible to add the rule of the Google SEO there? LIke this it will give the 403 error in the site?
(2010-01-06, 02:32 AM)Skiilz Wrote: [ -> ]Is possible to add the rule of the Google SEO there? LIke this it will give the 403 error in the site?
What do you mean?
Just redirect to www.mydomain.com/404.php/html whichever yours is.
(2010-01-06, 02:38 AM)Zash Wrote: [ -> ]
(2010-01-06, 02:32 AM)Skiilz Wrote: [ -> ]Is possible to add the rule of the Google SEO there? LIke this it will give the 404 error in the site?
What do you mean?
Google SEO have its own 404 error. I want to add the google seo error to the code.

(2010-01-06, 02:47 AM)Mark.M Wrote: [ -> ]Just redirect to www.mydomain.com/404.php/html whichever yours is.
Didn't work.
I'm not very familiar with Google SEO, sorry.
(2010-01-06, 02:55 AM)Zash Wrote: [ -> ]I'm not very familiar with Google SEO, sorry.
Ok Thank you anyway.
If i am correct, doesn't Google SEO override the normal 40/4/3/1 (Not sure about others)
I tried and it don't overwrite the error that is in the .htaccess.
Pages: 1 2 3 4 5 6 7 8 9 10