The My Opera forums have been replaced with forums.opera.com. Please head over there to discuss Opera's products and features

See the new Forums

How to restrict Opera to localhost ?

Forums » Opera for Windows/Mac/Linux » Opera browser

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

2. November 2011, 21:58:56

Hibou57

Opera's as nice as an opera

Posts: 689

How to restrict Opera to localhost ?

Hi all,

I've created an alternate launcher for Opera, to launch it without the mail client, without cache, without plug‑ins, and so on, in order to use it on local host only, for some purpose (mainly documentation purpose).

It is launched with a specific profile directory (command line option “-pd”).

Everything is fine, except to be perfect, I need to restrict it to local host only, like 127.*.*.* and

Is there a known configuration to achieve this ?
For publication tool chain (for the web and else) : Semantic online editor, Lasidoré (XML based) - prerelease - requires at least Opera 9.5 to work nice

Google is not a synonym of Search engine : boys and girls, have a look at Exalead and WolframAlpha

3. November 2011, 00:26:55

Moderator

Tamil

:-(|)

Posts: 115322

Open urlfilter.ini in text editor and replace content with the following. If it doesn't exist create it inside Opera directory.
Opera Preferences version 2.1
; Do not edit this file while Opera is running
; This file is stored in UTF-8 encoding

[prefs]
prioritize excludelist=0

[include]
http://127.*.*.*/*
file://localhost/*

[exclude]
*

3. November 2011, 02:51:20

Hibou57

Opera's as nice as an opera

Posts: 689

Hello Tamil, nice to see again p

Tried urlfilter.ini, … does nothing. I tried to understand why and tried to trick, but whatever I do, it does not block any external URLs or contents.

Fortunately, I found a way: open Menu -> Settings -> Preferences. Then go to the Advanced tab, then select Network. Click on Proxy Server. Check HTTP, and “Use this proxy for all protocols”. In Proxy Server, enter “localhost” then in Port, enter “80”. All requests to outside of localhost will then be redirected to localhost's home page.

And voilà smile
For publication tool chain (for the web and else) : Semantic online editor, Lasidoré (XML based) - prerelease - requires at least Opera 9.5 to work nice

Google is not a synonym of Search engine : boys and girls, have a look at Exalead and WolframAlpha

Forums » Opera for Windows/Mac/Linux » Opera browser