LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-17-2014, 06:00 PM   #1
jimbo1954
Member
 
Registered: Oct 2006
Location: High Wycombe, Bucks, UK.
Distribution: Debian and Fedora Core in equal measure
Posts: 264

Rep: Reputation: 33
Can I Force Safesearch in Yahoo?


I'm running a transparent proxy (squid) and DansGuardian to filter web searches. In DansGuardian, I rewrite Google searches so that SafeSearch is always forced on, regardless of what my (young) users may input as a search.

Is there any way of forcing the Yahoo equivalent SafeSearch through a URL rewrite in DansGuardian or Squid?
 
Old 05-23-2014, 05:38 PM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Hey Jimbo,

Quote:
regardless of what my (young) users may input as a search.
For the children then....
The dansqaurdian rules seem to employ a this = that format so...

This is my search for "porn" when yahoo safe search is turned on:
Again turned off...
Nude Celebrity safe search on
again off...
I'm getting the impression looking at the URLs that the safe search setting is not in the URL.
Perhaps a better way to do this with yahoo is create an account, log in and set your preferences to "Safe search" and "stay logged in for 30 days". Copy and paste that profile into the default browser and see if that works.

Last edited by dijetlo; 05-23-2014 at 05:50 PM.
 
Old 05-29-2014, 05:55 AM   #3
jimbo1954
Member
 
Registered: Oct 2006
Location: High Wycombe, Bucks, UK.
Distribution: Debian and Fedora Core in equal measure
Posts: 264

Original Poster
Rep: Reputation: 33
Hi dijetlo

Thanks for the response, you are right that if you set safesearch in Yahoo, it's not (in this instance) done by the search string....but in Google, I can EITHER set safesearch "globally", i.e. by logging on, and changing my profile, OR by adding to the search string.

You have correctly identified that I could set Safesearch globally by changing my profile, but what I really want to do is to add to each search string a command that forces safesearch for that search only...

To impose SafeSearch for Google or Bing, all you have to do is add the following to /etc/dansguardian/lists/urlregexplist (it might be in a different folder, but the name of the file will be urlregexplist)


#for google
#we add &safe=vss to the end of every search
"(^http[s]?://[0-9a-z]+\.google\.[a-z]+[-/%.0-9a-z]*/search\?.*)"->"\1&safe=vss"


#for bing
#similar, but &adlt=strict is the keyword
"(http[s]?://[0-9a-z]+.bing.com/images/search\?.*)"->"\1&adlt=strict"

but I can't see a way of doing it in Yahoo

Anyway, thanks for your thoughts....anyone else going to contribute to this thread?

Last edited by jimbo1954; 05-29-2014 at 05:56 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No force feedback in wine game from a Logitech Driving Force GT ethoms Slackware 11 05-17-2014 10:23 AM
No Yahoo Upgrade Then No Yahoo Mail! cousinlucky General 35 09-12-2011 06:41 PM
SquidGuard 1.2 safesearch leejohnli Linux - Server 0 09-21-2010 01:26 AM
Force Quitting RichMan1 Linux - Newbie 3 03-08-2005 12:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration