You are here: Re: PHP/ASP « All PHP « IT news, forums, messages
Re: PHP/ASP

Posted by Joker7 on 10/13/24 11:26

"Joker7" <sat_ring@hotmail.com> wrote in message
news:1126348903.9fc8a40b69037d19d760a9fb1b9f8314@teranews...
: Hi One and All,
: I have most of my site as PHP now and boy it works a treat thanks for all
: the help in the passed.
:
: I have one last thing to do,I'm still running one ASP script - this is not
: so bad.My question is,it a ASP question :(
:
:
: if (!strstr($_SERVER['HTTP_REFERER'], 'kick-butt.co.uk')) { exit ("Bad
: Referrer");
: }
:
: Is there a ASP snip-it that would do the same as the above? I have done
: google and looked for ASP newsgroups not much support for ASP.
:
: Cheers
: Chris
:
:
Whoops "me tinks" I've up-set one or two here asking a rude question about
ASP....

Just incase anyone 'wishy's' to know one would use:

<%
if left(Request.ServerVariables("HTTP_REFERER"),24) <>
"http://kick-butt.co.uk/" and _
Request.ServerVariables("HTTP_REFERER") <> http://somesite.com then
Response.Redirect "http://kick-butt.co.uk"
end if
%>

But only if you know the requesting server (http://somesite.com) it is
working for me but would be nice if it could be any requesting
server=somethink to work on :)

Cheers
Chris

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация