[SOLVED] Search Friendly URLs

General project discussion. NOT for help questions.
Post Reply
merlowe
Forum Members
Forum Members
Posts: 12
Joined: Sun Oct 24, 2010 3:14 pm

[SOLVED] Search Friendly URLs

Post by merlowe »

I read notes on configuring the .htaccess files and it includes notes on URL filtering.
it says;
URL Filtering Using .htaccess You can increase the security of your site and stop many hacking attempts by inserting a few lines into your .htaccess file. These rules reject http requests containing characters commonly used by exploits, but will not affect the normal operation of CMS Made Simple.

http://wiki.cmsmadesimple.org/index.php ... l_Settings
then the following filtering code is shown down the page as part of the full code in the .htaccess file

Code: Select all

# URL Filtering helps stop some hack attempts
#IF the URI contains a "http:"
RewriteCond %{QUERY_STRING} http\: [OR]
#OR if the URI contains a "["
RewriteCond %{QUERY_STRING} \[ [OR]
#OR if the URI contains a "]"
RewriteCond %{QUERY_STRING} \] [OR]
#OR if the URI contains a "<__script__>"
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
#OR script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
#OR any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2}) 
RewriteRule ^.*$ - [F,L] 
# END Filtering

but when i check my .htaccess file included under "doc", there are no URL filtering rules in that file.

I'm using CMS Made Simple 1.8.2 "Toliara".  Are these filtering rules no longer applicable to this version, or should i add them in?  and are the rules that are shown correct for this version?
Last edited by merlowe on Mon Oct 25, 2010 8:46 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Search Friendly URLs

Post by Dr.CSS »

Those aren't in the default htaccess as they are more for those worried about hacks, I just put the htaccess.txt in the root and rename it .htaccess and change the config.php and I'm good to go...
merlowe
Forum Members
Forum Members
Posts: 12
Joined: Sun Oct 24, 2010 3:14 pm

Re: Search Friendly URLs

Post by merlowe »

Thanks, so is it optional whether or not to use them?

If one is concerned about hack attempts, then it should be used, if not then it can be ignored?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Search Friendly URLs

Post by Dr.CSS »

Correct...
merlowe
Forum Members
Forum Members
Posts: 12
Joined: Sun Oct 24, 2010 3:14 pm

Re: Search Friendly URLs

Post by merlowe »

Thanks
Post Reply

Return to “General Discussion”