Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

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.

Blocking IP's

Featured Replies

Basically I am getting spam/crap on a blog site from the same ip address.....can I block it any way?

 

Ta.

 

H

There are 2 ways I know of.

 

Using htaccess, here is a tutorial. http://www.clockwatchers.com/htaccess_block.html

 

OR you can do it in PHP, somthing like this.

 

<?
$ips = array("111.111.111", "222.222.222", "333.333.333");
if (in_array ($_SERVER['REMOTE_ADDR'], $ips)) {
  header("location: http://yoursite.com/blocked.html");
  exit();
} ?>

You can ... but, if this guy has a dynamic IP adress(and he probably does), then it could turn in to a habit.

look at the get hostbyaddress function in PHP is dynamic ip is a problem :)

Create an account or sign in to comment

Account

Navigation

Search

Search

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.