how to give notice page for web client

Taking care of your Linux box.
Post Reply
Net_Spy
Naik
Posts: 61
Joined: Sun May 30, 2004 2:05 am

how to give notice page for web client

Post by Net_Spy »

Greetings to All,
I want a page to display on client browser when my client send a request for any url . Hope you got my point what I want. simply I need to give any notice or such news . My most of users does not go and read the notice they directly open their browser and start surfing it is the only way to make them read the notice , I only want that page to display for 20 sec . Looking forward for your kind response.

Regards
Net_Spy
syedbilalmasaud
Naib Subedar
Posts: 347
Joined: Thu Aug 18, 2005 9:25 am
Location: Attock
Contact:

Post by syedbilalmasaud »

you can do it by your index page of your www root which you are using like php or html or any other language
Cheers :)

:D B I L A L :D
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

step 1: ignore bilal.
step 2: use http://www.vanheusden.com/ir/
step 3: prepare to deal with annoyed users.
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
syedbilalmasaud
Naib Subedar
Posts: 347
Joined: Thu Aug 18, 2005 9:25 am
Location: Attock
Contact:

Post by syedbilalmasaud »

is it not possible with with php and html ?

the post i had written is correct. depends how you understand and show your self in positive instead throwing crap on someone else

always try to communicate in positive way

so think what you are saying ?

if you will look in to lambda post , package is in development cycle and not good for production use and also it is not updated after 11 Mar 2005, means it is not used by lot of people and developer is not maintaining it and it may cause lot of problems in your services , always look in to development cycle of package.

have a look at security bug report

http://securityvulns.com/Idocument101.html

lambda , always be cool and don't take anything personal , we are here to help everybody not to through crap on each other
Cheers :)

:D B I L A L :D
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

i am net_spy. i've created /showfirst.html on my webserver. i want it displayed to all users first, no matter which url they go to.
[something something]
i am one of net_spy's users. i open my browser and go to http://news.google.com.pk/

fill in the "something" section, bilal. your first post didn't.
if you will look in to lambda post , package is in development cycle
no, it is stable.
and not good for production use
says who?
and also it is not updated after 11 Mar 2005
when was /bin/bash updated? when was /bin/ls updated? maybe it needs to be updated for squid 3.0. maybe not.
means it is not used by lot of people and developer is not maintaining it and it may cause lot of problems in your services , always look in to development cycle of package.
you don't know how many people use it, or if it needs maintenance, or if it will cause any problems. you're spreading fud.

oh, and software that doesn't need updates? it's "developed".
have a look at security bug report

http://securityvulns.com/Idocument101.html
which clearly says, upgrade to 0.3.

even if this software doesn't work, something like it will work far better than what you posted about. i used http://www.google.com/search?q=squid+in ... ct+to+page to find it; i'm sure there are other apps for this.
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
syedbilalmasaud
Naib Subedar
Posts: 347
Joined: Thu Aug 18, 2005 9:25 am
Location: Attock
Contact:

Post by syedbilalmasaud »

how many people are using /bin/bash and /bin/ls and how many people are using this plugin ? so do not compare with beta stage plugin with these tools which is always used by *nix community

lambda wrote:i am net_spy. i've created /showfirst.html on my webserver. i want it displayed to all users first, no matter which url they go to.
[something something]
i am one of net_spy's users. i open my browser and go to http://news.google.com.pk/

fill in the "something" section, bilal. your first post didn't.
if you will look in to lambda post , package is in development cycle
no, it is stable.
and not good for production use
says who?
and also it is not updated after 11 Mar 2005
when was /bin/bash updated? when was /bin/ls updated? maybe it needs to be updated for squid 3.0. maybe not.
means it is not used by lot of people and developer is not maintaining it and it may cause lot of problems in your services , always look in to development cycle of package.
you don't know how many people use it, or if it needs maintenance, or if it will cause any problems. you're spreading fud.

oh, and software that doesn't need updates? it's "developed".
have a look at security bug report

http://securityvulns.com/Idocument101.html
which clearly says, upgrade to 0.3.

even if this software doesn't work, something like it will work far better than what you posted about. i used http://www.google.com/search?q=squid+in ... ct+to+page to find it; i'm sure there are other apps for this.
Cheers :)

:D B I L A L :D
lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Post by lambda »

so do not compare with beta stage plugin with these tools which is always used by *nix community
again: it's not beta, it's stable. i just compiled and tested it with squid 2.6.14 on my desktop. it works. the only change i needed to make was with the configuration: the README says to use
redirect_program /usr/local/bin/ir
redirect_children 1
i changed it to
url_rewrite_program /usr/local/bin/ir
url_rewrite_children 1
since the parameter's name changed.

please either post your php solution, or have the guts to admit your solution doesn't work.
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
x2oxen
Major General
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Location: Faisalabad
Contact:

Post by x2oxen »

This what i found on google for that!

You need a little program which keeps track of the sessions. This silly
perl program should do:

Code: Select all

#!/usr/bin/perl
$|=1;
my %logged_in;

while(<>) {
  if (!defined($logged_in{$_})) {
    $logged_in{$_} = 1;
    print "ERR\n";
  } else {
    print "OK\n";
  }
}
Then use this with the external_acl_type directive in squid.conf with a
very short negative ttl.. then use deny_info to have the user redirected
to the policy page if not matching this acl.


external_acl_type session ...
acl session external session

http_access deny !session
deny_info http://your.web.server/policy.html session

inserted before where you allow access.
Muhammad Usman
+92-321-6640501
Chemonics International
http://usmanpk.com
Post Reply