PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
thoth
New Member
New Member


Joined: Oct 15, 2006
Posts: 15

PostPosted: Sat May 10, 2008 2:18 pm Reply with quote Back to top

Hi, I have a bit of a problem, I'm using the Search Web module v2, and when people use a plus sign in the search string as you do in Google etc, Sentinel is banning them. I added an STR_REPLACE to replace the + signs as spaces,What's the best way forward? paste the search modules code in here?

Here's the report, I just noticed three lots of / character ..

User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
Query String: ****.com/modules.php?name=Search_Web&op=search&cx=mygooglestringq&cof=FORID:11&query=\"Ghost+Research+International\"
Get String:
Only registered users can see links on this board!
Get registered or login to the forums!
"Ghost Research International\\\"
Post String:
Only registered users can see links on this board!
Get registered or login to the forums!

Forwarded For: none
Client IP: none
Remote Address: 220.253.31.21
Remote Port: 4216
Request Method: GET

The ****.com is my domain and 'mygooglestring* is just the api key that I've commented out.
View user's profile Send private message Visit poster's website
BobMarion
Site Admin


Joined: Oct 30, 2002
Posts: 1039
Location: RedNeck Land (known as Kentucky)

PostPosted: Mon May 12, 2008 5:44 am Reply with quote Back to top

I do believe it's the quote marks that are triggering the blocks instead of the + marks. What is the blocker that is triggered? Filter or String blocker?
View user's profile Send private message Send e-mail Visit poster's website
BobMarion
Site Admin


Joined: Oct 30, 2002
Posts: 1039
Location: RedNeck Land (known as Kentucky)

PostPosted: Mon May 12, 2008 6:09 am Reply with quote Back to top

I can tell you that it is not the + marks but the " marks that is triggering the blocks. You should get a notice that user BobMarion has been blocked from your site cause I just tested it on your site Smile

Tried the search string rock+roll and no block but you add " to it and you will get blocked Smile

Here's what is weird about the block. The " marks cause it to trigger the Admin blocker instead of the Filter blocker as I would have expected it to.[/img]
View user's profile Send private message Send e-mail Visit poster's website
thoth
New Member
New Member


Joined: Oct 15, 2006
Posts: 15

PostPosted: Mon May 12, 2008 6:27 am Reply with quote Back to top

Hi Bob..

You know I saw a registration Bob Marion, and I was thinking .. " I know that name from somewhere, but where ..hmmm" Smile

Well I changed the code a bit, so that the results page is seperate from the search page, so it wasn't using $_GET etc. I picked up the Search Web 2 code from clan gamers or whatever it is. The new stuff I did myself, but it is still blocking you I see with the quotes.

I don't really want to get Sentinel to ignore the Search module, because spammers and hackers are trying to use the search for their activities.

I would've thought it would have blocked using the filter blocker. I'll go and unban you Bob Very Happy

Any ideas on how to put it right? I can send you the code for the modules, but for security would rather not post them here.
View user's profile Send private message Visit poster's website
BobMarion
Site Admin


Joined: Oct 30, 2002
Posts: 1039
Location: RedNeck Land (known as Kentucky)

PostPosted: Mon May 12, 2008 7:05 am Reply with quote Back to top

Send a copy of the module to me at webmaster(at)nukescripts(dot)net . I 'll look at it but I don't know that there is a real solution without opening a hole. There might be a possible way of striping out the " marks but I would have to have the module to see how it is handling everything.

Oh, here is an example of something I posted to warn people not to use certain characters in searchs but they still ignore it. Look just below the search box:
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Send e-mail Visit poster's website
thoth
New Member
New Member


Joined: Oct 15, 2006
Posts: 15

PostPosted: Tue May 13, 2008 2:05 am Reply with quote Back to top

Hi, thanks I have just sent that off to you. I saw that alert box on your downloads area, and I can imagine people do still ignore it, even though it couldn't be made any more clear to them. I was thinking of using an str_replace(""","",$searchstring) just after the form input? Trouble is, that loses the Google search functionality.

Thanks again for helping Smile
View user's profile Send private message Visit poster's website
thoth
New Member
New Member


Joined: Oct 15, 2006
Posts: 15

PostPosted: Tue May 13, 2008 5:48 am Reply with quote Back to top

Hi Bob

Thanks so much for looking into this for me.Below is the code for the
search module. I tried mailing you, but your domain is bouncing googlemail addresses, and I tried to send it as a PM, but it told me it was incorrect content?

<!-- Google CSE Search Box Begins -->
<form id="cse-search-box"
action="http://www.book-of-thoth.com/Results.html">
<input type="hidden" name="cx"
value="apikey" />
<input type="hidden" name="cof" value="FORID:11" />
<input name="q" type="text" size="40" />
<input type="submit" name="sa" value="Search" />
</form>
<script type="text/javascript"
src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en"></script>
<!-- Google CSE Search Box Ends --><br>
<br>
<br>

And this is the code of the results page

<!-- Google Search Result Snippet Begins -->
<div id="cse-search-results"></div>
<script type="text/javascript">
var googleSearchIframeName = "cse-search-results";
var googleSearchFormName = "cse-search-box";
var googleSearchFrameWidth = 600;
var googleSearchFrameborder = 0;
var googleSearchDomain = "www.google.com";
var googleSearchPath = "/cse";
</script>
<script type="text/javascript"
src="http://www.google.com/afsonline/show_afs_search.js"></script></center>
<!-- Google Search Result Snippet Ends -->

I really hope you can see a way round this, I think it's because people are seeing "google" in the search box, and think they can use the same syntax, which would be a shame if they couldn't.

Really am utterly impressed with Sentinel, and I will be making a donation soon. Is there anything else I can add to secure my site, it's been hacked a few times lately (before I upgraded to Raven and Sentinel).

Many thanks
Michael
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum