Advanced Search - 403 Forbidden error
#1
Posted 26 December 2008 - 01:21 AM
When you go to advanced search and type in whatever, and check the box to include the description (and then hit 'search'), you are taken to an HTTP 403 Forbidden error page which says 'This site requires you to log in.'
Any ideas where this might be coming from?
(I'm so glad I'm finding these things before I go live...LOL)
#2
Posted 28 December 2008 - 03:53 PM
# anti xss script 1 - pci compliance - by pixclinic
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*iframe.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule ^(.*)$ index_error.php [F,L]
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
If it is the htaccess file preventing people from doing an advanced search, is there any way around it?
Thanks!
#3
Posted 29 December 2008 - 05:06 PM
#4
Posted 29 December 2008 - 05:18 PM
I realize there are pro's and con's to posting store URL's (especially if it's a work in progress), but on the other hand "a link can be worth a thousand words" (to butcher a common phrase).
Posting your URL normally (like www.yoursite.com) can result in your posts here showing up when people search for your site.
If you phrase it like y o u r s i t e DOT c o m posts here probably won't normally appear on search engine searches for your site.
Just my two cents.
"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."
- Me -
"Headers already sent" - The definitive help
"Cannot redeclare ..." - How to find/fix it
SSL Implementation Help
Like this post? "Like" it again over there >
#5
Posted 29 December 2008 - 05:25 PM
its okay to sh o w of f DOT com (without the spaces, of course
Try searching for a 'red labret' in advanced search with the 'include description' checked.
#6
Posted 29 December 2008 - 05:30 PM
If you want you can PM it to me.
Or maybe I'm just blind as a bat....
"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."
- Me -
"Headers already sent" - The definitive help
"Cannot redeclare ..." - How to find/fix it
SSL Implementation Help
Like this post? "Like" it again over there >
#7
Posted 29 December 2008 - 05:30 PM
#8
Posted 29 December 2008 - 05:37 PM
HTTP 404 Most likely causes: There might be a typing error in the address. If you clicked on a link, it may be out of date. What you can try: Retype the address. Go back to the previous page. Go to and look for the information you want. More information
s h o w o f f DOT c o m SLASH c a t a l o g
"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."
- Me -
"Headers already sent" - The definitive help
"Cannot redeclare ..." - How to find/fix it
SSL Implementation Help
Like this post? "Like" it again over there >
#9
Posted 29 December 2008 - 05:52 PM
#10
Posted 29 December 2008 - 06:02 PM
That aint workin' for me neither...
"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."
- Me -
"Headers already sent" - The definitive help
"Cannot redeclare ..." - How to find/fix it
SSL Implementation Help
Like this post? "Like" it again over there >
#11
Posted 29 December 2008 - 06:10 PM
If so, I'd be in a lot of pain right about now...
"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."
- Me -
"Headers already sent" - The definitive help
"Cannot redeclare ..." - How to find/fix it
SSL Implementation Help
Like this post? "Like" it again over there >
#12
Posted 29 December 2008 - 06:19 PM
#13
Posted 29 December 2008 - 06:34 PM
*COUGH* *COUGH*
Anyway, enough of my stupidity...
I think one of your anti hacking measures is the culprit.
A URL like this:
http://www.yoursite.com/catalog/advanced_search_result.php?keywords=labretWorks fine.
This:
http://www.yoursite.com/catalog/advanced_search_result.php?keywords=labret&search_in_description=1&categories_id=&inc_subcat=1&manufacturers_id=&pfrom=&pto=&dfrom=&dto=&x=89&y=15Or even:
http://www.yoursite.com/catalog/advanced_search_result.php?keywords=labret&search_in_description=1Yields the error.
I've compared the longer URL's to what works on my site and I don't see anything malformed in the URL.
I'm baffled.
(As if that's difficult...
"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."
- Me -
"Headers already sent" - The definitive help
"Cannot redeclare ..." - How to find/fix it
SSL Implementation Help
Like this post? "Like" it again over there >
#14
Posted 29 December 2008 - 06:52 PM
Well, I'm baffled, too. I'm really hoping that someone familiar with those two contributions will see this post. (I'm really kicking myself for not posting this in the Contributions forum first). I think I'm going to start with removing the .htaccess file and seeing what happens, though I won't know what to change or what to do to it to get my adv. search working again if it is, in fact, the culprit.
I do appreciate your looking at it, though.
BTW - I wanted to ask you if my site took a long time to load (I use a ton of jpg files) or if you experienced anything that was a nuisance. You can be honest. And, of course, if you're busy you don't have to answer.
#15
Posted 29 December 2008 - 07:04 PM
I'm not familiar enough with the anti-hacking (or .htaccess files in general) to be much use.
As for load time, I have what they call "economy cable" (which is supposed to be like 21 times faster than dial-up) and your site loads fast enough that if I blink I miss it (the load time, that is).
"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."
- Me -
"Headers already sent" - The definitive help
"Cannot redeclare ..." - How to find/fix it
SSL Implementation Help
Like this post? "Like" it again over there >
#16
Posted 29 December 2008 - 08:08 PM
Just in case someone comes along that knows .htaccess stuff, here's 'Part Two' of the .htaccess file (I should have posted this along with the first part):
# extra anti uri and xss attack script 2 - sql injection prevention
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{QUERY_STRING} ("|%22).*(>|%3E|<|%3C).* [NC]
RewriteRule ^(.*)$ log.php [NC]
RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) [NC]
RewriteRule ^(.*)$ log.php [NC]
RewriteCond %{QUERY_STRING} (java script:).*(;).* [NC]
RewriteRule ^(.*)$ log.php [NC]
RewriteCond %{QUERY_STRING} (;|'|"|%22).*(union|select|insert|drop|update|md5|benchmark|or|and|if).* [NC]
RewriteRule ^(.*)$ log.php [NC]
RewriteRule (,|;|<|>|'|`) /log.php [NC]
I will try removing the .htaccess file next, and then try to single out what part is messing with advanced search if removing it helps...
#17
Posted 29 December 2008 - 10:15 PM
Any suggestions on what I can do to that 'Part one' (the first code box I posted) to allow my advanced search to work would be greatly appreciated!
#18
Posted 29 December 2008 - 11:20 PM
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
I think it's the "bad boy".Change it to this:
# RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
BACKUP BEFORE EDITING.Basically this renders that one line ineffective.
Does that fix the problem?
"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."
- Me -
"Headers already sent" - The definitive help
"Cannot redeclare ..." - How to find/fix it
SSL Implementation Help
Like this post? "Like" it again over there >
#19
Posted 29 December 2008 - 11:44 PM
#20
Posted 29 December 2008 - 11:48 PM
http://www.yoursite.com/catalog/advanced_search_result.php?keywords=labret&search_in_de[color="#FF0000"]script[/color]ion=1And this:
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
Tells it to error out with anything with "script" in it.
"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."
- Me -
"Headers already sent" - The definitive help
"Cannot redeclare ..." - How to find/fix it
SSL Implementation Help
Like this post? "Like" it again over there >









