|
Anyone use any special techiques to protect e-mail addresses on a web site from spam harvesters?
So far, the ideas I've run across:
a) use html numeric equivalents for the address. "examblah". I don't see how this will help once the spam bots detect hex values.
b) use words in place of symbols. "joe at place dot net" A pain for users to edit the address.
c) use forms - protects from spam, but not as easy to use for users; user has to type their own addy and may accidently enter wrong address.
Any ideas?
It's a php based site.
My 20 Favorite Films
|
|
|
|
|
If it's a PHP web site then the best thing to do is have the server send your emails.
If you can't send email from your server or you just want people to send email using their outlook, then the best appraoch i've seen is a clever javascript approach.
I believe it worked somehting like:
Basically capture onclick inside a ANCHOR tag. and store the actual email address in seperate variables.
var name = "Name"
var domain = "hotmail"
var postfix = "com"
this.href = "mailto: "+name+"@"+domain+"."+postfix;
You may have to play around with it cuz this code wasn't tested, but I know it works (the idea anyways) so you should be able to go from here.
Cheers
How do I print my voice mail?
|
|
|
|
|
please help me creat an internet filter application which will block all unwanted sites. The application will use key words to filter contents requested by clints. The application should also use a web robot if possible. I would be glad if you took time to help me here. You can mail me at michubu@hotmail.com.
|
|
|
|
|
Wrong forum I think.
Sounds like you want some sort of internet proxy which prevents browsers from viewing certain sites.
If so then here is some advice.
Look at articles here on CP there are a few that already basically have everything you need.
How do I print my voice mail?
|
|
|
|
|
I am very interest in this field,but I find it very difficult to get something about it.
I want to search for some samples like a video char room uses ASP or ASP.NET,I think it will learn faster by samples.
Thanks!!
|
|
|
|
|
hello
I have designed a web site, and i had uploaded to server.
I want the people who view my web site can't save it to local machine like www.msn.com (you can't save it to local host).
(choose file,save or save as from menu of IE).
Please help me.
Thanks.
|
|
|
|
|
if you figure it out let me know
How do I print my voice mail?
|
|
|
|
|
ok, it's another aspect of problem, i only care about how to figure it out. Thank a ton.
|
|
|
|
|
TrungHuynh wrote:
want the people who view my web site can't save it to local machine
It is not possible to disallow people from saving from IE. Anything which is rendered to the browser can be saved by user.
TrungHuynh wrote:
like www.msn.com (you can't save it to local host).
(choose file,save or save as from menu of IE)
It's a bug, confirmed by Microsoft. See here[^]. Anyways, it works with FireFox.
Cheers
"Good morning is a contradiction of terms." -Garfield
|
|
|
|
|
Can I compile browser JScript into a IL byte code using JScript.NET?
If so once my code is in compiled form can I still use it like I would interpreted script from a web page?
Would my users have to download any kind of active X control or anything? Would everything be OK so long as they had IE 6 or would they need to download the .NET dll's or do they dome with IE 6?
Cheers
How do I print my voice mail?
|
|
|
|
|
|
I cannot for the life of me find an example of JScript/javascript regex which would strip only a given tag.
Can someone give me the regex required to strip only a single tag?
I cannot just do a simple find for P tags or something and remove them, becuase each element may have attributes as well.
So
<b>test</b>
<b style="font-size: 12pt">test</b>
Must output:
test
In a perfect world I would like a routine similar to PHP strip_tags() where I could specifiy which tags I wanted removed.
strip_tags(org_text, tags_not_2_keep);
called as:
strip_tags("some text", "p, b, i, iframe");
The above function would strip all tags, BUT p, b, i, iframe
If anyone knows of a javascript function which does this...I would really appreciate you showing me it.
Cheers
How do I print my voice mail?
|
|
|
|
|
I have found the following but it needs a bit of tweaking:
String.prototype.strip_tags = function() {
return this.replace(/<\/?[a-z]+>/gi, '');
}
How do I print my voice mail?
|
|
|
|
|
Try something like this:
function stripTags(value, exclude, tagsToExclude)
{
if ("string" != typeof(value) || 0 == value.length) return "";
if ("boolean" != typeof(exclude)) exclude = true;
var arrTags = null;
var tagCount = 0;
switch(typeof(tagsToExclude))
{
case "object":
if (Array == tagsToExclude.constructor)
{
tagCount = tagsToExclude.length;
if (0 == tagCount)
{
arrTags = new Array();
for(var key in tagsToExclude)
{
arrTags.push(tagsToExclude[key]);
tagCount++;
}
}
else
{
arrTags = tagsToExclude;
}
}
break;
case "string":
var len = arguments.length;
tagCount = len - 2;
arrTags = new Array(tagCount);
arrTags[0] = tagsToExclude;
for(var i = 3; i < len; i++)
{
arrTags[i - 2] = arguments[i];
}
break;
}
if (!exclude && 0 == tagCount) return value;
var reTag = /<\/?([a-z0-9]+)[^>]*>/gi;
if (0 == tagCount)
{
return value.replace(reTag, "");
}
else if (exclude)
{
return value.replace(reTag, function($0, $1)
{
var tagName = $1.toLowerCase();
var found = false;
for(var i=0; i < tagCount && !found; i++)
{
if (arrTags[i] == tagName) found = true;
}
return found ? $0 : "";
});
}
else
{
return value.replace(reTag, function($0, $1)
{
var tagName = $1.toLowerCase();
var found = false;
for(var i=0; i < tagCount && !found; i++)
{
if (arrTags[i] == tagName) found = true;
}
return found ? "" : $0;
});
}
}
value = stripTags(value, exclude, "p", "b", "i", "iframe");
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
|
|
|
|
|
I want to know how to detect when a button on the keyboard is pressed and what button.I am specifically looking for a way to tell when the up arrow,down arrow,left arrrow,right arrow is pressed.thanx.
|
|
|
|
|
onkeydown onkeyup onkeypress
How do I print my voice mail?
|
|
|
|
|
In those events, you would use the window.event.keyCode or keyChar properties to see which key was pressed.
--Steve P
|
|
|
|
|
Does anyone know how to detect whats happening in a frame?
Such as when a link is clicked the page is refreshed and even its source code?If you do know please let me know.
|
|
|
|
|
I imagine it's possible.
If you can get the FRAMEs window object then you could get it's document object and from there you can capture just about any event.
Cheers
How do I print my voice mail?
|
|
|
|
|
Hi,
I am building a website which opens a site map in a child window (window.open - popup window) which displays in links to navigate for users.
How do i do this -
When the users clicks on the child window link, the parent window must load that particular page.
any suggestions? easy one i think...
$iva
|
|
|
|
|
window.parent.location.href="index1.htm"
I think that how you do it...
How do I print my voice mail?
|
|
|
|
|
Hi there guys,
Have created an OCX for use in a web page, and used Visual Studio Installer to package it into bith .msi and .cab formats. In the page that it is to be used in, I am using an <OBJECT> tag with the CODEBASE attribute set to point to the .CAB (Have also tried with the MSI and same problem...." . I am getting the message telling me that need to download and install it, but after clicking Yes, nothing seems to happen.
Is there a step that I am missing, or could anyone point me to a tutorial on this and Digital Signatures?
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
It sounds like the CAB file wasn't found in your codebase path, or the version in your object tag is greater than the version of the control in the cab. Your tag should look something like this:
<OBJECT classid="CLSID:MYBIGGUID"<br />
codebase=../BIN/MYCONTROL.cab#Version=1,0,0,21"<br />
id="rtfChartViewer"<br />
style="height:100%;LEFT:0px;TOP:0px;WIDTH:100%;" VIEWASTEXT><br />
</OBJECT>
|
|
|
|
|
Hi
i need an special Regular Expression, but i don't know how to create them. Maybe one of you can help me.
Sitation:
$query = "SELECT * FROM table WHERE att = '$d-Name$';
i have to replace "$d-Name$" with an value - like this:
$query = "SELECT * FROM table WHERE att = 'jakob'
thx 4 any help
jazz
|
|
|
|
|
Do you really need a regular expression for this? I mean, it's a simple string search replace so using a regex will be a bit of an overkill.
What language are you using?
~javier lozano
(blog || email)
|
|
|
|