Internet Related/Filtering/Firewall Thread, Squid question - Refering URL in Technical; Hi,
I'm wondering if anyone can help me. I've got a squid box inside school which redirects blocked sites to ...
11th June 2012, 11:28 AM #1
Squid question - Refering URL
I'm wondering if anyone can help me. I've got a squid box inside school which redirects blocked sites to http://intranet/blocked.asp which is fine.
On the page which is displayed, at the bottom I want to show the requested URL so if it is incorrectly banned, I can allow it.
When I ask people what site is filtered they send me the link in the address bar to the intranet rahter than the correct site.
At present I have
Which works fine if for example they google facebook and then click on a link however, if they go directly in the address bar to facebook then the URL is not written back out to the webpage.
<%strReferer = Request.ServerVariables ("HTTP_REFERER")
response.write strReferer %>
Does anyone know how I can do this? It would be greatly appreciated.
IDG Tech News
11th June 2012, 01:14 PM #2
Not with referrer. The browser simply isn't sending it.
Have squid redirect to http://intranet/blocked.asp?orig=$blocked_site
then take that parameter and use it in your asp.
11th June 2012, 01:16 PM #3
Sorry I'm not very good with ASP and someone else wrote the orignal filter page for me.
What code would I need to add onto the asp filter page please?
11th June 2012, 01:29 PM #4
From reading the post, you shouldn't need to alter the ASP, just the Squid config line which sends them to the ASP page (just a blacklist entry? If so it'd be something like deny_info http://intranet/blocked.asp?orig=$blocked_site blacklist - where 'blacklist' is the name of the deny entry)
11th June 2012, 01:53 PM #5
You can also just grep the squid log file for blocks surely? That way you don't have to ask anyone anything or alter any code/config?
By tarquel in forum Gaming
Last Post: 25th November 2013, 09:18 AM
By Potts in forum General Chat
Last Post: 18th March 2012, 01:16 PM
Last Post: 24th March 2011, 09:07 PM
Last Post: 23rd June 2005, 11:27 PM
By tarquel in forum General Chat
Last Post: 23rd June 2005, 04:25 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)