Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Block Web requests?

Featured Replies

Hi

Sometimes the admin need to run some scripts from the console (FMP6 U!).

This caused some problems beacause of simultaniously runing a local script and a web request, and it got really messy.....

Is there way in FMP script steps to block/unblock web requests??

(I use FMP6 U! as a web server and a host)

Tnx

Hi, X! Executing scripts via web browsers has been debated on these forums quite a bit... you should be able to find some info by searching the internet forums for script info. Some say you can do it but it takes additional programming. I would suggest taking the -script out of your web solution, if possible, until you can clear this up.

Good luck!

--ST

RE: Some say you can do it but it takes additional programming.

Like running another script to check flag like Yes/No if the script run successfully or not or didn't run at all...

Xtrim -- get another machine and run scripts there smile.gif

LOL @ Anatoli

-make script to check if the 1st script is running

"get another machine and run scripts there " laugh.gif

....crAzy CZech

  • Author

Guys guys guys....

I'm not running any script via the web...

Web request could be also a simple search via the web...

The scripts are running from the console (no budget for another machine)...

I'll ask again : Is there way to temporarly block/unblock web requests??

Hi, X! OK, my bad, my bad.. I threw everyone off. I am an unexperienced scripter but I doubt there is an easy way if there is a way at all. If your admin is launching directly from the server, I would suggest just turning Web Companion sharing for that db while you launch the scripts. Maybe you can have a non-FMP script do that and redirect users to a a "temporarily out of service" page or set an error capture page to look for that condition (db not open or shared, etc.). --ST

RE: I'll ask again : Is there way to temporarly block/unblock web requests??

As Steve T. suggested -- disable WC sharing. Or cut the network wire. Better will be just unplug-it smile.gif

But if you will run the FM scripts from another machine FMP, everything should work.

re: (no budget for another machine)...

Another machine is not the real cost. A used one can be pretty cheap.

Now another license, like Limited, that can be expensive.

Not a lot of choice for you. What you can do is put up a page which says the site is closed for maintenance and take the db file off-line for Admin to play.

RE: Now another license, like Limited, that can be expensive.

Not Unlimited. Just FMP. The company has only single FM (FMU)? And just single computer?

Ok, ok. So I'm the one that's Limited. laugh.gif

I don't think so... smile.gif

just close the port (80 or whatever u have it) on your router.

  • 1 year later...

I'm having the same challenge.

A script gets runned automatically everynight on the Unlimited box, which serves on the web DBs from the FMServer box.

That script cannot get disturbed by web requests.

For now the script is being run by a 3rd computer, but we want to make it work with 2 computers only.

There isn't a ScriptMaker step that can enable or disable web sharing.

I couldn't even find an easy way to do this with AppleScript (both servers are Macs btw), can someone suggest something ?

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.