Parvinder Bhasin wrote:
Hi,
After researching a lot on this subject, I finally decided to post
this here.
What I would like to achieve is basically is:
1): A user is connected on my wireless / wired network , operating
in transparent proxy I would like user before they can get to a site
with squid is basically they get a user info page where they input
their name and email upon submitting ( I like to store this data) they
are then allowed access to the internet via squid. I am not really
looking to AUTH a users but just want to get some info from the user
before they can browse the net. Basically these sort of things can be
seen on free wireless hotspots these days. Can I really achieve this
? if so, can someone point me in the right direction.
Use the session helper to redirect first requests to a page that asks
for the details. Have the submit button redirect the surfer to the
original destination. Since you are not interested in authenticating
surfers, you have no way of verifying the details are legitimate.
2): Lastly , I would like the users to get a CUSTOM BANNER in a frame
of some sort while surfing.
Here is the visualization of what I would want squid to do.
|-----------------------------------------------------------------|
| CUSTOM BANNER |
|-----------------------------------------------------------------|
| |
| google.com |
| [-----------------------] search |
| |
| |
| |
-------------------------------------------------------------------
Can I really do this with squid?
Not with Squid alone (well, perhaps with Squid3 and ICAP). Using Squid
and a redirector push all requests to a page that puts the requested
website in a frame/iframe under your banner.
I don't mind writing code (plugin) either but I would rather first
find out what I can achieve with squid. If I do however need to write
something on my own (plugin) can someone point me in the right direction.
Maybe someone else has a better idea...
Thanks in advance :)
Chris