Forums
New posts
New posts
Search forums
Market
Domains/Websites Wanted
.com Domain Market
gTLD Domain Market
ccTLD Domain Market
Web3 Domain Market
Third-Level Domain Market
Adult Domain Market
What's New
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Account Upgrade
Premium Members Directory
Log in
Register
What's New
calendar
Search
Search
Search titles only
By:
New posts
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Enjoy unlimited access to all forum features for FREE! Optional upgrade available for extra perks.
Forums
Other
Off Topic
Hostgator hosting and phishing scripts
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Mr. Deleted" data-source="post: 2236268" data-attributes="member: 9589"><p>[code]ErrorDocument 404 /</p><p>ErrorDocument 404 [URL]http://www.slabaugh.org[/URL]</p><p></p><p># BEGIN WordPress</p><p></p><p># WPhtC: Disable directory browsing</p><p>Options All -Indexes</p><p></p><p># WPhtC: Setting 403 Error page</p><p>ErrorDocument 403 [URL]http://www.slabaugh.org[/URL]</p><p></p><p># WPhtC: Protect WP-config.php</p><p><files wp-config.php></p><p>order allow,deny</p><p>deny from all</p><p></files></p><p></p><p># WPhtC: Protect .htaccess file</p><p><files ~ "^.*\.([Hh][Tt][Aa])"></p><p>order allow,deny</p><p>deny from all</p><p></files></p><p></p><p># WPhtC: Protect comments.php</p><p>RewriteCond %{REQUEST_METHOD} POST</p><p>RewriteCond %{REQUEST_URI} .wp-comments-post\.php*</p><p>RewriteCond %{HTTP_REFERER} !.[URL]http://www.slabaugh.org[/URL]. [OR]</p><p>RewriteCond %{HTTP_USER_AGENT} ^$</p><p>RewriteRule (.*) ^[URL]http://%{REMOTE_ADDR}/$[/URL] [R=301,L]</p><p></p><p><IfModule mod_rewrite.c></p><p>RewriteEngine On</p><p>RewriteBase /</p><p>RewriteRule ^index\.php$ - [L]</p><p>RewriteCond %{REQUEST_FILENAME} !-f</p><p>RewriteCond %{REQUEST_FILENAME} !-d</p><p>RewriteRule . /index.php [L]</p><p></IfModule></p><p></p><p># END WordPress</p><p></p><p># Prevent folder browsing</p><p>Options All -Indexes[/code]</p><p></p><p></p><p>[DOUBLEPOST=1432996351,1432995449]</p><p></p><p>[/DOUBLEPOST][CODE]ErrorDocument 404 /</p><p>ErrorDocument 404 http://www.slabaugh.org[/CODE]</p><p></p><p>This part just a basic redirect for any 404, and</p><p></p><p>[CODE]ErrorDocument 403 /</p><p>ErrorDocument 403 http://www.slabaugh.org[/CODE]</p><p></p><p>That is a basic one for a redirect that helps with when a user is on a "forbidden" folder. You can do that for any error code. You can redirect it to any error page that way.</p><p></p><p></p><p>[CODE]# Prevent folder browsing</p><p>Options All -Indexes[/CODE]</p><p></p><p>or</p><p></p><p>[CODE]# WPhtC: Disable directory browsing</p><p>Options All -Indexes</p><p>[/CODE]</p><p></p><p></p><p>This is supposed to prevent the sql injections. I added a plugin, that seems to have done the same thing in the above code, only worded different, so you can choose how you want to do that one.</p><p></p><p></p><p>[CODE]# WPhtC: Protect comments.php</p><p>RewriteCond %{REQUEST_METHOD} POST</p><p>RewriteCond %{REQUEST_URI} .wp-comments-post\.php*</p><p>RewriteCond %{HTTP_REFERER} !.http://www.slabaugh.org. [OR]</p><p>RewriteCond %{HTTP_USER_AGENT} ^$</p><p>RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L][/CODE]</p><p></p><p>This is supposed to protect against spam sql injections into your blog's comments.</p><p></p><p>The following I am not sure about, but I think they were made be the plugin. It seems have some rewrite effect for the files requested.</p><p></p><p>[CODE]<IfModule mod_rewrite.c></p><p>RewriteEngine On</p><p>RewriteBase /</p><p>RewriteRule ^index\.php$ - [L]</p><p>RewriteCond %{REQUEST_FILENAME} !-f</p><p>RewriteCond %{REQUEST_FILENAME} !-d</p><p>RewriteRule . /index.php [L]</p><p></IfModule>[/CODE]</p><p></p><p>To protect the config file. This I think is pretty important, as it is the one that has your database in it.</p><p>[CODE]# WPhtC: Protect WP-config.php</p><p><files wp-config.php></p><p>order allow,deny</p><p>deny from all</p><p></files>[/CODE]</p><p></p><p>And of course, protect your .htaccess file to stop any changes to be made from outside sources.</p><p>[CODE]# WPhtC: Protect .htaccess file</p><p><files ~ "^.*\.([Hh][Tt][Aa])"></p><p>order allow,deny</p><p>deny from all</p><p></files>[/CODE]</p><p>[DOUBLEPOST=1433001785][/DOUBLEPOST]<span style="font-size: 18px">WP Htaccess Editor - add this to edit your .htaccess file</span></p><p><span style="font-size: 18px"><a href="http://www.infinitewp.com" target="_blank">www.infinitewp.com</a> - add this to manage a large amount of wp sites. You can push the wp editor plugin onto all your sites once you have all the sites on the IWP. You can also push a plugin for seo etc on them all that way.</span></p></blockquote><p></p>
[QUOTE="Mr. Deleted, post: 2236268, member: 9589"] [code]ErrorDocument 404 / ErrorDocument 404 [URL]http://www.slabaugh.org[/URL] # BEGIN WordPress # WPhtC: Disable directory browsing Options All -Indexes # WPhtC: Setting 403 Error page ErrorDocument 403 [URL]http://www.slabaugh.org[/URL] # WPhtC: Protect WP-config.php <files wp-config.php> order allow,deny deny from all </files> # WPhtC: Protect .htaccess file <files ~ "^.*\.([Hh][Tt][Aa])"> order allow,deny deny from all </files> # WPhtC: Protect comments.php RewriteCond %{REQUEST_METHOD} POST RewriteCond %{REQUEST_URI} .wp-comments-post\.php* RewriteCond %{HTTP_REFERER} !.[URL]http://www.slabaugh.org[/URL]. [OR] RewriteCond %{HTTP_USER_AGENT} ^$ RewriteRule (.*) ^[URL]http://%{REMOTE_ADDR}/$[/URL] [R=301,L] <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress # Prevent folder browsing Options All -Indexes[/code] [DOUBLEPOST=1432996351,1432995449] [/DOUBLEPOST][CODE]ErrorDocument 404 / ErrorDocument 404 http://www.slabaugh.org[/CODE] This part just a basic redirect for any 404, and [CODE]ErrorDocument 403 / ErrorDocument 403 http://www.slabaugh.org[/CODE] That is a basic one for a redirect that helps with when a user is on a "forbidden" folder. You can do that for any error code. You can redirect it to any error page that way. [CODE]# Prevent folder browsing Options All -Indexes[/CODE] or [CODE]# WPhtC: Disable directory browsing Options All -Indexes [/CODE] This is supposed to prevent the sql injections. I added a plugin, that seems to have done the same thing in the above code, only worded different, so you can choose how you want to do that one. [CODE]# WPhtC: Protect comments.php RewriteCond %{REQUEST_METHOD} POST RewriteCond %{REQUEST_URI} .wp-comments-post\.php* RewriteCond %{HTTP_REFERER} !.http://www.slabaugh.org. [OR] RewriteCond %{HTTP_USER_AGENT} ^$ RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L][/CODE] This is supposed to protect against spam sql injections into your blog's comments. The following I am not sure about, but I think they were made be the plugin. It seems have some rewrite effect for the files requested. [CODE]<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>[/CODE] To protect the config file. This I think is pretty important, as it is the one that has your database in it. [CODE]# WPhtC: Protect WP-config.php <files wp-config.php> order allow,deny deny from all </files>[/CODE] And of course, protect your .htaccess file to stop any changes to be made from outside sources. [CODE]# WPhtC: Protect .htaccess file <files ~ "^.*\.([Hh][Tt][Aa])"> order allow,deny deny from all </files>[/CODE] [DOUBLEPOST=1433001785][/DOUBLEPOST][SIZE=5]WP Htaccess Editor - add this to edit your .htaccess file [URL='http://www.infinitewp.com']www.infinitewp.com[/URL] - add this to manage a large amount of wp sites. You can push the wp editor plugin onto all your sites once you have all the sites on the IWP. You can also push a plugin for seo etc on them all that way.[/SIZE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Other
Off Topic
Hostgator hosting and phishing scripts
Top
Bottom