sample scripts

hi all
i need a sample script for advertisment .
i do config hotspot for my cofeenet.
i want when client work by internet first open the my website for advertisement.

tnks .

Edit alogin.html to contain the following:

<html><head><meta http-equiv="refresh" content="0;url=http://example.com/" /></head></html>

tnkx

for example my web site is http://www.yahoo.com

now, where shall i put this script ?

ip ==> hotspot==> user Profiles==>add new ==> Scripts ?

one other question,
can i inside to mikrotik run advertisement without hotspot
example pptp or pppoe
user connect by vpn to mikrotik and take this web page my favorites

As I posted, replace the alogin.html in the Hotspot directory in the file system used by your Hotspot profile. This is not a script. Redirection isn’t done via scripts, scripts cannot redirect.

I’m not aware of any options to do this outside of a Hotspot environment.