Forum Moderators: open

Message Too Old, No Replies

Auto insert JS on file upload

how geocities or tripod working...

         

lonelyani

8:12 am on Jan 20, 2005 (gmt 0)

10+ Year Member



Hey folks,
I just wanted to know how geocities or tripod insert javascript automatically when u upload a page there?

For instance, you take a free hosting from tripod and put some pages there. While cheking them on browser, you'll see some ads on your page which is generated dynamically or a pop-up window.

Any idea how its done?

Cheers,
Ani.

lonelyani

6:13 am on Jan 21, 2005 (gmt 0)

10+ Year Member



BUMP!
Any one?

adni18

1:32 pm on Jan 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I know Geocities uses script tags, which can unlawfully be cancelled out, of course (not that I'm encouraging that). The scripts are added when the server creates and outputs the page.

rocknbil

4:48 pm on Jan 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If I had to guess, I would say it's probably a server-side cron job that goes through all the pages in their server to insert the ads into user pages. So when you upload the page, their programming edits it.